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 add jar package to private server using Nexus

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

Share

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

Today, I will talk to you about how to use Nexus to add jar packages to private servers. Many people may not know much about it. In order to make you understand better, the editor has summarized the following contents for you. I hope you can get something according to this article.

1. First of all, make sure that our environment has installed the necessary environment such as maven,jdk.

two。 When all this is ready, download the latest version of nexus at http://www.sonatype.org/nexus/go

I installed nexus-2.2-01-bundle locally, and the latest version is nexus-2.4.0-09-bundle

3. Open the directory nexus-2.4.0-09-bundle\ nexus-2.4.0-09\ bin\ jsw and you will find many system versions of the nexus environment.

My computer is a win7 (64) system, so I chose the windows-x86-64 version. Of course, I can choose the corresponding version according to my personal computer system.

Open a version and you will see the following:

I usually install nexus as a windows service, so click install-nexus.bat to visit the following page after http://localhost:8081/nexus/ starts. There is a hyperlink to Log in in the upper right corner. Click to log in.

The default user name is admin and the password is admin123

After logging in, you can modify the login information on the left:

4. Next, let's configure the proxy server of maven (provided that your computer can't connect to the external network, if you can connect to the external network, it's not interesting here, just an introduction)

Find the figure on the left menu:

Click to see many options on the right. Find it here.

Just add your proxy server.

5: next, it seems that there is no need to configure here, anyway, I did not use a lot of functions, may be not good at learning technology, can not use, hehe.

By the way, there may be another thing to pay attention to here, that is, 3rd party, Snapshots and Releases are used to save third-party jar (the j-driver package of a typical oracle database), a snapshot within the project team, and a release version within the project team.

I am currently only using 3rd party, a third-party function, to upload jar packages without components in the maven repository to the server. How to upload a third-party jar to nexus? As follows: for example, upload the driver package of oracle

So now that nexus is installed, how to use the uploaded jar package is very simple, as long as you have set up a maven project. Include the file pom.xml, and add the following to this file:

First go to the server to see the maven widget of jar.

Then add the following local warehouse address to pom.xml:

Nexus Team Nexus Repository http://localhost:8081/nexus/content/groups/public nexus Team Nexus Repository http://localhost:8081/nexus/content/groups/public com.oracle ojdbc 10.1.0.2.0

After reading the above, do you have any further understanding of how to add jar packages to private servers using Nexus? If you want to know more knowledge or related content, 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

Servers

Wechat

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

12
Report