当前位置:网站首页>Mavn builds nexus private server
Mavn builds nexus private server
2022-07-02 15:09:00 【Cloud computing security】
Catalog
One 、 Purpose
occasionally Java Development is building projects , Because there are some dependencies, the whole project will be built , thus Jenkins Construction is very slow , It takes four to five minutes to complete the construction . So you can build Mavn Private clothes Nexus, Development will be public jar Upload the package to Nexus, In this way, no additional construction is required during construction , So as to improve Jenkins Build performance .
Two 、 Deploy
1、 download
Nexus edition :3.x
Nexus Installation package download link :https://help.sonatype.com/repomanager3/product-information/download

2、 decompression
[[email protected] ~]# tar xzf nexus-3.39.0-01-unix.tar.gz
3、 To configure
To configure JDK route :
[[email protected] ~]# cd nexus-3.39.0-01/bin/
[[email protected] bin]# cat nexus
...
# Uncomment the following line to override the JVM search sequence
# INSTALL4J_JAVA_HOME_OVERRIDE=
# Uncomment the following line to add additional VM parameters
# INSTALL4J_ADD_VM_PARAMS=
INSTALL4J_JAVA_HOME_OVERRIDE=/opt/jdk
...
modify JVM Heap size ( The default is 2703M): Modify... According to the actual situation
[[email protected] ~]# cd nexus-3.39.0-01/bin/
[[email protected] bin]# cat nexus.vmoptions
...
-Xms512m
-Xmx512m
...
Modify the default port ( The default is 8081):
[[email protected] ~]# cd nexus-3.39.0-01/etc/
[[email protected] etc]# cat nexus-default.properties
...
application-port=8181
application-host=0.0.0.0
...
4、 start-up
[[email protected] ~]# cd nexus-3.39.0-01/bin/
# This startup is background startup
[[email protected] bin]# ./nexus start
WARNING: ************************************************************
WARNING: Detected execution as "root" user. This is NOT recommended!
WARNING: ************************************************************
Starting nexus
# stop it
# [[email protected] bin]# ./nexus stop
# restart
# [[email protected] bin]# ./nexus restart
# The front desk starts ( Print log )
# [[email protected] bin]# ./nexus run
5、 visit
http://139.198.105.50:8181/

Click on the top right corner Sign in Sign in
user name :admin
password :find Look for ( Generally speaking, it is related to Nexus The extracted files of are in the same directory )
[[email protected] bin]# find / -name "admin.password" /root/sonatype-work/nexus3/admin.password [[email protected] ~]# cd /root/sonatype-work/nexus3/ [[email protected] nexus3]# cat admin.password 4649fc72-d96b-44a5-93eb-e7101db22072
After entering the initial password, you will be prompted to set a new password :

The last to enter web page :

thus ,Nexus installation is complete !! Then there are some operations .
3、 ... and 、FAQ
1、JDK Version of the problem
# current version 11.X
[[email protected] opt]# java -version
java version "11.0.2" 2018-10-16 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.2+7-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.2+7-LTS, mixed mode)
# Initiate error reporting ( say JDK Version must be 1.8.X)
[email protected] bin]# ./nexus start
No suitable Java Virtual Machine could be found on your system.
The version of the JVM must be 1.8.
Please define INSTALL4J_JAVA_HOME to point to a suitable JVM.
2、 Solution
Reduce JDK Version is 1.8.X To solve the problem .
[[email protected] opt]# wget https://mirrors.tuna.tsinghua.edu.cn/AdoptOpenJDK/8/jdk/x64/linux/OpenJDK8U-jdk_x64_linux_hotspot_8u322b06.tar.gz
[[email protected] opt]# tar xzf OpenJDK8U-jdk_x64_linux_hotspot_8u322b06.tar.gz
# Original JDK Home directory mv Backup
[[email protected] opt]# mv /opt/jdk /opt/jdk.bak
# the 1.8.X edition mv Renamed as JDK that will do
[[email protected] opt]# mv jdk8u322-b06/ jdk
# Now look at the current JDK edition ( It has come down )
[[email protected] opt]# java -version
openjdk version "1.8.0_322"
OpenJDK Runtime Environment (Temurin)(build 1.8.0_322-b06)
OpenJDK 64-Bit Server VM (Temurin)(build 25.322-b06, mixed mode)
边栏推荐
- C语言中的算术运算及相关练习题
- Thoroughly master prototype__ proto__、 Relationship before constructor (JS prototype, prototype chain)
- Onnx+tensorrt: write preprocessing operations to onnx and complete TRT deployment
- CDN 在游戏领域的应用
- Ad20 cannot select the solution of component packaging in PCB editor
- Record an interview
- 华为面试题: 没有回文串
- JMeter script parameterization
- 关于网页中的文本选择以及统计选中文本长度
- LeetCode 2320. 统计放置房子的方式数
猜你喜欢

MFC timer usage

Obsidian installs third-party plug-ins - unable to load plug-ins

Full of knowledge points, how to use JMeter to generate encrypted data and write it to the database? Don't collect it quickly

Error: NPM warn config global ` --global`, `--local` are deprecated Use `--location=global` instead.

Li Chuang EDA learning notes 15: draw border or import border (DXF file)

List集合&UML图

表格响应式布局小技巧

Kityformula editor configure font size and spacing

mathjax 入门(web显示数学公式,矢量的)

LeetCode 2320. 统计放置房子的方式数
随机推荐
数据分析思维分析方法和业务知识——业务指标
geoserver离线地图服务搭建和图层发布
TiDB跨数据中心部署拓扑
使用mathtype编辑公式,复制粘贴时设置成仅包含mathjax语法的公式
Key points of compilation principle examination in 2021-2022 academic year [overseas Chinese University]
如何对 TiDB 进行 TPC-C 测试
LeetCode 2320. Count the number of ways to place the house
学习使用php将时间戳转换为大写日期的方法代码示例
MFC CString 转 char*
C#代码审计实战+前置知识
广州市应急管理局发布7月高温高湿化工安全提醒
数据分析常见的英文缩写(一)
Sharp tool SPL for post SQL calculation
Error: NPM warn config global ` --global`, `--local` are deprecated Use `--location=global` instead.
C code audit practice + pre knowledge
XML配置文件
學習使用php實現公曆農曆轉換的方法代碼
Btrace- (bytecode) dynamic tracking tool
qml 弹窗框架,可定制
AtCoder Beginner Contest 254