[
http://jira.codehaus.org/browse/MNG-4730?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Benjamin Bentmann closed MNG-4730.
----------------------------------
Resolution: Duplicate
Assignee: Benjamin Bentmann
This is a combination of two issues: one being the missing isolation of
projects and their build extensions, and the other being the wrong selection of
the artifact handler (MNG-4654).
Apart from the fixes on the Maven side, I suggest to also contact the Axis2
developers and ask them to fix their plugin:
{code:xml}
<component>
<role>org.apache.maven.artifact.handler.ArtifactHandler</role>
<role-hint>aar</role-hint>
<implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler</implementation>
<configuration>
<classifier></classifier>
<extension>aar</extension>
<type>aar</type>
<packaging>jar</packaging>
<language>java</language>
<addedToClasspath>false</addedToClasspath>
</configuration>
</component>
{code}
The line {{<packaging>jar</packaging>}} should be removed from the
{{components.xml}} of their plugin to make it work properly with Maven 2.x as
well.
> packaging aar declared in one module affects the following modules
> ------------------------------------------------------------------
>
> Key: MNG-4730
> URL: http://jira.codehaus.org/browse/MNG-4730
> Project: Maven 2 & 3
> Issue Type: Bug
> Components: Reactor and workspace
> Affects Versions: 2.2.1
> Reporter: Victor Bronstein
> Assignee: Benjamin Bentmann
> Priority: Critical
> Attachments: test.zip
>
>
> When there is an aar module in the reactor, it causes the following modules
> to install (and then to deploy) their main artifact with the '.aar'
> extension, although they are regular JAR modules. This is a regression from
> 2.1.0-M1.
> Attached is a project that demonstrates the problem. Inside there's also a
> log of mvn --debug clean install.
--
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