DefaultArtifactRepositoryFactory.createArtifactRepository overload w/ layoutId
passes wrong (repo) id
-----------------------------------------------------------------------------------------------------
Key: MNG-5149
URL: https://jira.codehaus.org/browse/MNG-5149
Project: Maven 2 & 3
Issue Type: Bug
Components: Embedding
Affects Versions: 3.0.3
Reporter: Jesse Glick
In {[DefaultArtifactRepositoryFactory.java}} there is a method overload:
{noformat}
public ArtifactRepository createArtifactRepository( String id, String url,
String layoutId,
ArtifactRepositoryPolicy snapshots,
ArtifactRepositoryPolicy releases )
throws UnknownRepositoryLayoutException
{
return injectSession( factory.createArtifactRepository( layoutId, url,
layoutId, snapshots, releases ), true );
}
{noformat}
Note that {{layoutId}} is used twice and {{id}} not at all. The result is that
you get a remote repo apparently with an ID of {{default}}, rather than e.g.
{{central}} as you intended.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira