当前位置:网站首页>Set up nexus service
Set up nexus service
2022-06-29 03:23:00 【se7en_ q】
Why build nexus Private clothes , The reason is simple , Some companies do not provide Internet access to Project team members , So you can't use maven Access the remote warehouse address , So it's necessary to find a machine with internet access in the LAN , build nexus Private clothes , Then the developers connect to this private server , In this way, it can be built through this machine nexus Personal computer access maven Remote warehouse for .
1. First make sure our environment is installed maven,jdk And so on
2. When all this is ready , To download the latest version of nexus Download address :http://www.sonatype.org/nexus/go
My local installation is nexus-2.2-01-bundle, The latest version is nexus-2.4.0-09-bundle
3. Open Directory nexus-2.4.0-09-bundle\nexus-2.4.0-09\bin\jsw You'll find many system versions under this directory nexus Environmental Science
My computer is win7 (64) System for , So I chose windows-x86-64 This version , Of course, you can choose the corresponding version according to your personal computer system

Open a version and you'll see the following :

I usually will nexus Install as windows service , So click install-nexus.bat This , visit http://localhost:8081/nexus/ After startup, the following page , There's a... In the upper right corner Log in Hyperlinks for , Click login
The default user name is admin The password is admin123

After login, you can modify the login information on the left side :

4. Next , Let's configure maven Proxy server for ( The premise is that your computer can't connect to the Internet , If you can access the Internet , It's not interesting here either , Just to introduce )
Find it in the menu on the left, as shown in the figure :

There are many options on the right , Find it here

Just add your proxy server .
5: Next , It seems that there is no need to configure it here , Anyway, I didn't use a lot of functions , Maybe it's a bad skill , Don't use , ha-ha ....
by the way , Here's another one that might need attention , Namely 3rd party、Snapshots、Releases These three , Respectively used to save third parties jar( Typical oracle Database j Drive pack ), Snapshots within the project team 、 Release within the project team .
I'm just using 3rd party This third-party function , take maven There are no components in the warehouse jar Package upload to server . How to put the third party's jar Upload to nexus The above? ? as follows : For example, upload oracle Driver package




So now nexus Installed , How to use the upload jar Bag it , Very simple. , The premise is that you have established a maven Project . contain pom.xml This file , Add the following to this file :
Go to the server first jar Of maven artifacts

And then in pom.xml Add the following local warehouse address :
1 <repositories> 2 <repository> 3 <id>nexus</id> 4 <name>Team Nexus Repository</name> 5 <url>http://localhost:8081/nexus/content/groups/public</url> 6 </repository> 7 </repositories> 8 <pluginRepositories> 9 <pluginRepository> 10 <id>nexus</id> 11 <name>Team Nexus Repository</name> 12 <url>http://localhost:8081/nexus/content/groups/public</url> 13 </pluginRepository> 14 </pluginRepositories> 15 <dependencies> 16 <dependency> 17 <groupId>com.oracle</groupId> 18 <artifactId>ojdbc</artifactId> 19 <version>10.1.0.2.0</version> 20 </dependency> 21 </dependencies>

Here we are , It's done nexus The construction of private clothes , Project team developers develop , Just in the project of pom.xml In file , Add the following pom.xml Information can be obtained from private service jar.
If you add other components , Will be first nexus Private server download OK , It will be downloaded locally in the future . in the future , If it is found that a private server already exists jar package , Will be downloaded directly from the private server , If you don't go to the Internet to download . This is the advantage of building private servers . ha-ha ........
So it is necessary to build maven Private clothes .
边栏推荐
- LeetCode 每日一题——324. 摆动排序 II
- 解决allegro中测量距离时,点击一个点后光标闪烁的问题
- 不同的二叉搜索樹[自下而上回溯生成樹+記憶搜索--空間換時間]
- Unable to locate program input point [email protected]
- Synchronous movement state of Jerry's watch [chapter]
- 搭建nexus服务
- FortiGate firewall filters the specified session and cleans it up
- Tkinter Huarong Road 4x4 Tutorial 4
- FPGA (VIII) RTL code IV (basic circuit design 1)
- 【线程通信】
猜你喜欢

问题——adb shellerror: insufficient permissions for device: verify udev rules.

Tortoise 没有显示绿色图标

Certification training | streamnational certification training phase 2

Stm32l4 Series MCU ADC accurately calculates input voltage through internal reference voltage

Problème - Ajouter shellerror: permissions d'instrumentation pour le périphérique: vérifier les règles udev.

Leetcode daily question - 324 Swing sort II
![[issue 259] uncover how count is executed in MySQL?](/img/bc/ee26eba95f408ea887d6aa06301a0b.jpg)
[issue 259] uncover how count is executed in MySQL?

MATALB signal processing - signal transformation (6)

微信小程序安全登录,必须先校验微信返回openid,确保信息唯一性。
![[flutter topic] 66 diagram basic constraints box (I) yyds dry goods inventory](/img/8b/55a43383e1cb6b37231dba980c7b11.jpg)
[flutter topic] 66 diagram basic constraints box (I) yyds dry goods inventory
随机推荐
二叉树的层序遍历 II[层序遍历方式之一 ->递归遍历 + level]
Codeforces Round #771 (Div. 2) ABC
allegro 设计中显示网络飞线或关闭网络飞线的方法
图扑软件智慧能源一体化管控平台
19.03 vessel description and simple application examples continued
2022-2028 global MWIR camera industry research and trend analysis report
Merge sort
99 multiplication table
Potential learning C language - pointer explanation (Advanced)
Etcd教程 — 第六章 Etcd之核心API V3
How to understand MySQL indexes?
Basic MySQL database operations
Shell script to count files, then remove oldest files
测试入门——集成测试
Double click events and click events
解决allegro中测量距离时,点击一个点后光标闪烁的问题
FPGA(八)RTL代码之四(基本电路设计1)
Equal wealth
Matlab exercises - image drawing exercises
不同的二叉搜索樹[自下而上回溯生成樹+記憶搜索--空間換時間]
