In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "how to publish your own Java project to the Maven central warehouse". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to release your Java project to the Maven central warehouse".
When we build a Java project, we usually introduce dependencies into the pom file, so that we can manage the version and complete the build. Recently, we used an open source project in a project, but the project has not been updated for a long time. Fortunately, it does not conflict with my own project dependency and can be used normally. I also submitted a PR on github to upgrade the dependency from springboot1.X to springboot2.X. But the author unanimously did not reply.
I'm lucky, but if there's a version conflict, or if you need to modify the open source code, it may be different, and you have several options:
Modify the source code, and then use it as a local warehouse or private warehouse. This method can solve the problem, but the versatility is relatively poor. After all, the local warehouse still has the problem of version management, and it is not conducive to multi-person cooperation. The way of private warehouse also has certain costs and limitations.
Submit a merger request and ask the project maintainer to update to the central warehouse, and you will face the problems I encountered. The author's response is slow, your request is difficult to get a timely response, and your requirements are not necessarily general requirements. Class library developers and communities may have different voices, and this path may not be accessible.
Modify the relevant code according to your own needs, upload it to the central warehouse of your groupid, and send PR to the source warehouse if necessary (that is, method 2)
① logs in to https://issues.sonatype.org/secure/Signup!default.jspa and registers his own account
Log in to Sonatype with ② and submit ISSUES. Note the required entry.
③ downloads and configures GPG under windows
Https://files.gpg4win.org/gpg4win-3.1.10.exe
④ packages and uploads to Maven Central Warehouse
Thank you for your reading, the above is the content of "how to publish your own Java project to the Maven central warehouse". After the study of this article, I believe you have a deeper understanding of how to release your own Java project to the Maven central warehouse. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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: 206
*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.