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.