当前位置:网站首页>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 .
边栏推荐
- FPGA (VII) RTL code III (complex circuit design 2)
- [test theory] quality analysis ability
- 问题——adb shellerror: insufficient permissions for device: verify udev rules.
- Data discretization
- The method of exporting packages of all components from existing PCBs in Altium Designer
- Zigzag sequence traversal of binary tree [one of layered traversal methods - > preorder traversal +level]
- 19.03 容器的说明和简单应用例续
- 問題——adb shellerror: insufficient permissions for device: verify udev rules.
- Gcc compiler package
- vim配置与使用
猜你喜欢

In depth analysis of Apache bookkeeper series: Part 3 - reading principle
![[thread communication]](/img/32/7374fd2eb9ae613f00415c86cb245e.png)
[thread communication]
![[leetcode daily question] number of schemes to reconstruct a tree](/img/82/2ed8c9747f9fa36fde4f18cf8966be.jpg)
[leetcode daily question] number of schemes to reconstruct a tree

How to keep source code secret in embedded development

Connect error: no route to host (errno:113)

Gartner“客户之声”最高分,用户体验成中国数据库一大突破口

2022-2028 global long wave infrared camera and camera core industry research and trend analysis report

Certification training | streamnational certification training phase 2

初探元宇宙存储,数据存储市场下一个爆点?

Leetcode daily question - 324 Swing sort II
随机推荐
Problème - Ajouter shellerror: permissions d'instrumentation pour le périphérique: vérifier les règles udev.
Different binary search trees [bottom-up backtracking spanning tree + memory search -- space for time]
Concise words tell about technical people who must master basic IT knowledge and skills. Part 1
Data discretization
Matlab exercises - image drawing exercises
Probe into metacosmic storage, the next explosive point in the data storage market?
If you dare to write MQ message queue middleware on your resume, you must win these questions!
Unable to locate program input point [email protected]
Problem - ADB shellerror: insufficient permissions for device: verify udev rules
FarrowTech的无线传感器采用橙群微电子的NanoBeacon蓝牙信标技术
恢复二叉搜索树[根据题意模拟->发现问题->分析问题->见招拆招]
How to add the live video function to the website built by your own live video software (build a live video website)
Same tree [from part to whole]
Laravel v. about laravel using the pagoda panel to connect to the cloud database (MySQL)
Redu.us took the initiative to transform, and the operation leader of China's charging pile emerged
[linear algebra] 1.2 total permutation and commutation
2D人体姿态估计 - DeepPose
Zigzag sequence traversal of binary tree [one of layered traversal methods - > preorder traversal +level]
[test theory] quality analysis ability
逆序对对数计算,顺序对对数计算——归并排序
