Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Solve the problem of jar dependency and package replication of system in Maven

Shulou Source: shulou.com Published: 2022-06-03 05:40:15 11月24日 Update

Dependent management configuration:

Com.alibaba fastjson 1.2.29 system E:/projectsx/lecing/lecing5/code/back/lib/fastjson-1.2.29-SNAPSHOT.jar

Dependency configuration:

Com.alibaba fastjson

Build configuration:

In the parent POM:

${project.artifactId} ${basedir} / src/main/java * * / * .xml * * / * .properties ${basedir} / src/main/resources Org.apache.maven.plugins maven-resources-plugin 2.7 UTF-8 org.apache.maven.plugins maven-compiler-plugin 3.5.1 1.8 1.8 UTF-8

In the child POM:

${basedir} / src/main/java * * / * .xml * * / .properties ${basedir} / src/main/resources org.apache.maven.plugins maven-dependency-plugin 3.0.2 Package copy-dependencies system ${project.build.directory} / ${project.build.finalName} / WEB-INF/lib

The plug-in in the sub-POM is the key to the solution.

Tags: Configuration UTF-8 key plug-ins Management issues Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple OPPO Reno vpn Docker macOS