Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-02-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report