I work now on build for a huge project. It builds some big packages out of modules, that I need to unpack later to a folder. I use mvn dependency plugin for it. The issue that although I specify <excludeTransitive>true</excludeTransitive>
I still see tons of modules that are downloaded from binary repo. Is there a clean solution to it?
Asked
Active
Viewed 1,828 times
2

eugen-fried
- 2,111
- 3
- 27
- 48
-
It's generally a pain to block transitive dependencies in maven. There are different ways of doing it manually one dependency at a time, which is a lot of work for large projects, but haven't come across any simple flag that would allow it on a larger scale. If you do find something, would be interested to learn about it. – t0mppa Dec 01 '13 at 14:14
-
If I understand correctly, you want to build your individual modules without the transitive dependencies ? – Saif Asif Dec 01 '13 at 17:07
-
I want to unpack an uber-jar/ear without resolving it's dependencies. – eugen-fried Dec 02 '13 at 13:27
-
Maven 3.2.1 has a wildcard solution for this: http://stackoverflow.com/questions/16354273/in-maven-how-can-i-exclude-all-transitive-dependencies-from-a-particular-depend – John Prystash Jun 12 '15 at 17:31