In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces the relevant knowledge of "how maven Project An introduces the jar package of maven Project B". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
First open the pom file of Project B and add the following configuration
Org.apache.maven.plugins maven-compiler-plugin 1.8 1.8
Do not use the following configuration, as there will be problems with package references
Org.springframework.boot spring-boot-maven-plugin
The second step is to import the package of Project B into Project A.
If you don't understand, you can import the local jar package from Baidu maven.
Online html system ${basedir} / src/main/resources/lib/html-0.0.1-SNAPSHOT.jar
So that you can reference the class of project B in project A
But if your project B relies on additional jar packages, remember to refer to it in Project A.
Of course, we can also package the dependency package when Project B is packaged. Add additional plug-ins to maven and configure them as follows
Maven-assembly-plugin online.html.HtmlApplication jar-with-dependencies make-assembly package single
Through maven management in the editor, click the following button
The final jar package is as follows: XXX-with-dependencies.jar
This is the end of the introduction of "how maven Project An introduces the jar package of maven Project B". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.