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

Use maven to extract the dependent jar of the project to the specified folder

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

Share

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

Sometimes it is necessary for maven to extract all dependent jar files of the current project to a specified folder. You can use maven-dependency-plugin to implement

1. Add the following to pom.xml:

Maven-dependency-plugin

${project.build.directory} / lib

False

True

...

* where ${project.build.directory} is the maven variable, indicating the target directory. If you do not write, the lib directory will be created under the root directory.

* excludeTransitive, indicating whether there are no indirectly dependent packages

* stripVersion means that the version information is removed from the copied jar file.

two。 Execute mvn dependency:copy-dependencies

All dependent jar will be extracted to the lib directory

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