Naveen Kumar
Naveen Kumar

Reputation: 1

How to replace the direct dependency `A` with all transitive dependencies of `A` in the artifact pom.xml?

I have a maven project named A which is dependent on artifacts B and C, I want to generate a thin jar which will have only the classes of A, B and C from project A with As pom. I can do this using maven-shade-plugin, but the problem is the resultant artifact have 3 separate pom files,each with their own set of dependencies. Now How do I replace of B and C in A with their transitive dependencies?

I want to see if maven already has some solution to this instead of me manually updating pom of A

Tried true in maven-shade-plugin, didn't see any change.

Upvotes: 0

Views: 31

Answers (0)

Related Questions