开发者

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 firs开发者_开发知识库t, but i don't know how to do that in maven.

Many thanks.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜