In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
What are the records of springboot multi-module packaging? I believe many inexperienced people are at a loss about this. Therefore, this paper summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.
As expected, no common was found:
[WARNING] The POM for com.hs:common:jar:0.0.1-SNAPSHOT is missing, no dependency information available
Install the common first.
Continue to pack domain, or report an error. The error is slightly different.
[ERROR] Failed to execute goal on project domain: Could not resolve dependencies for project com.hs:domain:jar:0.0.1-SNAPSHOT: Failed to collect dependencies at com.hs:common:jar:0.0.1-SNAPSHOT: Failed to read artifact descriptor for com.hs:common:jar:0.0.1-SNAPSHOT: Could not find artifact com.hs:demo:pom:0.0.1-SNAPSHOT-> [Help 1]
This is a little confused, why still report an error, why not try the parent project install
Package domain again, successful
Another point to note is that the plug-in spring-boot-maven-plugin, must only exist in the main project, other projects can not have, other projects do not need to be able to execute, are dependent packages. After adding, there will be all kinds of mistakes, and the jar packaged by spring-boot-maven-plugin is unreliable. Sometimes when you create a sub-module, you also create a springboot project, and then you forget to delete it. As a result, packaging is always wrong, so it is recommended that you only build a springboot project on the main project, while other projects can build an ordinary maven project.
After reading the above, have you mastered the methods of recording the multi-module packaging of springboot? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.