Maven doesn't compile target/hibernate3/generated-sources
Posted
by mmm
on Stack Overflow
See other posts from Stack Overflow
or by mmm
Published on 2010-05-26T21:05:03Z
Indexed on
2010/05/27
0:31 UTC
Read the original article
Hit count: 446
Can someone tell me how to configure maven for it also to compile sources from the target/hibernate3/generated-sources
directory? I have already read this and other posts but they don't seem to solve my problem (which indeed seems trivial).
I have used the bottom-up approach hibernate configuration for cfg.xml, hbm.xml and POJO generation (i.e. auto-generated the complete hibernate configuration out of an existing database schema). I'm also only using standard maven
and hibernate3-plugin
directory layouts. Yet, when executing mvn compile
in the command-line while my sources are in the src/main/java
and the generated sources in /target/hibernate3/generated-sources
only the ones from src/main/java
get compiled and copied into target/classes
. I wouldn't like to generate sources into src/main/java
as I'd like mvn clean
to clean them.
I'd like to solve the problem using command-line
, plugins
and pom.xml
only. Is there a way to configure maven-compiler-plugin
to do so? Or is there another way?
Regards and thanks for any help.
© Stack Overflow or respective owner