[ 
http://jira.codehaus.org/browse/MARTIFACT-1?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_106148
 ] 

Jason van Zyl commented on MARTIFACT-1:
---------------------------------------

We need a mechanism that makes it flexible to change how the resolver works but 
not keep increasing the number of signatures:
ArtifactResolutionResult result = artifactResolver.resolve( 
artifactResolutionRequest );

So this just removes the many signatures required to perform differently. Based 
on the request the artifactResolver responses appropriately. So I'm following
the pattern we have in the embedder where you have a request that can be 
constructed in a ruby-esque way:

ArtifactResolutionRequest request = new ArtifactResolutionRequest()
.setArtifact( projectArtifact )
.setArtifactDependencies( project.getDependencyArtifacts() )
.setLocalRepository( localRepository )
.setRemoteRepostories( project.getRemoteArtifactRepositories() )
.setManagedVersionMap( managedVersions )
.setMetadataSource( artifactMetadataSource );

ArtifactResolutionResult result = artifactResolver.resolve( request );

This will greatly reduce the confusion from people using the resolver.



> Create a request/result mechanism that will reduce the number of signatures 
> required for artifact resolution
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: MARTIFACT-1
>                 URL: http://jira.codehaus.org/browse/MARTIFACT-1
>             Project: Maven Artifact
>          Issue Type: Improvement
>    Affects Versions: 3.0-alpha-1
>            Reporter: Jason van Zyl
>            Assignee: Jason van Zyl
>


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

        

Reply via email to