[ http://jira.codehaus.org/browse/MOJO-433?page=comments#action_78110 ] 
            
Richard van der Hoff commented on MOJO-433:
-------------------------------------------

This is horrible, but does actually work:

{code:java}
        String classifier; /* classifier to assign */

        Artifact artifact = project.getArtifact();

        DefaultArtifact clone = new DefaultArtifact( artifact.getGroupId(), 
artifact.getArtifactId(), artifact.getVersionRange().cloneOf(),
                artifact.getScope(), artifact.getType(), classifier,
                artifact.getArtifactHandler(), artifact.isOptional() );
        clone.setRelease( artifact.isRelease() );
        clone.setResolvedVersion( artifact.getVersion() );
        clone.setResolved( artifact.isResolved() );
        clone.setFile( artifact.getFile() );

        if(artifact.getAvailableVersions()!=null)
            clone.setAvailableVersions( new 
ArrayList(artifact.getAvailableVersions() ) );
        clone.setBaseVersion( artifact.getBaseVersion() );
        clone.setDependencyFilter( artifact.getDependencyFilter() );
        if(artifact.getDependencyTrail()!=null)
            clone.setDependencyTrail( new 
ArrayList(artifact.getDependencyTrail()) );
        clone.setDownloadUrl( artifact.getDownloadUrl() );
        clone.setRepository( artifact.getRepository() );

        project.setArtifact(clone);
{code}

> ability to install/deploy multiple configurations artifact of the same 
> project using classifier
> -----------------------------------------------------------------------------------------------
>
>                 Key: MOJO-433
>                 URL: http://jira.codehaus.org/browse/MOJO-433
>             Project: Mojo
>          Issue Type: New Feature
>          Components: native
>         Environment: multi platforms
>            Reporter: Dan Tran
>         Assigned To: Dan Tran
>
> Add a new String classifier in linker mojo to provide cabablity to deploy 
> release/debug artifact 

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

        

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

    http://xircles.codehaus.org/manage_email

Reply via email to