Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8954911
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T14:25:15+00:00 2026-06-15T14:25:15+00:00

There are two projects: A —-has a lib commons vers. 1.3.7 —(depends on B)

  • 0

There are two projects:
A —-has a lib commons vers. 1.3.7 —(depends on B)
B —-has lib commons vers. 1.2.5

So, we are building project B, lib commons vers. 1.2.5 will be included and installed in local repository, and then …
if we execute build of A(which is dependes on B), Maven decides that lib commons vers. 1.3.7 must be included, becouse that lib is on smallest distance from the root of the tree…
I know that if we set the version of artifact like: 1.2.5 -that is recommended version. But if we put it in [] – it is a hard requirement and maven should apply another strategy to resolve version conflict – to include recommended version of that artifact. But when I try to do it, it’s not working of couse, becouse Maven take artifact from loc repository, which contains reference on lib commons vers. 1.2.5 in manifest file, but lib which is included – commons vers. 1.3.7. Could you plese tell how can I solve this problem , or at list may be there are some tools or maven plugins which can tell about such conflits.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T14:25:16+00:00Added an answer on June 15, 2026 at 2:25 pm

    You need to use exclusions on the dependency. Something like that (its just a sample):

    <dependency>
    <groupId>org.springframework.integration</groupId>
    <artifactId>spring-integration-amqp</artifactId>
    <version>2.1.0.RELEASE</version>
    <exclusions>
        <exclusion>
            <artifactId>spring-beans</artifactId>
            <groupId>org.springframework</groupId>
        </exclusion>
    </exclusions>
    </dependency>
    

    If you are using Eclipse and don’t want to do it by hand, you can do it by opening a pom file and selecting a ‘Dependency Hierarchy’ tab under which you can see all your dependency hierarchies. Then you can right click on the dependency you want to exclude and then click ‘Exclude Maven Artifact’

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There are two projects: 1) applet project that outputs jar file 2) web app
In virtually every project I've ever worked on, there will be one or two
There is solution with two projects: WPFProject and WPFResources . WPFProject has MainWindow.xaml. WPFResources
My project has two projects: main mainTest I created an AndroidTestCase in the mainTest
I will be working on two projects (say project A and project B )
I have two projects namely A and B. Project A has a class C
http://www.ericmmartin.com/projects/simplemodal/ There's two examples near the bottom of the page that show how to
There are two project in which I collaborate, they live in different servers, A
I've got two projects, one CF2.0 project and one NET2.0 project. These projects are
In my project, there are two view controllers - let's say firstViewController and secondViewController.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.