Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Not A Bug
-
Affects Version/s: 1.2
-
Fix Version/s: None
-
Component/s: stub generation
-
Labels:None
-
Number of attachments :
Description
From mailing list discussion
http://old.nabble.com/GMaven-and-Groovy-1.7-td27378212.html#a27408942
The plugin is not inherited by sub projects. (previous version were inherited)
example in parent-module .pom you have a the plugin configured as
<build> <plugins> <plugin> <groupId>org.codehaus.gmaven</groupId> <artifactId>gmaven-plugin</artifactId> <version>1.2</version> <configuration> <providerSelection>1.7</providerSelection> </configuration> <executions> <execution> <goals> <goal>compile</goal> <goal>testCompile</goal> <!-- if you want joint compilation, add stub generation goals here --> </goals> </execution> </executions> <dependencies> <dependency> <groupId>org.codehaus.gmaven.runtime</groupId> <artifactId>gmaven-runtime-1.7</artifactId> <version>1.2</version> <exclusions> <exclusion> <groupId>org.codehaus.groovy</groupId> <artifactId>groovy-all</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.codehaus.groovy</groupId> <artifactId>groovy-all</artifactId> <version>1.7.0</version> </dependency> </dependencies> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>org.codehaus.groovy</groupId> <artifactId>groovy-all</artifactId> <version>1.7.0</version> </dependency> </dependencies>
You should not be required to add the build plugin section to each sub project/module.
I don't think this is a bug. To inherit your plugin configuration, you can either use <inherited>true</inherited>, or use <pluginManagement> instead of <plugins>. (In the latter case you still need to mention the plugin in every POM, but without all the details).