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 use Maven Warehouse

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly explains "how to use Maven warehouse". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to use Maven warehouse.

Overview

The cloud platform implements the Maven warehouse management function through the rbd-repo component, which is based on the open source version of Artifactory.

If you have deployed a Maven warehouse management system, such as Artifactory or Nexus, you can interface with your local Maven repository by configuring the rbd-repo component of the cloud gang. If you don't already have a Maven repository, you can directly use the Maven repository built into the cloud to build the application.

This article introduces how to interface with external Maven repositories of Cloud help, which is actually configuring the Artifactory of Cloud help to connect with external Artifactory or Nexus. At the same time, it also describes how to use the built-in Maven repository of Cloud help to upload jar packages, and finally build java applications through Cloud help.

Acp-repo * acp repo http://maven.goodrain.me/

If you want to customize the maven repository, please refer to the custom maven configuration file

Docking external Maven warehouses

As shown in the figure above, you only need to create a Remote (remote) type warehouse in the internal Maven warehouse management system of the cloud gang, and point to your existing Maven warehouse address to realize the interface with the cloud help platform.

Cloud help built-in Maven warehouse management system login information:

Address: http:// management node IP:8081

User name: admin

Password: password

For security reasons, it is recommended that you change the administrator password of the Maven warehouse as soon as possible.

The following is an example to illustrate the interfacing method:

1. Create a warehouse of type Remote

Visit the http:// management node IP:8081 and log in with the administrator account.

Admin-Repositories Select Remote

New Remote (remote) warehouse

Remote (remote) Warehouse Type Select Maven

two。 Configure Remote (remote) warehouse

* * the name of Repository Key:** warehouse, which cannot be the same as that of other warehouses. The warehouse name of the example is: demo-repo.

* * URL: * * address of remote warehouse if your external Maven warehouse is built by Artifactory, the address is similar to http:///artifactory/list//, and if your external warehouse is built by Nexus, the address is similar to http://maven domain name / nexus/content/repositories//

After filling in the URL address, you can click the Test button to test the validity of the connection, and if the connection is valid, you can click the "Save & Finish" button to complete the creation.

3. Add a new warehouse to the libs-release virtual warehouse (important)

By default, the internal warehouse creates a virtual warehouse called libs-release. The virtual warehouse (virtual) is not a real warehouse, but a logical unit for organizing local and remote repositories. Because the cloud gang mirrors all the warehouse addresses, you need to add the remote warehouse to the virtual warehouse.

Admin-- > Repositories-- > Virtual Select libs-release

Use the Maven warehouse built-in by Yungang

If you do not have a Maven warehouse management system, you can directly use the Maven warehouse management system built into Yungang. The following steps are described:

1. Create a Maven repository of type Local

Create a Maven repository of type Local named repo-local

two。 Upload your own jar package

Select local warehouse repo-local

Upload jar package

3. View dependency declaration information

At this point, I believe you have a deeper understanding of "how to use Maven warehouse", might as well come to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

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

Servers

Wechat

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

12
Report