maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wim Deblauwe <wim.debla...@gmail.com>
Subject Re: Run a multimodule build up to a certain module in maven 3
Date Mon, 09 May 2011 11:41:18 GMT
To answer my own question:

mvn -pl server -am clean install

"-pl server" builds the server project and "-am" makes sure that everything
"server" needs is also build.

See
http://www.sonatype.com/people/2009/10/maven-tips-and-tricks-advanced-reactor-options/
for
some more info. The docs on the maven page itself are very short:
http://maven.apache.org/guides/mini/guide-multiple-modules.html and they
link to a page in "Maven: The definitive guid", but the link (
http://www.sonatype.com/books/maven-book/reference/multimodule.html) is
broken.

regards,

Wim


2011/5/5 Wim Deblauwe <wim.deblauwe@gmail.com>

> Hi,
>
> Suppose the following multimodule project
>
> project
>  + client-common
>  + client-gui
>  + server-common
>  + server-api
>  + server
>  + installer
>  + installer-gui
>
>
> I want to run the build up to the 'server' module, but not run the
> installer and installer-gui modules. What would be the easiest way to do
> this in Maven 3? In Maven 2, i used the reactor plugin for it. Is this still
> the best way or is there a better/easier way in Maven 3?
>
> regards,
>
> Wim
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message