You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Peter Liljenberg (JIRA)" <ji...@codehaus.org> on 2007/08/13 08:37:47 UTC

[jira] Created: (MNG-3147) CLONE -No component for RAR packaging projects in components.xml

CLONE -No component for RAR packaging projects in components.xml
----------------------------------------------------------------

                 Key: MNG-3147
                 URL: http://jira.codehaus.org/browse/MNG-3147
             Project: Maven 2
          Issue Type: Bug
    Affects Versions: 2.0.6
            Reporter: Peter Liljenberg


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 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

        

[jira] Updated: (MNG-3147) CLONE -No component for RAR packaging projects in components.xml

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-3147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Herve Boutemy updated MNG-3147:
-------------------------------

         Assignee: Jason van Zyl
    Fix Version/s: 2.0.8

done in r593857 see http://svn.apache.org/viewvc?view=rev&revision=593857

not precisely the same configuration as proposed here

> CLONE -No component for RAR packaging projects in components.xml
> ----------------------------------------------------------------
>
>                 Key: MNG-3147
>                 URL: http://jira.codehaus.org/browse/MNG-3147
>             Project: Maven 2
>          Issue Type: Bug
>    Affects Versions: 2.0.6
>            Reporter: Peter Liljenberg
>            Assignee: Jason van Zyl
>             Fix For: 2.0.8
>
>
> 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 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

        

[jira] Commented: (MNG-3147) CLONE -No component for RAR packaging projects in components.xml

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_104829 ] 

John Casey commented on MNG-3147:
---------------------------------

As I mentioned in the linked issue, I  believe this should be defined in the maven-rar-plugin, then used via <plugin><extensions>true</></>

> CLONE -No component for RAR packaging projects in components.xml
> ----------------------------------------------------------------
>
>                 Key: MNG-3147
>                 URL: http://jira.codehaus.org/browse/MNG-3147
>             Project: Maven 2
>          Issue Type: Bug
>    Affects Versions: 2.0.6
>            Reporter: Peter Liljenberg
>
> 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 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

        

[jira] Updated: (MNG-3147) No component for RAR packaging projects in components.xml

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-3147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Herve Boutemy updated MNG-3147:
-------------------------------

    Summary: No component for RAR packaging projects in components.xml  (was: CLONE -No component for RAR packaging projects in components.xml)

> No component for RAR packaging projects in components.xml
> ---------------------------------------------------------
>
>                 Key: MNG-3147
>                 URL: http://jira.codehaus.org/browse/MNG-3147
>             Project: Maven 2
>          Issue Type: Bug
>    Affects Versions: 2.0.6
>            Reporter: Peter Liljenberg
>            Assignee: Jason van Zyl
>             Fix For: 2.0.8
>
>
> 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 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

        

[jira] Closed: (MNG-3147) CLONE -No component for RAR packaging projects in components.xml

Posted by "Peter Liljenberg (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-3147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Peter Liljenberg closed MNG-3147.
---------------------------------

    Resolution: Won't Fix

MRAR-17 

> CLONE -No component for RAR packaging projects in components.xml
> ----------------------------------------------------------------
>
>                 Key: MNG-3147
>                 URL: http://jira.codehaus.org/browse/MNG-3147
>             Project: Maven 2
>          Issue Type: Bug
>    Affects Versions: 2.0.6
>            Reporter: Peter Liljenberg
>
> 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 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