In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you "Springboot how to use the maven release plug-in to perform version management and packaging operations", the content is easy to understand, well-organized, hope to help you solve your doubts, the following let the editor lead you to study and learn "Springboot how to use the maven release plug-in to perform version management and packaging operations" this article.
Maven Release
When our project reaches the current goal, there is no need to change after testing. At this point we need to package the SNAPSHOT version into the RELEASE version. Only in this way, users of this package can safely put this version of the package into their own projects. And, do not worry that the functionality provided by this feature pack will change at any time.
Maven-release-plugin can be used to build release version projects, automatically typing tag, incrementing version numbers, and distributing release version jar packages to the warehouse.
Matters needing attention
It needs to be used with git or svn. So that you can type tag in the push project code. Aspect version rollback.
It needs to be used with maven private server. Build nexus. After the project is packed, it will be uploaded to the private service warehouse.
Start
1. Configure the pom file. Configure git address and scm
two。 Configure the private server warehouse address. Remember to create the corresponding warehouse in advance.
3. Execute-- mvn release:clean--
Perform initialization work
4. Execute-- mvn release:prepare-X--
Start the first step of packing and getting ready.
-- ps: local modifications should be synchronized to the remote code repository or an error will be reported:--
The following information will be filled in after a successful start
Fill in the information is the release of the release version number. I hit tag on git. The next snapshot version number after the release. If it is left empty, it is the default value.
Successful execution
5.-mvn release:rollback-X--
An error occurred when 4 filled in the information. Or fill in the version information incorrectly. Then execute the above command to roll back. The information filled in in the 4 steps is reset and rolled back to the previous version
-- rollback succeeded. Version fallback to the previous snapshot version--
Remember to delete local and remote tag after performing the rollback operation. Otherwise, it will cause the next prepare to fail.
6. Murray-mvn release:perform-X--
When the preparation is complete, the packaging operation begins.
After success, you can see that git has typed a tag. And the packaged jar of the project is uploaded on the private server warehouse.
Packaging and publishing complete
These are all the contents of the article "how Springboot uses the maven release plug-in to perform version management and packaging operations". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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.