You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org> on 2009/05/02 20:13:44 UTC
[jira] Closed: (MANT-51) Configuration from plugin management is
not considered
[ http://jira.codehaus.org/browse/MANT-51?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Bentmann closed MANT-51.
---------------------------------
Assignee: Benjamin Bentmann
Resolution: Fixed
Fix Version/s: 2.2
Fixed in [r770974|http://svn.eu.apache.org/viewvc?view=rev&revision=770974], snapshot deployed.
A simple workaround is to simply re-declare the plugin directly under the {{<build>}} section, e.g.
{code:xml}
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<configuration>
<target>1.3</target>
<source>1.4</source>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<!-- workaround for MANT-51 -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
</plugins>
</build>
{code}
This will have the project builder merge the plugin declarations, thereby promoting the plugin configuration into the proper place.
> Configuration from plugin management is not considered
> ------------------------------------------------------
>
> Key: MANT-51
> URL: http://jira.codehaus.org/browse/MANT-51
> Project: Maven 2.x Ant Plugin
> Issue Type: Bug
> Affects Versions: 2.1
> Reporter: Benjamin Bentmann
> Assignee: Benjamin Bentmann
> Fix For: 2.2
>
>
> For a POM snippet with
> {code:xml}
> <build>
> <pluginManagement>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-compiler-plugin</artifactId>
> <version>2.0.2</version>
> <configuration>
> <target>1.3</target>
> <source>1.4</source>
> </configuration>
> </plugin>
> </plugins>
> </pluginManagement>
> <plugins>
> <!-- NOTE: It's essential part of this test to not define the maven-compiler-plugin here! -->
> </plugins>
> </build>
> {code}
> i.e. where only plugin management is present, the Ant Plugin doesn't properly extract the configuration.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira