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 install private server nexus in maven

2025-03-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

Maven how to install private server nexus, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain for you in detail, people with this need can come to learn, I hope you can gain something.

Brief introduction

Private server is not the core concept of Maven, it is just a special Maven repository derived from it. By establishing your own private service, you can reduce the load of the central warehouse, save the bandwidth of the external network, accelerate the construction of Maven, deploy your own build, and use Maven efficiently. Nexus is also the most popular Maven warehouse management software.

Request

Vps one

System centos7

Memory greater than 1g

Installation

Here we use docker for installation, and crt connects to vps

Yum-y install docker

Start docker: service docker start

Find nexus image: docker search nexus

In general, we use the highest stars. Docker pull docker.io/sonatype/nexus

Start the nexus container. For future container launches, [I don't know how to start it, you can check it in docker hub] [https://hub.docker.com/]]

Generally, you can find out how to start by searching run directly.

Access view, administrator account password admin admin123

Maven Settin

Note: the settings id uploaded in pom should be consistent with the id in maven setting.

Setting.xml Settin

Pom file settings

Nexus Team Nexus Repository http://nexus.jetbrains.org.cn/nexus/content/groups/public true always nexus Team Nexus Repository http://nexus.jetbrains.org.cn/nexus/content/groups/public true always

Releases Nexus Release Repository http://nexus.jetbrains.org.cn/nexus/content/repositories/releases/ snapshots Nexus Snapshot Repository http://nexus.jetbrains.org.cn/nexus/content/repositories/snapshots/

The project can be uploaded to private server after executing mvn delepoy.

As for the difference between releases library and snaoshots library

To put it simply, the relesses library is a stable version or production version, the snaoshots library is an unstable version or development version, and the project version number followed by-SNAPSHOT will be uploaded to the snaoshots library.

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

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