0

I am trying to understand the way maven orders all the dependency defined in the pom, while we are trying to create a jar using maven-jar-plugin.

I am trying to use manual configuration approach defined here.

Let's say we have following dependency tree:

  • A.1 -> B.1 -> C.1
  • D.1 -> E.1
  • E.2
  • F.1 -> B.2

What will be the eventual classpath created in manifest file?

tj2107
  • 1
  • It is dangerous to rely on classpath order. Try to avoid that. – J Fabian Meier Jul 05 '19 at 07:35
  • But there must be some logic/algo that maven uses while building it ? – tj2107 Jul 05 '19 at 07:40
  • There is. But I don't know if it is documented. You can find out practically by calling `dependency:list ` on the project. Nevertheless, I would try to create your program in a way that it works for any order of the classpath. – J Fabian Meier Jul 05 '19 at 10:02

0 Answers0