Issue Details (XML | Word | Printable)

Key: MNG-3769
Type: Bug Bug
Status: Open Open
Priority: Blocker Blocker
Assignee: Unassigned
Reporter: Dirk Olmes
Votes: 5
Watchers: 4
Operations

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

Excluding transitive dependencies does not work

Created: 26/Sep/08 06:21 AM   Updated: 03/Oct/08 02:02 PM
Component/s: Dependencies
Affects Version/s: 2.1.0-M1
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: 1. Zip Archive MNG-3769-debugging-info-2.zip (43 kB)
2. Zip Archive MNG-3769-debugging-info.zip (22 kB)
3. XML File pom.xml (1.0 kB)


Complexity: Intermediate


 Description  « Hide
I'm trying to exclude transitive dependencies of a dependency. This works fine with 2.0.9, however it does not work with 2.1.0-M1.

Run mvn dependency:tree on the attached pom.xml with 2.0.9 and note how there is no javax.activation in the tree. Re-run with 2.1.0-M1 and note how javax.activation shows up in the dependencies tree.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
luke w patterson added a comment - 03/Oct/08 01:29 PM
With the pom.xml from attachment 1, I captured some info that might be useful for anyone debugging this.

See MNG-3769-debugging-info.zip

step 0:

created empty local repo directory /2.0.9-repo
created empty local repo directory /2.1.0-M1-repo

step 1: using maven 2.0.9 pointing to /2.0.9-repo, ran org.apache.maven.plugins:maven-dependency-plugin:2.0:tree, goal completed
console capture is in step1-2.0.9-tree.txt
content listing of /2.0.9-repo is in step1-2.0.9-repo-contents.txt

step 2: using maven 2.1.0-M1 pointing to /2.1.0-M1-repo, ran org.apache.maven.plugins:maven-dependency-plugin:2.0:tree, goal completed
console capture is in step2-2.1.0-M1-tree.txt
content listing of /2.1.0-M1-repo is in step2-2.1.0-M1-repo-contents.txt

step 3: using maven 2.1.0-M1 pointing to /2.0.9-repo, ran org.apache.maven.plugins:maven-dependency-plugin:2.0:tree, goal failed
console capture is in step3-2.1.0-M1-tree.txt
content listing of /2.0.9-repo is in step3-2.0.9-repo-contents.txt


luke w patterson added a comment - 03/Oct/08 02:02 PM
Oops, last attachment didn't have debugging turned on during dependency:tree. This attachment does.