Maven 2 & 3

Plugin config not inherited via module

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.0-alpha-1
  • Fix Version/s: 2.0-alpha-2
  • Component/s: Plugins and Lifecycle
  • Labels:
    None
  • Environment:
    Windows XP, Cygwin.
  • Number of attachments :
    0

Description

Plugin config is not inherited from 'myparent' to 'mycomponent' in this scenario:

A parent pom:

<project>
<modelVersion>4.0.0</modelVersion>
<groupId>mygroup</groupId>
<artifactId>myparent</artifactId>
<packaging>pom</packaging>
<version>0.1-SNAPSHOT</version>
<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>1.0-alpha-2-SNAPSHOT</version>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>

A project pom:

<project>
<parent>
<groupId>mygroup</groupId>
<artifactId>myparent</artifactId>
<version>0.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>mygroup</groupId>
<artifactId>myproject</artifactId>
<packaging>pom</packaging>
<version>0.1-SNAPSHOT</version>
<modules>
<module>mycomponent</module>
</modules>
</project>

And a component pom:

<project>
<parent>
<groupId>mygroup</groupId>
<artifactId>myproject</artifactId>
<version>0.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>mygroup</groupId>
<artifactId>mycomponent</artifactId>
<packaging>jar</packaging>
<version>0.1-SNAPSHOT</version>
</project>

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: