- Let’s assume my application needs
foo.jarandbar.jar foo.jarneeds version 1.0 ofc.jarbar.jarneeds version 2.0 ofc.jar
How does Maven resolve this conflict? Which version of c.jar will be used?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It depends on the order of declaration in your effective POM. If
foo.jarshows up first you will get version 1.0 ofc.jar. If on the other handbar.jaris declared first it will be version 2.0 ofc.jar.Relevant documentation: