Issue Details (XML | Word | Printable)

Key: MNG-1928
Type: Bug Bug
Status: Closed Closed
Resolution: Duplicate
Priority: Major Major
Assignee: Brett Porter
Reporter: Ryan Marsh
Votes: 8
Watchers: 8
Operations

If you were logged in you would be able to see more operations.
Maven 2 & 3

ignores pluginRepository in settings.xml, honors in POM

Created: 05/Jan/06 09:27 PM   Updated: 07/Sep/07 12:15 AM   Resolved: 07/Sep/07 12:15 AM
Return to search
Component/s: Plugins and Lifecycle
Affects Version/s: 2.0.1
Fix Version/s: None

Time Tracking:
Not Specified

Environment: mvn 2.0.1, jvm 1.5.0_05, OSX 10.4.3
Issue Links:
Duplicate
 
Related
 

Complexity: Intermediate


 Description  « Hide

if specified in the POM as a plugin repo, maven can use the team.andromda.org/maven2 repo for finding, downloading, and installing plugins.
however, settings.xml ignores plugin repos and only checks central if the plugin has never been downloaded before.

for instance. if settings.xml has a pluginRepository entry for team.andromda.org/maven2 then:
mvn andromdapp:generate
should download the andromdapp plugin from our repo. but it doesn't. only central is checked and it fails to find the plugin.



Vincent Massol made changes - 01/Feb/06 02:43 PM
Field Original Value New Value
Workflow Maven [ 45529 ] Maven New [ 47413 ]
John Casey made changes - 21/Jun/06 03:36 PM
Fix Version/s 2.0.5 [ 12294 ]
Todd Nine made changes - 08/Sep/06 07:51 PM
Link This issue is related to MNG-874 [ MNG-874 ]
Todd Nine added a comment - 08/Sep/06 07:51 PM

This was marked as closed in the first beta, is there a unit test to check this?


Joakim Erdfelt made changes - 09/Sep/06 09:07 AM
Link This issue is duplicated by MNG-2261 [ MNG-2261 ]
Kenney Westerhof made changes - 02/Nov/06 09:59 AM
Fix Version/s 2.0.6 [ 13010 ]
Fix Version/s 2.0.5 [ 12294 ]
Kenney Westerhof added a comment - 02/Nov/06 10:28 AM

The duplicated issue is solved; verify and close.


Kenney Westerhof made changes - 02/Nov/06 10:28 AM
Fix Version/s 2.0.6 [ 13010 ]
Fix Version/s 2.0.5 [ 12294 ]
Carlos Sanchez made changes - 04/Dec/06 01:36 PM
Link This issue is duplicated by MNG-2261 [ MNG-2261 ]
Carlos Sanchez made changes - 04/Dec/06 01:36 PM
Link This issue duplicates MNG-2261 [ MNG-2261 ]
Carlos Sanchez added a comment - 04/Dec/06 01:38 PM

Ryan, can you verify this with latest build in http://maven.zones.apache.org/~maven/builds/branches/maven-2.0.x/ ?


Ryan Marsh added a comment - 15/Dec/06 05:29 PM

nope, try this:

~/Desktop/maven-2.0.5-SNAPSHOT/bin/mvn org.andromda.maven.plugins:andromdapp-maven-plugin:generate

you get this:

[INFO] Scanning for projects...
Downloading: http://repo1.maven.org/maven2/org/andromda/maven/plugins/andromda-maven-plugins/3.2/andromda-maven-plugins-3.2.pom
[WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

GroupId: org.andromda.maven.plugins
ArtifactId: andromda-maven-plugins
Version: 3.2

Reason: Unable to download the artifact from any repository

org.andromda.maven.plugins:andromda-maven-plugins:pom:3.2

from the specified remote repositories:
central (http://repo1.maven.org/maven2)

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Fri Dec 15 17:26:37 CST 2006
[INFO] Final Memory: 1M/3M
[INFO] ------------------------------------------------------------------------

with settings.xml like this:

<?xml version="1.0"?>
<settings>
<pluginGroups>
<pluginGroup>org.andromda.maven.plugins</pluginGroup>
</pluginGroups>
<profiles>
<profile>
<id>default</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<repositories>
<repository>
<id>snapshot-andromda</id>
<name>AndroMDA Repository</name>
<url>http://team.andromda.org/maven2/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>enabled</enabled>
</releases>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>andromda</id>
<name>AndroMDA Repository</name>
<url>http://team.andromda.org/maven2/</url>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
<releases>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</releases>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>default</activeProfile>
</activeProfiles>
</settings>


Jason van Zyl made changes - 09/Jan/07 11:57 AM
Fix Version/s 2.1 [ 11704 ]
Fix Version/s 2.0.5 [ 12294 ]
Jason van Zyl made changes - 11/Jan/07 01:57 AM
Fix Version/s 2.1 [ 11704 ]
Fix Version/s 2.1.x [ 13142 ]
Brett Porter made changes - 07/Sep/07 12:15 AM
Assignee Brett Porter [ brettporter ]
Resolution Duplicate [ 3 ]
Status Open [ 1 ] Closed [ 6 ]
Fix Version/s 2.1 [ 13142 ]