Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
2.0.4
-
None
-
None
Description
According the docs the configuration of a plugin is merged, when the plugin is inherited. This actually hapens, but the plugin with the merged configuration is added twice in the effective-pom and therefore executed twice.
Setup a parent pom with a plugin configuration to attach the javadocs:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <executions> <execution> <id>attach-javadocs</id> <goals> <goal>jar</goal> </goals> </execution> </executions> <inherited>true</inherited> <configuration> <linksource>true</linksource> </configuration> </plugin>
and a child pom that adds additional elements in the configuration:
<plugin> <artifactId>maven-javadoc-plugin</artifactId> <configuration> <links> <link>http://java.sun.com/j2se/1.4.2/docs/api/</link> <link>http://jakarta.apache.org/commons/logging/commons-logging-1.0.4/docs/apidocs/</link> <link>http://jmock.codehaus.org/docs/javadoc/</link> <link>http://www.junit.org/junit/javadoc/3.8.1/</link> </links> </configuration> </plugin>
In this case the javadoc is generated twice, the goal help:effective-pom reveals, that the plugin was merged, but added twice.
Attachments
Issue Links
- duplicates
-
MNG-2221 Multiple Executions of Plugin at Difference Inhertiance levels causes plugin executions to run multiple times
- Closed
-
MNG-4879 CLONE -Multiple Executions of Plugin at Difference Inhertiance levels causes plugin executions to run multiple times
- Closed
- is duplicated by
-
MANTRUN-57 merge issue from parent causing executions to be run multiple times
- Closed
-
MNG-2297 plugin definitions not merged correctly
- Closed
- relates to
-
MNG-2054 Multiple Inheritence causes plugin executions to run multiple times (Test Case Attached)
- Closed