You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Attila Mezei-Horvati <at...@yahoo.com> on 2006/10/10 00:39:20 UTC
mvn2: build release
I am about to finish the port from ant to maven of our
project. As a result, I have now a structure of
projects, with each one of them having their own pom
file.
I was wondering how can I do a mvn clean
compile/package/install/release from the project main
pom so that all dependent projects get a clean
recompile. It seems to me that I would need to go to
each pom and have them re-compiled. Is there a way to
tell maven to recompile all dependent snapshot
projects?
thanks,
Attila
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: mvn2: build release
Posted by Geoffrey De Smet <ge...@gmail.com>.
Make a pom which has a list of modules of those projects:
<modules>
<module>ggg-war</module>
<module>ggg-ear</module>
...
It will find out the order in which to build them etc.
This pom is best to be in a directory above the others:
ggg/
pom.xml
ggg-war/
pom.xml
ggg-ear
pom.xml
and most likely you 'll want to let the modules inherit that pom, making
it a parent pom
See the free m2 book (see site), there is a chapter about it.
Attila Mezei-Horvati wrote, On 2006-10-10 12:39 AM:
> I am about to finish the port from ant to maven of our
> project. As a result, I have now a structure of
> projects, with each one of them having their own pom
> file.
>
> I was wondering how can I do a mvn clean
> compile/package/install/release from the project main
> pom so that all dependent projects get a clean
> recompile. It seems to me that I would need to go to
> each pom and have them re-compiled. Is there a way to
> tell maven to recompile all dependent snapshot
> projects?
>
> thanks,
> Attila
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
--
With kind regards,
Geoffrey De Smet
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org