JanusFox81
JanusFox81

Reputation: 125

Maven dependency ordering

hi I was wondering whether anyone knows of a way to order which dependencies get called first. The issue I have is that I am including geronimo jaxws spec 2.2, but the jre version of javax.xml.ws.Service is being picked up instead of the dependency version. I tried putting the dependency first on the dependency list and tried dependency-management to no success (maybe I am using it wrong). When in eclipse i can tell it to pick up the jars in maven dependencies first, but i don't know how to do that in maven.

Many thanks.

Upvotes: 1

Views: 1322

Answers (1)

user764920
user764920

Reputation: 11

I don't think you can order the dependencies in maven in the way you want. You'll have to use java import statements to select which Service you want to use.

One trick to help diagnose these kind of issues is to use: mvn dependency:tree. That will at least confirm your Geronimo dependency is being pulled in correctly.

Upvotes: 1

Related Questions