[ https://jira.codehaus.org/browse/MNG-2608?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Benedict updated MNG-2608: ------------------------------- Fix Version/s: (was: Issues to be reviewed for 3.x) > configure a repository as the 'preferred' download location for certain > artifactIds or groupIds > ----------------------------------------------------------------------------------------------- > > Key: MNG-2608 > URL: https://jira.codehaus.org/browse/MNG-2608 > Project: Maven > Issue Type: Improvement > Components: Artifacts and Repositories > Reporter: Jorg Heymans > > ivy has this feature where you can tell it where an artifact is located. > During dependency resolution, this avoids a lot of unnecessary http lookups > to the configured repositories while searching for the artifact because it > will go straight to the correct one. > in pom speak: > <repository> > <releases> > <enabled/> > <updatePolicy/> > <checksumPolicy/> > </releases> > <snapshots> > <enabled/> > <updatePolicy/> > <checksumPolicy/> > </snapshots> > <id/> > <name/> > <url/> > <layout/> > <preferredFor> > <groupId>org.apache.cocoon</groupId> > <artifactId>my.special.artifact</artifactId> > </preferredFor> > </repository> > If the groupid or artifactid was not found on the 'preferred' server then you > could still try and contact the other configured repositories ofcourse. > As an example: output of artifact resolution in cocoon while looking for an > updated snapshot > [INFO] snapshot org.apache.cocoon:cocoon-deployer-plugin:1.0.0-M2-SNAPSHOT: > checking for updates from snapshots > [INFO] snapshot org.apache.cocoon:cocoon-deployer-plugin:1.0.0-M2-SNAPSHOT: > checking for updates from reinhard-m2-snapshot-repository > [INFO] snapshot org.apache.cocoon:cocoon-deployer-plugin:1.0.0-M2-SNAPSHOT: > checking for updates from central > [INFO] snapshot org.apache.cocoon:cocoon-deployer-plugin:1.0.0-M2-SNAPSHOT: > checking for updates from apache.snapshot > [INFO] snapshot org.apache.cocoon:cocoon-deployer-plugin:1.0.0-M2-SNAPSHOT: > checking for updates from apache-cvs > [INFO] snapshot org.apache.cocoon:cocoon-deployer-plugin:1.0.0-M2-SNAPSHOT: > checking for updates from apache.snapshots -- This message was sent by Atlassian JIRA (v6.1.6#6162)