A large number of duplicate jar packages are present in the Java Project switch maven compilation

Source: Internet
Author: User
Recently the company's project is ready to use MAVEN, switching down is very simple, but the compilation found a very strange phenomenon, is not configured in the Pom jar package or the version of the jar is not configured to appear in the Lib folder, at first thought it was exclusions not set, But after repeated experiments found that can not completely solve the problem, some belong to the project team customized jar package also has multiple versions, and some computers are compiled without problems, and then think of whether the local MAVEN warehouse is broken, delete re-download, or not, Then I accidentally saw a post saying that the same folder under the name of the project causes Maven to refer to the project as a priority (my project uses git management to download multiple branches of the project under the Git folder), although not the same as the problem I encountered, But also try to switch the MAVEN branch into another separate folder, did not expect to solve, inexplicably duplicate jar package did not, but now only know how to solve this problem but do not know why this, With the Eclipse Maven plugin embedded3.0.2, is it a maven version bug?

A large number of duplicate jar packages are present in the Java Project switch maven compilation

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.