[ 
https://jira.codehaus.org/browse/MCLIRR-39?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=293346#comment-293346
 ] 

Grzegorz Slowikowski commented on MCLIRR-39:
--------------------------------------------

You can at least hardcode "maven-plugin":
{code}
if ("jar".equals(artifact.getType()) || 
"maven-plugin".equals(artifact.getType())) {
{code}
                
> Plugin does not support "maven-plugin" packaging/type
> -----------------------------------------------------
>
>                 Key: MCLIRR-39
>                 URL: https://jira.codehaus.org/browse/MCLIRR-39
>             Project: Maven 2.x Clirr Plugin
>          Issue Type: Bug
>    Affects Versions: 2.3
>         Environment: Maven 2.2.1, Windows XP, Oracle Java 6
>            Reporter: Grzegorz Slowikowski
>
> AbstractClirrMojo (v.2.3) from line 327:
> {code}
>             for ( Iterator iter = previousArtifacts.iterator();  
> iter.hasNext();  )
>             {
>                 Artifact artifact = (Artifact) iter.next();
>                 // clirr expects jar files, so let's not pass other artifact 
> files.
>                 if ("jar".equals(artifact.getType())) {
>                     files.add( new File( localRepository.getBasedir(), 
> localRepository.pathOf( artifact ) ) );
>                 }
>             }
> {code}
> Maven plugins have "maven-plugin" type, not "jar", so Clirr cannot be used 
> (even if you configure "comparisonArtifact").
> Check file extension instead of artifact type, to solve this problem.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to