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--
The purpose of this article is to share with you how to use maven nexus. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
1. Modify maven global configuration file setting.xml
Org.apache.maven.plugins nexus-release admin 1q nexus-snapshot admin 1qa nexus nexus Http://192.168.1.7:8081/repository/maven-public/ true always always true Aliyun Maven Aliyun Mirror http://maven.aliyun.com/nexus/content/groups/public/ true False nexus
two。 Quote private server in the project
Com.iskytrip iskytrip-framework-util 1.3
3. Compile and publish jar package
1)。 Configure the private server address in the project pom.xml
Nexus-release release http://192.168.1.7:8081/repository/maven-releases/ nexus-snapshot snapshot http://192.168.1.17:8081/repository/maven-snapshots/
2)。 Configure user name and password for uploading private server in setting.xml
Nexus-release admin 1qa nexus-snapshot admin 1ol.
Publish using the mvn clean deploy command
Description:
Differences between release version and snapshot version
Configure 1.0-snapshot in pom.xml to upload to snapshot library. If configured in 1.0, upload release library.
The snapshot library automatically generates version suffixes based on time, such as 1.0-20190826.073546-1. When referencing, you only need 1.0-snapshot to reference the latest snapshot library.
Differences between different maven libraries
Maven-central-> maven Central Common Library
Maven-public-> Warehouse groups can be added to multiple repositories, and projects only need to reference groups to reference multiple repositories.
Maven-release-> publish the library
Maven-snapshot-> test library
Thank you for reading! This is the end of this article on "how to use maven nexus". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
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.