The easy answer is the maven-helper-plugin: http://mojo.codehaus.org/build-helper-maven-plugin/add-source-mojo.html.
src/main/java-gen probably means that your sources are generated by someone. If this someone is a Maven plugin, then it probably does the job of adding the source directory to your POM (which may not be what you want, but that is not point now). If you generate the sources using the AntRun plugin, you can add *one* extra source directory. And if you care (this is a convention): generated sources are placed under target/generated-sources, and never under src. ______________________________________ Diese E-Mail kann vertrauliche und geschuetzte Informationen enthalten. Wenn diese E-Mail nicht für Sie bestimmt ist, bitten wir Sie, uns unverzueglich zu informieren und sie zu loeschen. This e-mail message may contain information, which is confidential and protected. If you are not the intended recipient of this message, we ask you to inform us immediately and delete the message afterwards. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
