Issue Details (XML | Word | Printable)

Key: MNG-3383
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Stefan Seidel
Votes: 1
Watchers: 2
Operations

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

Downloaded plugin dependencies influence project dependencies

Created: 05/Feb/08 04:52 AM   Updated: 03/Jul/08 07:06 PM
Component/s: Artifacts and Repositories, Dependencies, Plugins and Lifecycle
Affects Version/s: 2.0.8
Fix Version/s: 2.0.11

Time Tracking:
Not Specified

File Attachments: 1. XML File pom.xml (1 kB)

Issue Links:
Related
 


 Description  « Hide
Currently, a plugin may define additional pluginRepositories, which are used to resolve dependencies of that plugin.

This leads to the fact that a plugin might resolve a dependency which would normally not be available to the project.

When it does that, it seems to write a metadata-central (although on the central repo this artifact does not exist) and thus, the project will use that dependency, too.

How to reproduce:
1. remove xstream from local repo:

rm -Rf ~/.m2/repository/com/thoughtworks/xstream

2. run mvn clean install on the attached pom.xml
-> the build should fail because the version 1.3.0-SNAPSHOT is not available at repo1.maven.org
3. edit the pom.xml, uncomment the plugin definition (jspc used for demonstration purposes only)
3. run mvn clean install again
-> the build succeeds and the 1.3.0-SNAPSHOT is being built into the artifact, which is wrong.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
John Casey added a comment - 03/Jul/08 07:06 PM
Pushing to 2.0.11 so we can have a smaller set of high-value issues to target for the next release (2.0.10).