Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to upload private server with maven

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail how to upload maven private server, the content of the article is of high quality, so the editor will share it with you for reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.

Method 1:

Mvn deploy:deploy-file

-DgroupId=cn.analysys.common

-DartifactId=analysys-pay-util

-Dversion=1.0.0-Dpackaging=jar

-Dfile=analysys-pay-util-1.0.0.jar

-Durl= http://192.168.220.230:8081/nexus/content/repositories/releases/

-DrepositoryId=releases

Mode 2:

Configure release and snapshot versions in setting.xml

Releases

Admin

Admin123

Snapshots

Admin

Admin123

In the pom file

Releases

Http://172.17.103.59:8081/nexus/content/repositories/releases/

Snapshots

Http://172.17.103.59:8081/nexus/content/repositories/snapshots/

For example, maven defaults to using 0.1-SNAPSHOT as the version of the module.

1. If you use the command of mvn deploy-P release when publishing, then 0.1 will be used as the release version automatically. According to the rules of maven dealing with snapshot and release, because the version number is not followed by-SNAPSHOT, it is regarded as an official release version and will be released to the release repository.

2. If you use the mvn deploy command when publishing, then the default version number 0.1-SNAPSHOT will be used. At this time, maven will be considered as a snapshot version and will be automatically published to the snapshot version library.

About how to upload maven private server to share here, I hope the above content can be of some help to 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.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report