You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@codehaus.org> on 2014/11/25 22:39:29 UTC
[jira] (MRAR-23) CLONE -No MAR packaging (Causes
Maven-cobertura-plugin to fail)
[ https://jira.codehaus.org/browse/MRAR-23?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Osipov closed MRAR-23.
------------------------------
Resolution: Won't Fix
Please refer to https://cwiki.apache.org/confluence/display/MAVEN/The+Great+JIRA+Cleanup+of+2014 if you're wondering why this issue was closed out.
Assignee, if you think you can fix this bug anytime soon, please reopen and proceed appropriately.
> CLONE -No MAR packaging (Causes Maven-cobertura-plugin to fail)
> ---------------------------------------------------------------
>
> Key: MRAR-23
> URL: https://jira.codehaus.org/browse/MRAR-23
> Project: Maven Rar Plugin
> Issue Type: New Feature
> Affects Versions: 2.3
> Reporter: Marcel Ammerlaan
> Assignee: Herve Boutemy
>
> For a project with packaging "rar" the codehaus maven plugin for Cobertura does not work.
> During instrumentation the following message is displayed:
> "Not executing cobertura:instrument as the project is not a Java classpath-capable package"
> The reason for this is that in the CoberturaInstrumentMojo.execute() the code checks which language that the artifact is implemented in, like this:
> ArtifactHandler artifactHandler = project.getArtifact().getArtifactHandler();
> if ( !"java".equals( artifactHandler.getLanguage() ) )
> {
> getLog().info( "Not executing cobertura:instrument as the project is not a Java classpath-capable package" );
> }
> Looking at the components.xml in the Maven sources, we find that the "rar" packaging is not specified at all, meaning that it will be handled with the DefaultArtifactHandler and all properties set to null, including the language property.
> This can be fixed with the following addition to components.xml:
> <components>
> ....
> <component>
> <role>org.apache.maven.artifact.handler.ArtifactHandler</role>
> <role-hint>rar</role-hint>
> <implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler</implementation>
> <configuration>
> <type>rar</type>
> <extension>rar</extension>
> <includesDependencies>true</includesDependencies>
> <language>java</language>
> <addedToClasspath>false</addedToClasspath>
> </configuration>
> </component>
> ...
> </components>
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)