Execute maven plugin goal on specific modules -
i have following situation:
masterpom.xml:
... <modules>   <module>sample-module</module> </modules> ... <plugin>     <groupid>org.codehaus.mojo</groupid>     <artifactid>versions-maven-plugin</artifactid>     <version>2.1</version>     <inherited>true</inherited>     <executions>         <execution>             <id>update-parent</id>             <phase>pre-clean</phase>             <goals>                 <goal>update-parent</goal>             </goals>             <configuration>                 <parentversion>4.4.2.1</parentversion>             </configuration>         </execution>     </executions> </plugin> ...   i execute versions-maven-plugin's update-parent goal on every module listed between <modules> , </modules>.
 how can that? configuration tried doesn't work, because modules not inherit masterpom.xml (they have different parent shouldn't modified).
 tried running plugin command line:
mvn versions:update-parent "-dparentversion=[4.4.2.1]"   but changes not limited modules want.
edit: running plugin command line @ appropriate location seems work. still don't know how produce same effect specifying options inside pom.
 
 
  
Comments
Post a Comment