Get the App
SLTechnology News&Howtos  ›  Development  › 

How to solve the problem of jar conflict in maven Project

Shulou Source: shulou.com Published: 2022-06-03 15:21:52 10月05日 Update

This article mainly explains "how to solve the problem of jar conflict in maven project". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to solve the problem of jar conflict in maven project".

In the process of development, we will inevitably encounter a variety of jar package conflicts, if we do not master the solution, we will report errors again and again! The following recommends a plug-in for IDEA-- Maven Helper

There are two ways to install

One is the automatic installation of IDEA, but after testing with my IDEA 2017.03 version, the installation has no effect. Therefore, it is not recommended.

The other is to download the Maven Helper plug-in from the official website and install it manually.

Let's start with the text.

Install and download offline plug-in package

Download from the official website of the Maven Helper plugin

Pay attention to your IDEA version

Install offline installation package

1. Load the offline installation package in IDEA

2. Restart IDEA

Use

If you enter the pom.xml file, you will find that there is an extra box below.

Click

Let's start to solve the problem of jar package conflicts. I'll take the jar package conflicts in Spark SQL as an example.

Check the conflicting jar packages below the Conflicts

Check the conflicting version on the right side of janino, select and Exclude

Click Refresh and find that the conflicting jar package has no janino. Click Refresh and find that there is no janino in the conflicting jar package.

Thank you for reading, the above is the content of "how to solve the problem of jar conflict in maven project". After the study of this article, I believe you have a deeper understanding of how to solve the problem of jar conflict in maven project, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Conflicts problems projects plug-ins versions learning content recommendations functions methods right that is ideas situations manual files articles methods more frames Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Microsoft Docker macOS Shulou Information