[ 
https://jira.codehaus.org/browse/MCLIRR-39?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dennis Lundberg updated MCLIRR-39:
----------------------------------

    Description: 
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.

  was:
AbstractClirrMojo (v.2.3) from line 327:
            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 ) ) );
                }
            }
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.

    
> 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