How to resolve JAR package conflicts in Maven?Because of Maven’s implicit dependency on JARs, it can cause JAR package version conflicts in projects.
Maven comes with two ways:
Path Proximity Principle: Dependency on the path passed to the near priority.
Preference Declare Principle: Dependencies are defined in the POM file. The dependencies declared first prevail.
Manual configuration in two ways:
Method: by excluding rely on exclusion tag
lock version: through dependencyManagement lock version directly.
What is Maven and its life cycle?Maven is a project management tool that manages the entire life cycle of a project and manages the dependent JARs of a project. The life cycle of Maven includes: clean up, compile, test, package, install, and deploy with the following commands: MVN compile Java files into class files and output them to target directory. MVN test runs unit test classes. MVN package deploys include install. MVN deploy include install. And upload the project to the remote repository
- Maven compilation error: package does not exist jar package does not exist
- Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:run (default-cli) on project
- 解决Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile
- How to Fix Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile
- Idea Maven project uses package to package and report error (package does not exist)
- IntelliJ idea error: package not found or symbol not found
- Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0
- Failed to execute goal on project XXXX-api: Could not resolve dependencies for pro
- Error parsing lifecycle processing instructions
- Failed to read artifact descriptor for * maven
- The import Maven project appears http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException Solutions
- Failed to execute goal in Maven build org.apache.tomcat .maven:
- Reason for error in idea @ springbootapplication [solved]
- Servlet page Jump error 500
- About the steps to create Maven’s (WEB) dependency using in idea
- configure: error: readline library not found solution
- Viewing Android dependency tree using gradle
- package.json And package- clock.json The difference between
- About maven Pom.xml Personal solutions to reporting errors!!!
- Failed to execute goal org.apache.maven . plugins:maven-surefire-plugin :2.12.4:test