The '-N' option avoids recursing into sub-projects:

$ mvn -N plugin:goal

See 'mvn -h' for other options

ciao,
PC


Johannes Zillmann-3 wrote:
> 
> Hi there,
> 
> i have a multi module project and run into following problmem.
> In the root pom i defined a plugin.
> 
> <build>
>    <plugin>
>      <groupId>org.apache.maven.plugins</groupId
>      <artifactId>maven-dependency-plugin</artifactId
>      <version>2.0-alpha-4</version>
>      <inherited>false</inherited>
>    </plugin>
> ...
> 
> i set inherited to false, because when i execute a goal of the plugin  
> ($ mvn dependency:unpack) i want not that the plugin gets executed in  
> every sub-module.
> But it get executed and the inherited flag only leads to an exception  
> because i want to execute a plugin-goal on an project where the plugin  
> is not defined.
> 
> So is there a way to only execute the plugin-goal for the root project ?
> 
> best regards
> Johannes
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 101tec GmbH
> Halle (Saale), Saxony-Anhalt, Germany
> http://www.101tec.com
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/don%27t-execute-submodules-for-specific-goals-tp17752677p17754781.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to