You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Martin Eisengardt <ME...@web.de> on 2011/10/24 18:22:28 UTC
How to set src-folder correctly
Hi.
We are using maven for own project types. However the source folders (src/main/java and src/test/java) are not the same since we are not using java. To let some plugins work correctly we need to ovrwrite them with the correct folders.
For know we created a small goal that will be executed early. It will overwrite the source folders directly. It works but I don't feel it is the correct way. Do you recommend another way, for example some hint in components.xml I did not see yet? How do we tell maven that the source folders for our own packaging are not the java ones?
If having an early goal setting the source folders programtically, what goal should we choose? The "validate" goal is the first one and so the best one to set the new source folders but it is focused of "validation" of the project and not focused on "hack project pom to fit the best needs".
Greetings
Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
How to set src-folder correctly
Posted by Wayne Fay <wa...@gmail.com>.
> We are using maven for own project types. However the source
> folders (src/main/java and src/test/java) are not the same since
> we are not using java. To let some plugins work correctly we
> need to ovrwrite them with the correct folders.
1. This email should have been sent to the Maven Users list. The Maven
Developers list is reserved for discussions around the development of the
Maven tool itself. Please send any replies to Maven Users list, not this
one.
2. What you are requesting is trivially accomplished via various entries in
your pom.xml files. This is documented on the Maven website. Ideally you
would have a single top parent pom that all your projects inherit from, and
set the proper values there (in the top parent).
Wayne