使用Nexus配置Maven私有仓库
使用Nexus配置Maven私有倉庫
作者:尹正杰?
版權聲明:原創作品,謝絕轉載!否則將追究法律責任。
?
?
一.安裝配置Nexus
1>.下載nexus
下載地址:https://www.sonatype.com/download-oss-sonatype(根據你的操作系統選擇對應的版本即可)
[root@node101 ~]# yum -y install lrzsz Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile* base: mirrors.aliyun.com* extras: mirrors.nju.edu.cn* updates: mirrors.nju.edu.cn Resolving Dependencies --> Running transaction check ---> Package lrzsz.x86_64 0:0.12.20-36.el7 will be installed --> Finished Dependency ResolutionDependencies Resolved=============================================================================================================================================Package Arch Version Repository Size ============================================================================================================================================= Installing:lrzsz x86_64 0.12.20-36.el7 base 78 kTransaction Summary ============================================================================================================================================= Install 1 PackageTotal download size: 78 k Installed size: 181 k Downloading packages: lrzsz-0.12.20-36.el7.x86_64.rpm | 78 kB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transactionInstalling : lrzsz-0.12.20-36.el7.x86_64 1/1 Verifying : lrzsz-0.12.20-36.el7.x86_64 1/1 Installed:lrzsz.x86_64 0:0.12.20-36.el7 Complete! [root@node101 ~]# [root@node101 ~]# yum -y install lrzsz #安裝上傳和下載工具,不支持大于4G的文件,如果文件大于4G的話,Windows推薦使用winscp軟件,如果是linux或者是mac的話推薦使用scp命令! [root@node101 ~]# ll total 187260 -rw-r--r--. 1 root root 191753373 Dec 18 09:25 jdk-8u191-linux-x64.tar.gz [root@node101 ~]# [root@node101 ~]# [root@node101 ~]# rz #在操作系統的瀏覽器下載之后,上傳到服務器上即可。[root@node101 ~]# [root@node101 ~]# ll total 309744 -rw-r--r--. 1 root root 191753373 Dec 18 09:25 jdk-8u191-linux-x64.tar.gz -rw-r--r-- 1 root root 125423547 Dec 18 17:02 nexus-3.14.0-04-unix.tar.gz [root@node101 ~]# [root@node101 ~]#2>.解壓并配置nexus的環境變量
[root@node101 ~]# ll total 309744 -rw-r--r--. 1 root root 191753373 Dec 18 09:25 jdk-8u191-linux-x64.tar.gz -rw-r--r-- 1 root root 125423547 Dec 18 17:02 nexus-3.14.0-04-unix.tar.gz [root@node101 ~]# [root@node101 ~]# [root@node101 ~]# tar -zxf nexus-3.14.0-04-unix.tar.gz -C /yinzhengjie/soft/ [root@node101 ~]# [root@node101 ~]# ln -s /yinzhengjie/soft/nexus-3.14.0-04/ /yinzhengjie/soft/nexus [root@node101 ~]# [root@node101 ~]# vi /etc/profile [root@node101 ~]# [root@node101 ~]# tail -3 /etc/profile #Add Nexus Path by yinzhengjie NEXUS_HOME=/yinzhengjie/soft/nexus PATH=$PATH:$NEXUS_HOME/bin [root@node101 ~]# [root@node101 ~]# source /etc/profile #使得配置的環境變量生效。 [root@node101 ~]#3>.后臺啟動nexus服務
[root@node101 ~]# yum -y install net-tools Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile* base: mirrors.aliyun.com* extras: mirrors.nju.edu.cn* updates: mirrors.nju.edu.cn base | 3.6 kB 00:00:00 extras | 3.4 kB 00:00:00 updates | 3.4 kB 00:00:00 Resolving Dependencies --> Running transaction check ---> Package net-tools.x86_64 0:2.0-0.24.20131004git.el7 will be installed --> Finished Dependency ResolutionDependencies Resolved======================================================================================================================================================================================Package Arch Version Repository Size ====================================================================================================================================================================================== Installing:net-tools x86_64 2.0-0.24.20131004git.el7 base 306 kTransaction Summary ====================================================================================================================================================================================== Install 1 PackageTotal download size: 306 k Installed size: 918 k Downloading packages: net-tools-2.0-0.24.20131004git.el7.x86_64.rpm | 306 kB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transactionInstalling : net-tools-2.0-0.24.20131004git.el7.x86_64 1/1 Verifying : net-tools-2.0-0.24.20131004git.el7.x86_64 1/1 Installed:net-tools.x86_64 0:2.0-0.24.20131004git.el7 Complete! [root@node101 ~]# [root@node101 ~]# yum -y install net-tools #安裝網絡工具,便于檢查服務的端口 [root@node101 ~]# source /etc/profile [root@node101 ~]# [root@node101 ~]# nexus run & [1] 1424 [root@node101 ~]# [root@node101 ~]# WARNING: ************************************************************ WARNING: Detected execution as "root" user. This is NOT recommended! WARNING: ************************************************************ 2018-12-18 17:12:40,859-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.pax.logging.NexusLogActivator - start 2018-12-18 17:12:42,667-0500 WARN [FelixStartLevel] *SYSTEM uk.org.lidalia.sysoutslf4j.context.SysOutOverSLF4JInitialiser - Your logging framework class org.ops4j.pax.logging.slf4j.Slf4jLogger is not known - if it needs access to the standard println methods on the console you will need to register it by calling registerLoggingSystemPackage 2018-12-18 17:12:42,668-0500 INFO [FelixStartLevel] *SYSTEM uk.org.lidalia.sysoutslf4j.context.SysOutOverSLF4J - Package org.ops4j.pax.logging.slf4j registered; all classes within it or subpackages of it will be allowed to print to System.out and System.err 2018-12-18 17:12:42,672-0500 INFO [FelixStartLevel] *SYSTEM uk.org.lidalia.sysoutslf4j.context.SysOutOverSLF4J - Replaced standard System.out and System.err PrintStreams with SLF4JPrintStreams 2018-12-18 17:12:42,673-0500 INFO [FelixStartLevel] *SYSTEM uk.org.lidalia.sysoutslf4j.context.SysOutOverSLF4J - Redirected System.out and System.err to SLF4J for this context 2018-12-18 17:12:42,680-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - Properties: 2018-12-18 17:12:42,681-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - application-host='0.0.0.0' 2018-12-18 17:12:42,681-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - application-port='8081' 2018-12-18 17:12:42,681-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - fabric.etc='/yinzhengjie/soft/nexus-3.14.0-04/etc/fabric' 2018-12-18 17:12:42,681-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - jetty.etc='/yinzhengjie/soft/nexus-3.14.0-04/etc/jetty' 2018-12-18 17:12:42,681-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - karaf.base='/yinzhengjie/soft/nexus-3.14.0-04' 2018-12-18 17:12:42,681-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - karaf.data='/yinzhengjie/soft/sonatype-work/nexus3' 2018-12-18 17:12:42,682-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - karaf.etc='/yinzhengjie/soft/nexus-3.14.0-04/etc/karaf' 2018-12-18 17:12:42,682-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - karaf.home='/yinzhengjie/soft/nexus-3.14.0-04' 2018-12-18 17:12:42,682-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - karaf.instances='/yinzhengjie/soft/sonatype-work/nexus3/instances' 2018-12-18 17:12:42,682-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - logback.etc='/yinzhengjie/soft/nexus-3.14.0-04/etc/logback' 2018-12-18 17:12:42,682-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - nexus-args='/yinzhengjie/soft/nexus-3.14.0-04/etc/jetty/jetty.xml,/yinzhengjie/soft/nexus-3.14.0-04/etc/jetty/jetty-http.xml,/yinzhengjie/soft/nexus-3.14.0-04/etc/jetty/jetty-requestlog.xml' 2018-12-18 17:12:42,682-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - nexus-context-path='/' 2018-12-18 17:12:42,682-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - nexus-edition='nexus-pro-edition' 2018-12-18 17:12:42,682-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - nexus-features='nexus-pro-feature' 2018-12-18 17:12:42,682-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - ssl.etc='/yinzhengjie/soft/nexus-3.14.0-04/etc/ssl' 2018-12-18 17:12:42,683-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.Launcher - Java: 1.8.0_191, Java HotSpot(TM) 64-Bit Server VM, Oracle Corporation, 25.191-b12 2018-12-18 17:12:42,683-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.Launcher - OS: Linux, 3.10.0-862.el7.x86_64, amd64 2018-12-18 17:12:42,683-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.Launcher - User: root, en, /root 2018-12-18 17:12:42,683-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.Launcher - CWD: /yinzhengjie/soft/nexus-3.14.0-04 2018-12-18 17:12:42,686-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.Launcher - TMP: /yinzhengjie/soft/sonatype-work/nexus3/tmp 2018-12-18 17:12:42,710-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.jetty.JettyServer - Starting 2018-12-18 17:12:42,719-0500 INFO [FelixStartLevel] *SYSTEM org.eclipse.jetty.util.log - Logging initialized @6003ms to org.eclipse.jetty.util.log.Slf4jLog 2018-12-18 17:12:42,726-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.jetty.JettyServer - Applying configuration: file:/yinzhengjie/soft/nexus-3.14.0-04/etc/jetty/jetty.xml 2018-12-18 17:12:42,844-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.jetty.JettyServer - Applying configuration: file:/yinzhengjie/soft/nexus-3.14.0-04/etc/jetty/jetty-http.xml 2018-12-18 17:12:42,873-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.jetty.JettyServer - Applying configuration: file:/yinzhengjie/soft/nexus-3.14.0-04/etc/jetty/jetty-requestlog.xml 2018-12-18 17:12:42,897-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.bootstrap.jetty.JettyServer - Starting: org.eclipse.jetty.server.Server@192a733e[9.4.11.v20180605] 2018-12-18 17:12:42,901-0500 INFO [jetty-main-1] *SYSTEM org.eclipse.jetty.server.Server - jetty-9.4.11.v20180605; built: 2018-06-05T18:24:03.829Z; git: d5fc0523cfa96bfebfbda19606cad384d772f04c; jvm 1.8.0_191-b12 2018-12-18 17:12:42,970-0500 INFO [jetty-main-1] *SYSTEM org.eclipse.jetty.server.session - DefaultSessionIdManager workerName=node0 2018-12-18 17:12:42,970-0500 INFO [jetty-main-1] *SYSTEM org.eclipse.jetty.server.session - No SessionScavenger set, using defaults 2018-12-18 17:12:42,971-0500 INFO [jetty-main-1] *SYSTEM org.eclipse.jetty.server.session - node0 Scavenging every 600000ms 2018-12-18 17:12:42,979-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.bootstrap.osgi.BootstrapListener - Initializing 2018-12-18 17:12:42,980-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.bootstrap.osgi.BootstrapListener - Loading OSS Edition 2018-12-18 17:12:42,981-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.bootstrap.osgi.BootstrapListener - Installing: nexus-oss-edition/3.14.0.04 2018-12-18 17:12:45,318-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.bootstrap.osgi.BootstrapListener - Installed: nexus-oss-edition/3.14.0.04 2018-12-18 17:12:45,988-0500 INFO [jetty-main-1] *SYSTEM org.apache.shiro.nexus.NexusWebSessionManager - Global session timeout: 1800000 ms 2018-12-18 17:12:45,989-0500 INFO [jetty-main-1] *SYSTEM org.apache.shiro.nexus.NexusWebSessionManager - Session-cookie prototype: name=NXSESSIONID 2018-12-18 17:12:46,021-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING org.apache.tika.core [122] 2018-12-18 17:12:46,117-0500 INFO [jetty-main-1] *SYSTEM org.hibernate.validator.internal.util.Version - HV000001: Hibernate Validator 5.1.2.Final 2018-12-18 17:12:46,228-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED org.apache.tika.core [122] 2018-12-18 17:12:46,230-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING org.sonatype.nexus.common [145] 2018-12-18 17:12:46,276-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED org.sonatype.nexus.common [145] 2018-12-18 17:12:46,277-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING org.hibernate.validator [129] 2018-12-18 17:12:46,303-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED org.hibernate.validator [129] 2018-12-18 17:12:46,303-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING org.sonatype.nexus.analytics-api [136] 2018-12-18 17:12:46,327-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED org.sonatype.nexus.analytics-api [136] 2018-12-18 17:12:46,328-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING org.sonatype.nexus.commands [144] 2018-12-18 17:12:46,360-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED org.sonatype.nexus.commands [144] 2018-12-18 17:12:46,360-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING org.sonatype.nexus.crypto [146] 2018-12-18 17:12:46,434-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED org.sonatype.nexus.crypto [146] 2018-12-18 17:12:46,435-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING org.sonatype.nexus.jmx [153] 2018-12-18 17:12:46,463-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED org.sonatype.nexus.jmx [153] 2018-12-18 17:12:46,464-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING org.sonatype.nexus.cache [142] 2018-12-18 17:12:46,498-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED org.sonatype.nexus.cache [142] 2018-12-18 17:12:46,498-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING org.sonatype.nexus.security [162] 2018-12-18 17:12:46,651-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED org.sonatype.nexus.security [162] 2018-12-18 17:12:46,653-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING org.sonatype.nexus.orient [155] 2018-12-18 17:12:46,776-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED org.sonatype.nexus.orient [155] 2018-12-18 17:12:46,777-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING org.sonatype.nexus.base [138] 2018-12-18 17:12:46,939-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.internal.metrics.MetricsModule - Metrics support configured 2018-12-18 17:12:48,071-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED org.sonatype.nexus.base [138] 2018-12-18 17:12:48,071-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING org.sonatype.nexus.blobstore [139] 2018-12-18 17:12:48,116-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED org.sonatype.nexus.blobstore [139] 2018-12-18 17:12:48,116-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING org.sonatype.nexus.scheduling [161] 2018-12-18 17:12:48,174-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED org.sonatype.nexus.scheduling [161] 2018-12-18 17:12:48,174-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING org.sonatype.nexus.blobstore-file [141] 2018-12-18 17:12:48,222-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED org.sonatype.nexus.blobstore-file [141] 2018-12-18 17:12:48,223-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING org.sonatype.nexus.capability [143] 2018-12-18 17:12:48,257-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED org.sonatype.nexus.capability [143] 2018-12-18 17:12:48,258-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING org.sonatype.nexus.email [147] 2018-12-18 17:12:48,287-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED org.sonatype.nexus.email [147] 2018-12-18 17:12:48,295-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING org.sonatype.nexus.extdirect [148] 2018-12-18 17:12:48,551-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED org.sonatype.nexus.extdirect [148] 2018-12-18 17:12:48,551-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING org.sonatype.nexus.httpclient [152] 2018-12-18 17:12:48,573-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED org.sonatype.nexus.httpclient [152] 2018-12-18 17:12:48,574-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING org.sonatype.nexus.oss-edition [156] 2018-12-18 17:12:48,597-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED org.sonatype.nexus.oss-edition [156] 2018-12-18 17:12:48,597-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING org.sonatype.nexus.rapture [158] 2018-12-18 17:12:48,710-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED org.sonatype.nexus.rapture [158] 2018-12-18 17:12:48,710-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING org.sonatype.nexus.rest-jackson2 [160] 2018-12-18 17:12:48,732-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED org.sonatype.nexus.rest-jackson2 [160] 2018-12-18 17:12:48,733-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING org.sonatype.nexus.siesta [164] 2018-12-18 17:12:48,805-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED org.sonatype.nexus.siesta [164] 2018-12-18 17:12:48,805-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING org.sonatype.nexus.swagger [167] 2018-12-18 17:12:48,837-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED org.sonatype.nexus.swagger [167] 2018-12-18 17:12:48,838-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING org.sonatype.nexus.upgrade [170] 2018-12-18 17:12:48,875-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED org.sonatype.nexus.upgrade [170] 2018-12-18 17:12:48,879-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusLifecycleManager - Start KERNEL 2018-12-18 17:12:48,882-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.internal.log.LogbackLoggerOverrides - File: /yinzhengjie/soft/sonatype-work/nexus3/etc/logback/logback-overrides.xml 2018-12-18 17:12:48,884-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.internal.log.LogbackLogManager - Configuring 2018-12-18 17:12:48,903-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusContextListener - Installing: [nexus-oss-feature/3.14.0.04] 2018-12-18 17:12:52,336-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING org.sonatype.nexus.elasticsearch [210] 2018-12-18 17:12:52,406-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED org.sonatype.nexus.elasticsearch [210] 2018-12-18 17:12:52,407-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING org.sonatype.nexus.selector [229] 2018-12-18 17:12:52,470-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED org.sonatype.nexus.selector [229] 2018-12-18 17:12:52,470-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING org.sonatype.nexus.repository [227] 2018-12-18 17:12:52,911-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.extender.NexusContextListener - Installed: [nexus-oss-feature/3.14.0.04] 2018-12-18 17:12:53,272-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED org.sonatype.nexus.repository [227] 2018-12-18 17:12:53,272-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING org.sonatype.nexus.cleanup [208] 2018-12-18 17:12:53,384-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED org.sonatype.nexus.cleanup [208] 2018-12-18 17:12:53,414-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING org.sonatype.nexus.plugins.nexus-blobstore-s3 [212] 2018-12-18 17:12:53,498-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED org.sonatype.nexus.plugins.nexus-blobstore-s3 [212] 2018-12-18 17:12:53,499-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING org.sonatype.nexus.plugins.nexus-audit-plugin [211] 2018-12-18 17:12:53,556-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED org.sonatype.nexus.plugins.nexus-audit-plugin [211] 2018-12-18 17:12:53,556-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING org.sonatype.nexus.plugins.nexus-repository-maven [216] 2018-12-18 17:12:53,714-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED org.sonatype.nexus.plugins.nexus-repository-maven [216] 2018-12-18 17:12:53,714-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING org.sonatype.nexus.plugins.nexus-script-plugin [223] 2018-12-18 17:12:53,773-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED org.sonatype.nexus.plugins.nexus-script-plugin [223] 2018-12-18 17:12:53,774-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING org.sonatype.nexus.core [209] 2018-12-18 17:12:53,999-0500 WARN [FelixStartLevel] *SYSTEM org.sonatype.nexus.internal.system.FileDescriptorServiceImpl - WARNING: **************************************************************************** 2018-12-18 17:12:53,999-0500 WARN [FelixStartLevel] *SYSTEM org.sonatype.nexus.internal.system.FileDescriptorServiceImpl - WARNING: The open file descriptor limit is 4096 which is below the minimum recommended value of 65536. 2018-12-18 17:12:53,999-0500 WARN [FelixStartLevel] *SYSTEM org.sonatype.nexus.internal.system.FileDescriptorServiceImpl - WARNING: Please see: http://links.sonatype.com/products/nexus/system-reqs#filehandles 2018-12-18 17:12:53,999-0500 WARN [FelixStartLevel] *SYSTEM org.sonatype.nexus.internal.system.FileDescriptorServiceImpl - WARNING: **************************************************************************** 2018-12-18 17:12:54,005-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED org.sonatype.nexus.core [209] 2018-12-18 17:12:54,006-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING org.sonatype.nexus.plugins.nexus-blobstore-tasks [213] 2018-12-18 17:12:54,036-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED org.sonatype.nexus.plugins.nexus-blobstore-tasks [213] 2018-12-18 17:12:54,036-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING org.sonatype.nexus.plugins.nexus-repository-httpbridge [215] 2018-12-18 17:12:54,078-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED org.sonatype.nexus.plugins.nexus-repository-httpbridge [215] 2018-12-18 17:12:54,079-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING org.sonatype.nexus.blobstore-group [206] 2018-12-18 17:12:54,125-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED org.sonatype.nexus.blobstore-group [206] 2018-12-18 17:12:54,126-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING org.sonatype.nexus.plugins.nexus-repository-raw [219] 2018-12-18 17:12:54,188-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED org.sonatype.nexus.plugins.nexus-repository-raw [219] 2018-12-18 17:12:54,190-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING org.sonatype.nexus.plugins.nexus-coreui-plugin [214] 2018-12-18 17:12:54,397-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED org.sonatype.nexus.plugins.nexus-coreui-plugin [214] 2018-12-18 17:12:54,398-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING org.sonatype.nexus.plugins.nexus-restore-maven [220] 2018-12-18 17:12:54,420-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED org.sonatype.nexus.plugins.nexus-restore-maven [220] 2018-12-18 17:12:54,420-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING org.sonatype.nexus.plugins.nexus-task-log-cleanup [225] 2018-12-18 17:12:54,443-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED org.sonatype.nexus.plugins.nexus-task-log-cleanup [225] 2018-12-18 17:12:54,444-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING org.sonatype.nexus.plugins.nexus-repository-pypi [218] 2018-12-18 17:12:54,520-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED org.sonatype.nexus.plugins.nexus-repository-pypi [218] 2018-12-18 17:12:54,521-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING org.sonatype.nexus.plugins.nexus-repository-npm [217] 2018-12-18 17:12:54,712-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED org.sonatype.nexus.plugins.nexus-repository-npm [217] 2018-12-18 17:12:54,712-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING org.sonatype.nexus.plugins.nexus-restore-pypi [222] 2018-12-18 17:12:54,736-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED org.sonatype.nexus.plugins.nexus-restore-pypi [222] 2018-12-18 17:12:54,736-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING org.sonatype.nexus.quartz [226] 2018-12-18 17:12:54,806-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED org.sonatype.nexus.quartz [226] 2018-12-18 17:12:54,806-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING org.sonatype.nexus.plugins.nexus-ssl-plugin [224] 2018-12-18 17:12:54,860-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED org.sonatype.nexus.plugins.nexus-ssl-plugin [224] 2018-12-18 17:12:54,861-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING org.sonatype.nexus.plugins.nexus-restore-npm [221] 2018-12-18 17:12:54,894-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED org.sonatype.nexus.plugins.nexus-restore-npm [221] 2018-12-18 17:12:54,896-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING wrap_file__yinzhengjie_soft_nexus-3.14.0-04_system_com_sonatype_licensing_license-bundle_1.4.3_license-bundle-1.4.3.jar [268] 2018-12-18 17:12:54,953-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED wrap_file__yinzhengjie_soft_nexus-3.14.0-04_system_com_sonatype_licensing_license-bundle_1.4.3_license-bundle-1.4.3.jar [268] 2018-12-18 17:12:54,953-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING com.sonatype.nexus.licensing-extension [240] 2018-12-18 17:12:54,998-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED com.sonatype.nexus.licensing-extension [240] 2018-12-18 17:12:54,999-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING wrap_file__yinzhengjie_soft_nexus-3.14.0-04_system_com_sonatype_insight_scan_insight-scanner-model-io_2.8.1-01_insight-scanner-model-io-2.8.1-01.jar [266] 2018-12-18 17:12:55,022-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED wrap_file__yinzhengjie_soft_nexus-3.14.0-04_system_com_sonatype_insight_scan_insight-scanner-model-io_2.8.1-01_insight-scanner-model-io-2.8.1-01.jar [266] 2018-12-18 17:12:55,023-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING wrap_file__yinzhengjie_soft_nexus-3.14.0-04_system_com_sonatype_insight_scan_insight-scanner-core_2.8.1-01_insight-scanner-core-2.8.1-01.jar [265] 2018-12-18 17:12:55,049-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED wrap_file__yinzhengjie_soft_nexus-3.14.0-04_system_com_sonatype_insight_scan_insight-scanner-core_2.8.1-01_insight-scanner-core-2.8.1-01.jar [265] 2018-12-18 17:12:55,049-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING com.sonatype.nexus.plugins.nexus-healthcheck-base [244] 2018-12-18 17:12:55,191-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED com.sonatype.nexus.plugins.nexus-healthcheck-base [244] 2018-12-18 17:12:55,192-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING com.sonatype.nexus.plugins.nexus-ahc-plugin [241] 2018-12-18 17:12:55,227-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED com.sonatype.nexus.plugins.nexus-ahc-plugin [241] 2018-12-18 17:12:55,227-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING org.sonatype.nexus.rest-client [264] 2018-12-18 17:12:55,247-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED org.sonatype.nexus.rest-client [264] 2018-12-18 17:12:55,247-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING com.sonatype.nexus.plugins.nexus-analytics-plugin [242] 2018-12-18 17:12:55,317-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED com.sonatype.nexus.plugins.nexus-analytics-plugin [242] 2018-12-18 17:12:55,318-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING com.sonatype.nexus.plugins.nexus-clm-oss-plugin [243] 2018-12-18 17:12:55,343-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED com.sonatype.nexus.plugins.nexus-clm-oss-plugin [243] 2018-12-18 17:12:55,344-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING com.sonatype.nexus.plugins.nexus-ldap-plugin [245] 2018-12-18 17:12:55,427-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED com.sonatype.nexus.plugins.nexus-ldap-plugin [245] 2018-12-18 17:12:55,428-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING com.sonatype.nexus.plugins.nexus-licensing-plugin [246] 2018-12-18 17:12:55,487-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED com.sonatype.nexus.plugins.nexus-licensing-plugin [246] 2018-12-18 17:12:55,488-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING com.sonatype.nexus.plugins.nexus-repository-nuget [254] 2018-12-18 17:12:55,596-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED com.sonatype.nexus.plugins.nexus-repository-nuget [254] 2018-12-18 17:12:55,597-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING com.sonatype.nexus.plugins.nexus-repository-rubygems [255] 2018-12-18 17:12:55,665-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED com.sonatype.nexus.plugins.nexus-repository-rubygems [255] 2018-12-18 17:12:55,665-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING com.sonatype.nexus.plugins.nexus-migration-plugin [247] 2018-12-18 17:12:55,867-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED com.sonatype.nexus.plugins.nexus-migration-plugin [247] 2018-12-18 17:12:55,868-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING com.sonatype.nexus.plugins.nexus-outreach-plugin [248] 2018-12-18 17:12:55,912-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED com.sonatype.nexus.plugins.nexus-outreach-plugin [248] 2018-12-18 17:12:55,912-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING com.sonatype.nexus.plugins.nexus-proui-plugin [249] 2018-12-18 17:12:55,938-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED com.sonatype.nexus.plugins.nexus-proui-plugin [249] 2018-12-18 17:12:55,938-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING com.sonatype.nexus.plugins.nexus-proximanova-plugin [250] 2018-12-18 17:12:55,958-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED com.sonatype.nexus.plugins.nexus-proximanova-plugin [250] 2018-12-18 17:12:55,958-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING com.sonatype.nexus.plugins.nexus-repository-bower [251] 2018-12-18 17:12:56,012-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED com.sonatype.nexus.plugins.nexus-repository-bower [251] 2018-12-18 17:12:56,013-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING com.sonatype.nexus.plugins.nexus-repository-docker [252] 2018-12-18 17:12:56,221-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED com.sonatype.nexus.plugins.nexus-repository-docker [252] 2018-12-18 17:12:56,222-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING com.sonatype.nexus.plugins.nexus-repository-gitlfs [253] 2018-12-18 17:12:56,262-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED com.sonatype.nexus.plugins.nexus-repository-gitlfs [253] 2018-12-18 17:12:56,263-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING com.sonatype.nexus.plugins.nexus-repository-yum [256] 2018-12-18 17:12:56,449-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED com.sonatype.nexus.plugins.nexus-repository-yum [256] 2018-12-18 17:12:56,450-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING com.sonatype.nexus.plugins.nexus-restore-nuget [257] 2018-12-18 17:12:56,470-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED com.sonatype.nexus.plugins.nexus-restore-nuget [257] 2018-12-18 17:12:56,471-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING com.sonatype.nexus.plugins.nexus-restore-yum [258] 2018-12-18 17:12:56,494-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED com.sonatype.nexus.plugins.nexus-restore-yum [258] 2018-12-18 17:12:56,494-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATING com.sonatype.nexus.plugins.nexus-rutauth-plugin [259] 2018-12-18 17:12:56,527-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusBundleTracker - ACTIVATED com.sonatype.nexus.plugins.nexus-rutauth-plugin [259] 2018-12-18 17:12:56,528-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusLifecycleManager - Start STORAGE 2018-12-18 17:12:57,082-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.internal.node.LocalNodeAccess - Generating certificate 2018-12-18 17:12:57,305-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.internal.node.LocalNodeAccess - ID: 6B33E296-7EDB8BD1-093C16C0-02640E61-BDE79D60 2018-12-18 17:12:57,312-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.internal.orient.DatabaseServerImpl - OrientDB version: 2.2.36 (build d3beb772c02098ceaea89779a7afd4b7305d3788, branch 2.2.x) 2018-12-18 17:12:57,332-0500 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.orient.server.OServer - OrientDB Server v2.2.36 (build d3beb772c02098ceaea89779a7afd4b7305d3788, branch 2.2.x) is starting up... 2018-12-18 17:12:57,338-0500 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.orient.server.OServer - Databases directory: /yinzhengjie/soft/sonatype-work/nexus3/db 2018-12-18 17:12:57,514-0500 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.orient.core.engine.OMemoryAndLocalPaginatedEnginesInitializer - Configuration of usage of soft references inside of containers of results of SQL execution 2018-12-18 17:12:57,515-0500 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.orient.core.engine.OMemoryAndLocalPaginatedEnginesInitializer - Initial and maximum values of heap memory usage are equal, containers of results of SQL executors will use soft references by default 2018-12-18 17:12:57,515-0500 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.orient.core.engine.OMemoryAndLocalPaginatedEnginesInitializer - Auto configuration of disk cache size. 2018-12-18 17:12:57,557-0500 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.common.jna.ONative - 3956293632 B/3773 MB/3 GB of physical memory were detected on machine 2018-12-18 17:12:57,568-0500 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.common.jna.ONative - Soft memory limit for this process is set to -1 B/-1 MB/-1 GB 2018-12-18 17:12:57,568-0500 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.common.jna.ONative - Hard memory limit for this process is set to -1 B/-1 MB/-1 GB 2018-12-18 17:12:57,569-0500 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.common.jna.ONative - Path to 'memory' cgroup is '/' 2018-12-18 17:12:57,569-0500 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.common.jna.ONative - Mounting path for memory cgroup controller is '/sys/fs/cgroup/memory' 2018-12-18 17:12:57,569-0500 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.common.jna.ONative - cgroup soft memory limit is 9223372036854771712 B/8796093022207 MB/8589934591 GB 2018-12-18 17:12:57,570-0500 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.common.jna.ONative - cgroup hard memory limit is 9223372036854771712 B/8796093022207 MB/8589934591 GB 2018-12-18 17:12:57,570-0500 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.common.jna.ONative - Detected memory limit for current process is 3956293632 B/3773 MB/3 GB 2018-12-18 17:12:57,571-0500 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.orient.core.engine.OMemoryAndLocalPaginatedEnginesInitializer - OrientDB auto-config DISKCACHE=562MB (heap=1,162MB direct=2,048MB os=3,773MB) 2018-12-18 17:12:57,618-0500 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.orient.server.OSystemDatabase - $ANSI{green {db=OSystem}} Creating the system database 'OSystem' for current server 2018-12-18 17:12:58,134-0500 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - Storage 'plocal:/yinzhengjie/soft/sonatype-work/nexus3/db/OSystem' is created under OrientDB distribution : 2.2.36 (build d3beb772c02098ceaea89779a7afd4b7305d3788, branch 2.2.x) 2018-12-18 17:12:59,445-0500 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.orient.server.OServer - Found ORIENTDB_ROOT_PASSWORD variable, using this value as root's password 2018-12-18 17:12:59,573-0500 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.orient.server.handler.OJMXPlugin - JMX plugin installed and active: profilerManaged=true 2018-12-18 17:12:59,574-0500 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.orient.server.OServer - OrientDB Studio available at $ANSI{blue http://localhost:2480/studio/index.html} 2018-12-18 17:12:59,574-0500 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.orient.server.OServer - $ANSI{green:italic OrientDB Server is active} v2.2.36 (build d3beb772c02098ceaea89779a7afd4b7305d3788, branch 2.2.x). 2018-12-18 17:12:59,574-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.internal.orient.DatabaseServerImpl - Activated 2018-12-18 17:12:59,679-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusLifecycleManager - Start RESTORE 2018-12-18 17:12:59,695-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.internal.orient.DatabaseManagerImpl - Configuring OrientDB pool config with per-core limit of 16 2018-12-18 17:12:59,710-0500 INFO [ForkJoinPool.commonPool-worker-1] *SYSTEM org.sonatype.nexus.internal.orient.DatabaseManagerImpl - Configuring OrientDB pool analytics with per-core limit of 16 2018-12-18 17:12:59,752-0500 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - Storage 'plocal:/yinzhengjie/soft/sonatype-work/nexus3/db/config' is created under OrientDB distribution : 2.2.36 (build d3beb772c02098ceaea89779a7afd4b7305d3788, branch 2.2.x) 2018-12-18 17:12:59,810-0500 INFO [ForkJoinPool.commonPool-worker-1] *SYSTEM com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - Storage 'plocal:/yinzhengjie/soft/sonatype-work/nexus3/db/analytics' is created under OrientDB distribution : 2.2.36 (build d3beb772c02098ceaea89779a7afd4b7305d3788, branch 2.2.x) 2018-12-18 17:13:01,184-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.internal.orient.DatabaseManagerImpl - Configuring OrientDB pool security with per-core limit of 16 2018-12-18 17:13:01,285-0500 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - Storage 'plocal:/yinzhengjie/soft/sonatype-work/nexus3/db/security' is created under OrientDB distribution : 2.2.36 (build d3beb772c02098ceaea89779a7afd4b7305d3788, branch 2.2.x) 2018-12-18 17:13:01,417-0500 INFO [ForkJoinPool.commonPool-worker-1] *SYSTEM org.sonatype.nexus.internal.orient.DatabaseManagerImpl - Configuring OrientDB pool audit with per-core limit of 16 2018-12-18 17:13:01,499-0500 INFO [ForkJoinPool.commonPool-worker-1] *SYSTEM com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - Storage 'plocal:/yinzhengjie/soft/sonatype-work/nexus3/db/audit' is created under OrientDB distribution : 2.2.36 (build d3beb772c02098ceaea89779a7afd4b7305d3788, branch 2.2.x) 2018-12-18 17:13:02,924-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.internal.orient.DatabaseManagerImpl - Configuring OrientDB pool component with per-core limit of 16 2018-12-18 17:13:02,942-0500 INFO [ForkJoinPool.commonPool-worker-1] *SYSTEM org.sonatype.nexus.internal.orient.DatabaseManagerImpl - Configuring OrientDB pool accesslog with per-core limit of 16 2018-12-18 17:13:03,003-0500 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - Storage 'plocal:/yinzhengjie/soft/sonatype-work/nexus3/db/component' is created under OrientDB distribution : 2.2.36 (build d3beb772c02098ceaea89779a7afd4b7305d3788, branch 2.2.x) 2018-12-18 17:13:03,022-0500 INFO [ForkJoinPool.commonPool-worker-1] *SYSTEM com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - Storage 'plocal:/yinzhengjie/soft/sonatype-work/nexus3/db/accesslog' is created under OrientDB distribution : 2.2.36 (build d3beb772c02098ceaea89779a7afd4b7305d3788, branch 2.2.x) 2018-12-18 17:13:04,431-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusLifecycleManager - Start UPGRADE 2018-12-18 17:13:04,708-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusLifecycleManager - Start SCHEMAS 2018-12-18 17:13:07,196-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.cache.internal.RuntimeCacheManagerProvider - Cache-provider: ehcache 2018-12-18 17:13:07,200-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.cache.internal.ehcache.EhCacheManagerProvider - Creating cache-manager with configuration: file:/yinzhengjie/soft/nexus-3.14.0-04/etc/fabric/ehcache.xml 2018-12-18 17:13:07,204-0500 INFO [FelixStartLevel] *SYSTEM org.ehcache.xml.XmlConfiguration - Loading Ehcache XML configuration from /yinzhengjie/soft/nexus-3.14.0-04/etc/fabric/ehcache.xml. 2018-12-18 17:13:07,514-0500 INFO [FelixStartLevel] *SYSTEM org.ehcache.core.EhcacheManager - Cache 'assetDownloadCountStoreCache' created in EhcacheManager. 2018-12-18 17:13:07,520-0500 INFO [FelixStartLevel] *SYSTEM org.ehcache.jsr107.Eh107CacheManager - Registering Ehcache MBean javax.cache:type=CacheStatistics,CacheManager=file./yinzhengjie/soft/nexus-3.14.0-04/etc/fabric/ehcache.xml,Cache=assetDownloadCountStoreCache 2018-12-18 17:13:07,520-0500 INFO [FelixStartLevel] *SYSTEM org.ehcache.jsr107.Eh107CacheManager - Registering Ehcache MBean javax.cache:type=CacheConfiguration,CacheManager=file./yinzhengjie/soft/nexus-3.14.0-04/etc/fabric/ehcache.xml,Cache=assetDownloadCountStoreCache 2018-12-18 17:13:08,085-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.internal.orient.DeploymentAccessImpl - Created new deployment identifier: DeploymentIdentifier{id='6B33E296-7EDB8BD1-093C16C0-02640E61-BDE79D60', alias='null'} 2018-12-18 17:13:08,160-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.internal.security.model.OrientSecurityConfigurationSource - Initializing default users 2018-12-18 17:13:08,320-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.internal.security.model.OrientSecurityConfigurationSource - Initializing default user/role mappings 2018-12-18 17:13:08,360-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusLifecycleManager - Start EVENTS 2018-12-18 17:13:08,442-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.quartz.internal.QuartzSchedulerSPI - Thread-pool size: 20 2018-12-18 17:13:08,619-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusLifecycleManager - Start SECURITY 2018-12-18 17:13:08,622-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.security.internal.DefaultSecuritySystem - Unlimited strength JCE policy detected 2018-12-18 17:13:08,627-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.security.internal.RealmManagerImpl - Using default configuration: RealmConfiguration{realmNames=[NexusAuthenticatingRealm, NexusAuthorizingRealm]} 2018-12-18 17:13:08,639-0500 INFO [FelixStartLevel] *SYSTEM org.ehcache.jsr107.ConfigurationMerger - Configuration of cache NexusAuthenticatingRealm.authenticationCache will be supplemented by template nexus-default 2018-12-18 17:13:08,644-0500 INFO [FelixStartLevel] *SYSTEM org.ehcache.core.EhcacheManager - Cache 'NexusAuthenticatingRealm.authenticationCache' created in EhcacheManager. 2018-12-18 17:13:08,645-0500 INFO [FelixStartLevel] *SYSTEM org.ehcache.jsr107.Eh107CacheManager - Registering Ehcache MBean javax.cache:type=CacheConfiguration,CacheManager=file./yinzhengjie/soft/nexus-3.14.0-04/etc/fabric/ehcache.xml,Cache=NexusAuthenticatingRealm.authenticationCache 2018-12-18 17:13:08,645-0500 INFO [FelixStartLevel] *SYSTEM org.ehcache.jsr107.Eh107CacheManager - Registering Ehcache MBean javax.cache:type=CacheStatistics,CacheManager=file./yinzhengjie/soft/nexus-3.14.0-04/etc/fabric/ehcache.xml,Cache=NexusAuthenticatingRealm.authenticationCache 2018-12-18 17:13:08,646-0500 INFO [FelixStartLevel] *SYSTEM org.ehcache.jsr107.ConfigurationMerger - Configuration of cache NexusAuthorizingRealm.authorizationCache will be supplemented by template nexus-default 2018-12-18 17:13:08,649-0500 INFO [FelixStartLevel] *SYSTEM org.ehcache.core.EhcacheManager - Cache 'NexusAuthorizingRealm.authorizationCache' created in EhcacheManager. 2018-12-18 17:13:08,651-0500 INFO [FelixStartLevel] *SYSTEM org.ehcache.jsr107.Eh107CacheManager - Registering Ehcache MBean javax.cache:type=CacheConfiguration,CacheManager=file./yinzhengjie/soft/nexus-3.14.0-04/etc/fabric/ehcache.xml,Cache=NexusAuthorizingRealm.authorizationCache 2018-12-18 17:13:08,651-0500 INFO [FelixStartLevel] *SYSTEM org.ehcache.jsr107.Eh107CacheManager - Registering Ehcache MBean javax.cache:type=CacheStatistics,CacheManager=file./yinzhengjie/soft/nexus-3.14.0-04/etc/fabric/ehcache.xml,Cache=NexusAuthorizingRealm.authorizationCache 2018-12-18 17:13:08,653-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusLifecycleManager - Start SERVICES 2018-12-18 17:13:08,694-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.quartz.internal.orient.JobStoreImpl - Instance name: nexus; ID: 6B33E296-7EDB8BD1-093C16C0-02640E61-BDE79D60 2018-12-18 17:13:08,694-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.quartz.internal.orient.JobStoreImpl - Initialized 2018-12-18 17:13:08,700-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.quartz.internal.QuartzSchedulerSPI - Quartz Scheduler v2.3.0 2018-12-18 17:13:08,774-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.blobstore.file.internal.BlobStoreMetricsStoreImpl - Blob store metrics file /yinzhengjie/soft/sonatype-work/nexus3/blobs/default/6B33E296-7EDB8BD1-093C16C0-02640E61-BDE79D60-metrics.properties not found - initializing at zero. 2018-12-18 17:13:08,932-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.elasticsearch.internal.NodeProvider - Creating node with config: /yinzhengjie/soft/nexus-3.14.0-04/etc/fabric/elasticsearch.yml 2018-12-18 17:13:09,046-0500 INFO [FelixStartLevel] *SYSTEM org.elasticsearch.node - [6B33E296-7EDB8BD1-093C16C0-02640E61-BDE79D60] version[2.4.3], pid[1424], build[d38a34e/2016-12-07T16:28:56Z] 2018-12-18 17:13:09,046-0500 INFO [FelixStartLevel] *SYSTEM org.elasticsearch.node - [6B33E296-7EDB8BD1-093C16C0-02640E61-BDE79D60] initializing ... 2018-12-18 17:13:09,052-0500 INFO [FelixStartLevel] *SYSTEM org.elasticsearch.plugins - [6B33E296-7EDB8BD1-093C16C0-02640E61-BDE79D60] modules [], plugins [content-auth-plugin], sites [] 2018-12-18 17:13:09,070-0500 INFO [FelixStartLevel] *SYSTEM org.elasticsearch.env - [6B33E296-7EDB8BD1-093C16C0-02640E61-BDE79D60] using [1] data paths, mounts [[/ (rootfs)]], net usable_space [43.8gb], net total_space [46gb], spins? [unknown], types [rootfs] 2018-12-18 17:13:09,070-0500 INFO [FelixStartLevel] *SYSTEM org.elasticsearch.env - [6B33E296-7EDB8BD1-093C16C0-02640E61-BDE79D60] heap size [1.1gb], compressed ordinary object pointers [true] 2018-12-18 17:13:09,071-0500 WARN [FelixStartLevel] *SYSTEM org.elasticsearch.env - [6B33E296-7EDB8BD1-093C16C0-02640E61-BDE79D60] max file descriptors [4096] for elasticsearch process likely too low, consider increasing to at least [65536] ^C [root@node101 ~]# 2018-12-18 17:13:10,164-0500 INFO [FelixStartLevel] *SYSTEM org.elasticsearch.node - [6B33E296-7EDB8BD1-093C16C0-02640E61-BDE79D60] initialized 2018-12-18 17:13:10,164-0500 INFO [FelixStartLevel] *SYSTEM org.elasticsearch.node - [6B33E296-7EDB8BD1-093C16C0-02640E61-BDE79D60] starting ... 2018-12-18 17:13:10,166-0500 INFO [FelixStartLevel] *SYSTEM org.elasticsearch.transport - [6B33E296-7EDB8BD1-093C16C0-02640E61-BDE79D60] publish_address {local[1]}, bound_addresses {local[1]} 2018-12-18 17:13:10,169-0500 INFO [FelixStartLevel] *SYSTEM org.elasticsearch.discovery - [6B33E296-7EDB8BD1-093C16C0-02640E61-BDE79D60] nexus/wNVqMzNPRM6tVlXZrNKhsQ 2018-12-18 17:13:10,175-0500 INFO [elasticsearch[6B33E296-7EDB8BD1-093C16C0-02640E61-BDE79D60][clusterService#updateTask][T#1]] *SYSTEM org.elasticsearch.cluster.service - [6B33E296-7EDB8BD1-093C16C0-02640E61-BDE79D60] new_master {6B33E296-7EDB8BD1-093C16C0-02640E61-BDE79D60}{wNVqMzNPRM6tVlXZrNKhsQ}{local}{local[1]}{local=true, master=true}, reason: local-disco-initial_connect(master) 2018-12-18 17:13:10,183-0500 INFO [FelixStartLevel] *SYSTEM org.elasticsearch.node - [6B33E296-7EDB8BD1-093C16C0-02640E61-BDE79D60] started 2018-12-18 17:13:10,227-0500 INFO [elasticsearch[6B33E296-7EDB8BD1-093C16C0-02640E61-BDE79D60][clusterService#updateTask][T#1]] *SYSTEM org.elasticsearch.gateway - [6B33E296-7EDB8BD1-093C16C0-02640E61-BDE79D60] recovered [0] indices into cluster_state 2018-12-18 17:13:10,347-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.internal.httpclient.HttpClientManagerImpl - Using default configuration: HttpClientConfiguration{connection=null, proxy=null, authentication=null} 2018-12-18 17:13:10,376-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.repository.httpclient.internal.HttpClientFacetImpl - Remote connection status of repository nuget-group set to Ready to Connect. 2018-12-18 17:13:10,377-0500 INFO [FelixStartLevel] *SYSTEM org.ehcache.jsr107.ConfigurationMerger - Configuration of cache nuget-group#odata-query-cache will be supplemented by template nexus-default 2018-12-18 17:13:10,379-0500 INFO [FelixStartLevel] *SYSTEM org.ehcache.core.EhcacheManager - Cache 'nuget-group#odata-query-cache' created in EhcacheManager. 2018-12-18 17:13:10,380-0500 INFO [FelixStartLevel] *SYSTEM org.ehcache.jsr107.Eh107CacheManager - Registering Ehcache MBean javax.cache:type=CacheConfiguration,CacheManager=file./yinzhengjie/soft/nexus-3.14.0-04/etc/fabric/ehcache.xml,Cache=nuget-group#odata-query-cache 2018-12-18 17:13:10,380-0500 INFO [FelixStartLevel] *SYSTEM org.ehcache.jsr107.Eh107CacheManager - Registering Ehcache MBean javax.cache:type=CacheStatistics,CacheManager=file./yinzhengjie/soft/nexus-3.14.0-04/etc/fabric/ehcache.xml,Cache=nuget-group#odata-query-cache 2018-12-18 17:13:10,464-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.repository.httpclient.internal.HttpClientFacetImpl - Remote connection status of repository nuget.org-proxy set to Ready to Connect. 2018-12-18 17:13:10,464-0500 INFO [FelixStartLevel] *SYSTEM org.ehcache.jsr107.ConfigurationMerger - Configuration of cache nuget.org-proxy#negative-cache will be supplemented by template nexus-default 2018-12-18 17:13:10,466-0500 INFO [FelixStartLevel] *SYSTEM org.ehcache.core.EhcacheManager - Cache 'nuget.org-proxy#negative-cache' created in EhcacheManager. 2018-12-18 17:13:10,467-0500 INFO [FelixStartLevel] *SYSTEM org.ehcache.jsr107.Eh107CacheManager - Registering Ehcache MBean javax.cache:type=CacheConfiguration,CacheManager=file./yinzhengjie/soft/nexus-3.14.0-04/etc/fabric/ehcache.xml,Cache=nuget.org-proxy#negative-cache 2018-12-18 17:13:10,467-0500 INFO [FelixStartLevel] *SYSTEM org.ehcache.jsr107.Eh107CacheManager - Registering Ehcache MBean javax.cache:type=CacheStatistics,CacheManager=file./yinzhengjie/soft/nexus-3.14.0-04/etc/fabric/ehcache.xml,Cache=nuget.org-proxy#negative-cache 2018-12-18 17:13:10,468-0500 INFO [FelixStartLevel] *SYSTEM org.ehcache.jsr107.ConfigurationMerger - Configuration of cache nuget.org-proxy#odata-query-cache will be supplemented by template nexus-default 2018-12-18 17:13:10,470-0500 INFO [FelixStartLevel] *SYSTEM org.ehcache.core.EhcacheManager - Cache 'nuget.org-proxy#odata-query-cache' created in EhcacheManager. 2018-12-18 17:13:10,471-0500 INFO [FelixStartLevel] *SYSTEM org.ehcache.jsr107.Eh107CacheManager - Registering Ehcache MBean javax.cache:type=CacheConfiguration,CacheManager=file./yinzhengjie/soft/nexus-3.14.0-04/etc/fabric/ehcache.xml,Cache=nuget.org-proxy#odata-query-cache 2018-12-18 17:13:10,471-0500 INFO [FelixStartLevel] *SYSTEM org.ehcache.jsr107.Eh107CacheManager - Registering Ehcache MBean javax.cache:type=CacheStatistics,CacheManager=file./yinzhengjie/soft/nexus-3.14.0-04/etc/fabric/ehcache.xml,Cache=nuget.org-proxy#odata-query-cache 2018-12-18 17:13:10,494-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.repository.httpclient.internal.HttpClientFacetImpl - Remote connection status of repository maven-central set to Ready to Connect. 2018-12-18 17:13:10,494-0500 INFO [FelixStartLevel] *SYSTEM org.ehcache.jsr107.ConfigurationMerger - Configuration of cache maven-central#negative-cache will be supplemented by template nexus-default 2018-12-18 17:13:10,496-0500 INFO [FelixStartLevel] *SYSTEM org.ehcache.core.EhcacheManager - Cache 'maven-central#negative-cache' created in EhcacheManager. 2018-12-18 17:13:10,497-0500 INFO [FelixStartLevel] *SYSTEM org.ehcache.jsr107.Eh107CacheManager - Registering Ehcache MBean javax.cache:type=CacheConfiguration,CacheManager=file./yinzhengjie/soft/nexus-3.14.0-04/etc/fabric/ehcache.xml,Cache=maven-central#negative-cache 2018-12-18 17:13:10,497-0500 INFO [FelixStartLevel] *SYSTEM org.ehcache.jsr107.Eh107CacheManager - Registering Ehcache MBean javax.cache:type=CacheStatistics,CacheManager=file./yinzhengjie/soft/nexus-3.14.0-04/etc/fabric/ehcache.xml,Cache=maven-central#negative-cache 2018-12-18 17:13:10,709-0500 INFO [elasticsearch[6B33E296-7EDB8BD1-093C16C0-02640E61-BDE79D60][clusterService#updateTask][T#1]] *SYSTEM org.elasticsearch.cluster.metadata - [6B33E296-7EDB8BD1-093C16C0-02640E61-BDE79D60] [2e9a1e67e8a325bcd6ee9f6790ff6c769e791d56] creating index, cause [api], templates [], shards [1]/[0], mappings [component] 2018-12-18 17:13:10,860-0500 INFO [elasticsearch[6B33E296-7EDB8BD1-093C16C0-02640E61-BDE79D60][clusterService#updateTask][T#1]] *SYSTEM org.elasticsearch.cluster.metadata - [6B33E296-7EDB8BD1-093C16C0-02640E61-BDE79D60] [73ae44bc066b6a7a33b4435641d8229b9b66495a] creating index, cause [api], templates [], shards [1]/[0], mappings [component] 2018-12-18 17:13:10,915-0500 INFO [elasticsearch[6B33E296-7EDB8BD1-093C16C0-02640E61-BDE79D60][clusterService#updateTask][T#1]] *SYSTEM org.elasticsearch.cluster.routing.allocation - [6B33E296-7EDB8BD1-093C16C0-02640E61-BDE79D60] Cluster health status changed from [RED] to [GREEN] (reason: [shards started [[2e9a1e67e8a325bcd6ee9f6790ff6c769e791d56][0], [2e9a1e67e8a325bcd6ee9f6790ff6c769e791d56][0]] ...]). 2018-12-18 17:13:10,940-0500 INFO [elasticsearch[6B33E296-7EDB8BD1-093C16C0-02640E61-BDE79D60][clusterService#updateTask][T#1]] *SYSTEM org.elasticsearch.cluster.metadata - [6B33E296-7EDB8BD1-093C16C0-02640E61-BDE79D60] [51196dce51055df9247e1973e443b68c84549dd9] creating index, cause [api], templates [], shards [1]/[0], mappings [component] 2018-12-18 17:13:10,976-0500 INFO [elasticsearch[6B33E296-7EDB8BD1-093C16C0-02640E61-BDE79D60][clusterService#updateTask][T#1]] *SYSTEM org.elasticsearch.cluster.routing.allocation - [6B33E296-7EDB8BD1-093C16C0-02640E61-BDE79D60] Cluster health status changed from [RED] to [GREEN] (reason: [shards started [[51196dce51055df9247e1973e443b68c84549dd9][0]] ...]). 2018-12-18 17:13:11,000-0500 INFO [elasticsearch[6B33E296-7EDB8BD1-093C16C0-02640E61-BDE79D60][clusterService#updateTask][T#1]] *SYSTEM org.elasticsearch.cluster.metadata - [6B33E296-7EDB8BD1-093C16C0-02640E61-BDE79D60] [3d781e8165513bfe7db3d7eaab3991b9ebec763b] creating index, cause [api], templates [], shards [1]/[0], mappings [component] 2018-12-18 17:13:11,046-0500 INFO [elasticsearch[6B33E296-7EDB8BD1-093C16C0-02640E61-BDE79D60][clusterService#updateTask][T#1]] *SYSTEM org.elasticsearch.cluster.metadata - [6B33E296-7EDB8BD1-093C16C0-02640E61-BDE79D60] [b2b9b8f06274052a44b61ef3c7e887f0961d99c6] creating index, cause [api], templates [], shards [1]/[0], mappings [component] 2018-12-18 17:13:11,085-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusLifecycleManager - Start CAPABILITIES 2018-12-18 17:13:11,142-0500 INFO [elasticsearch[6B33E296-7EDB8BD1-093C16C0-02640E61-BDE79D60][clusterService#updateTask][T#1]] *SYSTEM org.elasticsearch.cluster.routing.allocation - [6B33E296-7EDB8BD1-093C16C0-02640E61-BDE79D60] Cluster health status changed from [RED] to [GREEN] (reason: [shards started [[b2b9b8f06274052a44b61ef3c7e887f0961d99c6][0]] ...]). 2018-12-18 17:13:11,300-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusLifecycleManager - Start TASKS 2018-12-18 17:13:11,303-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.bootstrap.osgi.BootstrapListener - Initialized 2018-12-18 17:13:11,338-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.rapture.internal.RaptureWebResourceBundle - UI plugin descriptors: 2018-12-18 17:13:11,338-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.rapture.internal.RaptureWebResourceBundle - nexus-rapture 2018-12-18 17:13:11,339-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.rapture.internal.RaptureWebResourceBundle - nexus-proximanova-plugin 2018-12-18 17:13:11,339-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.rapture.internal.RaptureWebResourceBundle - nexus-rutauth-plugin 2018-12-18 17:13:11,339-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.rapture.internal.RaptureWebResourceBundle - nexus-coreui-plugin 2018-12-18 17:13:11,339-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.rapture.internal.RaptureWebResourceBundle - nexus-proui-plugin 2018-12-18 17:13:11,343-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.internal.webresources.WebResourceServlet - Max-age: 30 days (2592000 seconds) 2018-12-18 17:13:11,370-0500 INFO [jetty-main-1] *SYSTEM com.softwarementors.extjs.djn.servlet.DirectJNgineServlet - Servlet GLOBAL configuration: debug=false, providersUrl=service/extdirect, minify=false, batchRequestsMultithreadingEnabled=true, batchRequestsMinThreadsPoolSize=16, batchRequestsMaxThreadsPoolSize=80, batchRequestsMaxThreadsPerRequest=8, batchRequestsMaxThreadKeepAliveSeconds=60, gsonBuilderConfiguratorClass=org.sonatype.nexus.extdirect.internal.ExtDirectGsonBuilderConfigurator, dispatcherClass=com.softwarementors.extjs.djn.servlet.ssm.SsmDispatcher, jsonRequestProcessorThreadClass=org.sonatype.nexus.extdirect.internal.ExtDirectJsonRequestProcessorThread, contextPath=--not specified: calculated via Javascript--, createSourceFiles=true 2018-12-18 17:13:11,371-0500 INFO [jetty-main-1] *SYSTEM com.softwarementors.extjs.djn.servlet.DirectJNgineServlet - Servlet GLOBAL configuration: registryConfiguratorClass= 2018-12-18 17:13:11,415-0500 INFO [jetty-main-1] *SYSTEM com.softwarementors.extjs.djn.jscodegen.CodeFileGenerator - Creating source files for APIs... 2018-12-18 17:13:11,467-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Task log cleanup' [tasklog.cleanup] : state=WAITING 2018-12-18 17:13:11,591-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.siesta.SiestaServlet - JAX-RS RuntimeDelegate: org.sonatype.nexus.siesta.internal.resteasy.SisuResteasyProviderFactory@c46792f 2018-12-18 17:13:11,615-0500 INFO [jetty-main-1] *SYSTEM org.jboss.resteasy.plugins.validation.i18n - RESTEASY008550: Unable to find CDI supporting ValidatorFactory. Using default ValidatorFactory 2018-12-18 17:13:11,664-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.scheduling.internal.TaskSchedulerImpl - Task 'Task log cleanup' [tasklog.cleanup] scheduled: cron 2018-12-18 17:13:11,673-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Cleanup service' [repository.cleanup] : state=WAITING 2018-12-18 17:13:11,680-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.scheduling.internal.TaskSchedulerImpl - Task 'Cleanup service' [repository.cleanup] scheduled: cron 2018-12-18 17:13:11,738-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Storage facet cleanup' [repository.storage-facet-cleanup] : state=WAITING 2018-12-18 17:13:11,742-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.scheduling.internal.TaskSchedulerImpl - Task 'Storage facet cleanup' [repository.storage-facet-cleanup] scheduled: cron 2018-12-18 17:13:11,831-0500 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.quartz.internal.QuartzSchedulerSPI - Scheduler put into ready mode 2018-12-18 17:13:11,961-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.siesta.SiestaServlet - Initialized 2018-12-18 17:13:11,964-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.repository.httpbridge.internal.ViewServlet - Initialized 2018-12-18 17:13:12,001-0500 INFO [jetty-main-1] *SYSTEM org.eclipse.jetty.server.handler.ContextHandler - Started o.e.j.w.WebAppContext@17c1e855{Sonatype Nexus,/,file:///yinzhengjie/soft/nexus-3.14.0-04/public/,AVAILABLE} 2018-12-18 17:13:12,040-0500 INFO [jetty-main-1] *SYSTEM org.eclipse.jetty.server.AbstractConnector - Started ServerConnector@61702261{HTTP/1.1,[http/1.1]}{0.0.0.0:8081} 2018-12-18 17:13:12,040-0500 INFO [jetty-main-1] *SYSTEM org.eclipse.jetty.server.Server - Started @35324ms 2018-12-18 17:13:12,040-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.bootstrap.jetty.JettyServer - -------------------------------------------------Started Sonatype Nexus OSS 3.14.0-04-------------------------------------------------[root@node101 ~]# [root@node101 ~]# nexus run & #后臺運行nexus服務 [root@node101 ~]# ps -ef | grep nexus root 1424 1345 15 17:12 pts/0 00:01:11 /yinzhengjie/soft/jdk/bin/java -server -Dinstall4j.jvmDir=/yinzhengjie/soft/jdk -Dexe4j.moduleName=/yinzhengjie/soft/nexus/bin/nexu -XX:+UnlockDiagnosticVMOptions -Dinstall4j.launcherId=245 -Dinstall4j.swt=false -Di4jv=0 -Di4jv=0 -Di4jv=0 -Di4jv=0 -Di4jv=0 -Xms1200M -Xmx1200M -XX:MaxDirectMemorySize=2G -XX:+UnlockDiagnosticVMOptions -XX:+UnsyncloadClass -XX:+LogVMOutput -XX:LogFile=../sonatype-work/nexus3/log/jvm.log -XX:-OmitStackTraceInFastThrow -Djava.net.preferIPv4Stack=true -Dkaraf.home=. -Dkaraf.base=. -Dkaraf.etc=etc/karaf -Djava.util.logging.config.file=etc/karaf/java.util.logging.properties -Dkaraf.data=../sonatype-work/nexus3 -Djava.io.tmpdir=../sonatype-work/nexus3/tmp -Dkaraf.startLocalConsole=false -Di4j.vpt=true -classpath /yinzhengjie/soft/nexus/.install4j/i4jruntime.jar:/yinzhengjie/soft/nexus/lib/boot/nexus-main.jar:/yinzhengjie/soft/nexus/lib/boot/org.apache.karaf.main-4.0.9.jar:/yinzhengjie/soft/nexus/lib/boot/org.osgi.core-6.0.0.jar:/yinzhengjie/soft/nexus/lib/boot/org.apache.karaf.diagnostic.boot-4.0.9.jar:/yinzhengjie/soft/nexus/lib/boot/org.apache.karaf.jaas.boot-4.0.9.jar com.install4j.runtime.launcher.UnixLauncher run 9d17dc87 org.sonatype.nexus.karaf.NexusMain root 1911 1345 0 17:20 pts/0 00:00:00 grep --color=auto nexus [root@node101 ~]# [root@node101 ~]# [root@node101 ~]# netstat -untalp | grep 1424 tcp 0 0 127.0.0.1:34565 0.0.0.0:* LISTEN 1424/java tcp 0 0 0.0.0.0:8081 0.0.0.0:* LISTEN 1424/java #很顯然Nexus默認的端口是8081 [root@node101 ~]# [root@node101 ~]#4>.訪問Nexus的Web UI界面
如下圖所示,默認的用戶名是admin,密碼是admin123。我們可以用來登錄Web UI界面。
?
二.Nexus的配置說明
1>.修改Nexus運行時的用戶
[root@node101 ~]# cat /yinzhengjie/soft/nexus/bin/nexus.rc run_as_user="root" #此處我們指定以root用戶來運行Nexus服務! [root@node101 ~]#2>.修改Nexus啟動時使用的jdk版本
[root@node101 ~]# grep "INSTALL4J_JAVA_HOME_OVERRIDE=" /yinzhengjie/soft/nexus/bin/nexus | grep -v ^# INSTALL4J_JAVA_HOME_OVERRIDE=/yinzhengjie/soft/jdk #這里我故意把jdk的版本隱藏啦!而是使用的軟連接,你可以指定你想要的版本號。 [root@node101 ~]#3>.修改Nexus的默認的啟動端口
[root@node101 ~]# grep "application-port" /yinzhengjie/soft/nexus/etc/nexus-default.properties application-port=8888 #默認的端口是8081,此處我改為8888端口 [root@node101 ~]#4>.創建用戶
創建成功后,我們測試登錄,登錄成功的界面如下圖所示。
?
?
?
三.修改settings.xml配置,使用nexus私有庫
<?xml version="1.0" encoding="UTF-8"?><settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"><localRepository>${user.home}/.m2/repository</localRepository><interactiveMode>true</interactiveMode><offline>false</offline><pluginGroups><pluginGroup>org.mortbay.jetty</pluginGroup><pluginGroup>org.jenkins-ci.tools</pluginGroup></pluginGroups><servers> <server> <id>nexus-releases</id> <username>admin</username> <password>admin123</password> </server> <server> <id>nexus-snapshots</id> <username>admin</username> <password>admin123</password> </server> </servers> 這是Server的ID(不是登錄進來的user),與Maven想要連接上的repository/mirror中的id元素相匹配。username,password:這兩個元素成對出現,表示連接這個server需要驗證username和password。在nexus中,默認管理員用戶名為admin,密碼為admin123。這里使用兩個服務器配置,分別對應release和snapshot。<mirrors> <mirror> <id>nexus-releases</id> <mirrorOf>*</mirrorOf> <url>http://10.211.55.7:8081/repository/maven-public/</url> </mirror> <mirror> <id>nexus-snapshots</id> <mirrorOf>*</mirrorOf> <url>http://10.211.55.7:8081/repository/maven-snapshots/</url> </mirror> </mirrors> id,name:唯一的鏡像標識和用戶友好的鏡像名稱。id被用來區分mirror元素,并且當連接時候被用來獲得相應的證書。 mirrorOf:鏡像所包含的倉庫的Id。例如,指向Maven central倉庫的鏡像(http://repo1.maven.org/maven2/),設置這個元素為central。更多的高級映射例如repo1,repo2 或者*,!inhouse都是可以的。沒必要一定和mirror的id相匹配。在這里mirrorOf項當然應該使用*,以表明是所有倉庫都會被鏡像到指定的地址。 url:鏡像基本的URL,構建系統將使用這個URL來連接倉庫。這里應該添nexus倉庫的地址,地址可以在nexus倉庫頁面中找到。 <profiles> <profile> <id>nexus</id> <repositories> <repository> <id>nexus-releases</id> <url>http://nexus-releases</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </repository> <repository> <id>nexus-snapshots</id> <url>http://nexus-snapshots</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>nexus-releases</id> <url>http://nexus-releases</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </pluginRepository> <pluginRepository> <id>nexus-snapshots</id> <url>http://nexus-snapshots</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </pluginRepository> </pluginRepositories> </profile> </profiles> profile項代表maven的基本配置。按照maven的一貫尿性,很多xml的配置項都會有一個配置項的復數形式作為父節點,以保證該配置項可以配置多個。在profiles項中,當然也可以配置多個profile,不過在這里配一個就夠了。下面介紹profile項的各個子節點。 id:用來確定該profile的唯一標識。 repositories/repository:用以規定依賴包倉庫的相關信息。在下屬節點中,id就不用多說了;URL是指倉庫地址,這里使用偽造的地址,否則即使設置了mirror,maven也有可能會直接從中央倉庫下載包;releases和snapshots放在一塊說吧,這兩個節點下屬的enable節點用以規定對應的依賴包是否對當前策略有效,假如將snapshot的enable項設為disable,則不會下載snapshot包。<activeProfiles> <activeProfile>nexus</activeProfile> </activeProfiles> </settings> 用以規定當前啟用的配置,將對應profile的ID加入到這一項即可使profile生效。 maven中的setting.xml配置說明 <?xml version="1.0" encoding="UTF-8"?><!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --><!--| This is the configuration file for Maven. It can be specified at two levels:|| 1. User Level. This settings.xml file provides configuration for a single user,| and is normally provided in ${user.home}/.m2/settings.xml.|| NOTE: This location can be overridden with the CLI option:|| -s /path/to/user/settings.xml|| 2. Global Level. This settings.xml file provides configuration for all Maven| users on a machine (assuming they're all using the same Maven| installation). It's normally provided in| ${maven.conf}/settings.xml.|| NOTE: This location can be overridden with the CLI option:|| -gs /path/to/global/settings.xml|| The sections in this sample file are intended to give you a running start at| getting the most out of your Maven installation. Where appropriate, the default| values (values used when the setting is not specified) are provided.||--> <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"><!-- localRepository| The path to the local repository maven will use to store artifacts.|| Default: ${user.home}/.m2/repository #默認存放資源的路徑<localRepository>/path/to/local/repo</localRepository>--><localRepository>D:\10.Java\maven-repository</localRepository><!-- interactiveMode| This will determine whether maven prompts you when it needs input. If set to false,| maven will use a sensible default value, perhaps based on some other setting, for| the parameter in question.|| Default: true<interactiveMode>true</interactiveMode>--><!-- offline| Determines whether maven should attempt to connect to the network when executing a build.| This will have an effect on artifact downloads, artifact deployment, and others.|| Default: false<offline>false</offline>--><!-- pluginGroups| This is a list of additional group identifiers that will be searched when resolving plugins by their prefix, i.e.| when invoking a command line like "mvn prefix:goal". Maven will automatically add the group identifiers| "org.apache.maven.plugins" and "org.codehaus.mojo" if these are not already contained in the list.|--><pluginGroups><!-- pluginGroup| Specifies a further group identifier to use for plugin lookup.<pluginGroup>com.your.plugins</pluginGroup>--></pluginGroups><!-- proxies| This is a list of proxies which can be used on this machine to connect to the network.| Unless otherwise specified (by system property or command-line switch), the first proxy| specification in this list marked as active will be used.|--><proxies><!-- proxy| Specification for one proxy, to be used in connecting to the network.|<proxy><id>optional</id><active>true</active><protocol>http</protocol><username>proxyuser</username><password>proxypass</password><host>proxy.host.net</host><port>80</port><nonProxyHosts>local.net|some.host.com</nonProxyHosts></proxy>--></proxies><!-- servers| This is a list of authentication profiles, keyed by the server-id used within the system.| Authentication profiles can be used whenever maven must make a connection to a remote server.|--><servers><!-- server| Specifies the authentication information to use when connecting to a particular server, identified by| a unique name within the system (referred to by the 'id' attribute below).|| NOTE: You should either specify username/password OR privateKey/passphrase, since these pairings are| used together.|<server><id>deploymentRepo</id><username>repouser</username><password>repopwd</password></server>--><!-- Another sample, using keys to authenticate.<server><id>siteServer</id><privateKey>/path/to/private/key</privateKey><passphrase>optional; leave empty if not used.</passphrase></server>--><server> <id>nexus-releases</id> <username>yinzhengjie</username> <password>yinzhengjie</password> </server> <server> <id>nexus-snapshots</id> <username>yinzhengjie</username> <password>yinzhengjie</password> </server> </servers><!-- mirrors| This is a list of mirrors to be used in downloading artifacts from remote repositories.|| It works like this: a POM may declare a repository to use in resolving certain artifacts.| However, this repository may have problems with heavy traffic at times, so people have mirrored| it to several places.|| That repository definition will have a unique id, so we can create a mirror reference for that| repository, to be used as an alternate download site. The mirror site will be the preferred| server for that repository.|--><mirrors><!-- mirror| Specifies a repository mirror site to use instead of a given repository. The repository that| this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used| for inheritance and direct lookup purposes, and must be unique across the set of mirrors.|<mirror><id>mirrorId</id><mirrorOf>repositoryId</mirrorOf><name>Human Readable Name for this Mirror.</name><url>http://my.repository.com/repo/path</url></mirror>--><mirror> <id>nexus-releases</id> <mirrorOf>*</mirrorOf> <url>http://node101.yinzhengjie.org.cn:8888/repository/maven-public/</url> </mirror> <mirror> <id>nexus-snapshots</id> <mirrorOf>*</mirrorOf> <url>http://node101.yinzhengjie.org.cn:8888/repository/maven-snapshots/</url> </mirror> </mirrors> <!-- profiles| This is a list of profiles which can be activated in a variety of ways, and which can modify| the build process. Profiles provided in the settings.xml are intended to provide local machine-| specific paths and repository locations which allow the build to work in the local environment.|| For example, if you have an integration testing plugin - like cactus - that needs to know where| your Tomcat instance is installed, you can provide a variable here such that the variable is| dereferenced during the build process to configure the cactus plugin.|| As noted above, profiles can be activated in a variety of ways. One way - the activeProfiles| section of this document (settings.xml) - will be discussed later. Another way essentially| relies on the detection of a system property, either matching a particular value for the property,| or merely testing its existence. Profiles can also be activated by JDK version prefix, where a| value of '1.4' might activate a profile when the build is executed on a JDK version of '1.4.2_07'.| Finally, the list of active profiles can be specified directly from the command line.|| NOTE: For profiles defined in the settings.xml, you are restricted to specifying only artifact| repositories, plugin repositories, and free-form properties to be used as configuration| variables for plugins in the POM.||--><profiles><!-- profile| Specifies a set of introductions to the build process, to be activated using one or more of the| mechanisms described above. For inheritance purposes, and to activate profiles via <activatedProfiles/>| or the command line, profiles have to have an ID that is unique.|| An encouraged best practice for profile identification is to use a consistent naming convention| for profiles, such as 'env-dev', 'env-test', 'env-production', 'user-jdcasey', 'user-brett', etc.| This will make it more intuitive to understand what the set of introduced profiles is attempting| to accomplish, particularly when you only have a list of profile id's for debug.|| This profile example uses the JDK version to trigger activation, and provides a JDK-specific repo.<profile><id>jdk-1.4</id><activation><jdk>1.4</jdk></activation><repositories><repository><id>jdk14</id><name>Repository for JDK 1.4 builds</name><url>http://www.myhost.com/maven/jdk14</url><layout>default</layout><snapshotPolicy>always</snapshotPolicy></repository></repositories></profile>--><!--| Here is another profile, activated by the system property 'target-env' with a value of 'dev',| which provides a specific path to the Tomcat instance. To use this, your plugin configuration| might hypothetically look like:|| ...| <plugin>| <groupId>org.myco.myplugins</groupId>| <artifactId>myplugin</artifactId>|| <configuration>| <tomcatLocation>${tomcatPath}</tomcatLocation>| </configuration>| </plugin>| ...|| NOTE: If you just wanted to inject this configuration whenever someone set 'target-env' to| anything, you could just leave off the <value/> inside the activation-property.|<profile><id>env-dev</id><activation><property><name>target-env</name><value>dev</value></property></activation><properties><tomcatPath>/path/to/tomcat/instance</tomcatPath></properties></profile>--></profiles><!-- activeProfiles| List of profiles that are active for all builds.|<activeProfiles><activeProfile>alwaysActiveProfile</activeProfile><activeProfile>anotherAlwaysActiveProfile</activeProfile></activeProfiles>--><profile> <id>nexus</id> <repositories> <repository> <id>nexus-releases</id> <url>http://nexus-releases</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </repository> <repository> <id>nexus-snapshots</id> <url>http://nexus-snapshots</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>nexus-releases</id> <url>http://nexus-releases</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </pluginRepository> <pluginRepository> <id>nexus-snapshots</id> <url>http://nexus-snapshots</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </pluginRepository> </pluginRepositories> </profile> <activeProfiles> <activeProfile>nexus</activeProfile> </activeProfiles> </settings>?
四.上傳jar包到nexus
第一種方式:
mvn deploy:deploy-file -DgroupId=com.alibaba -DartifactId=dubbo -Dversion=2.8.4 -Dpackaging=jar -Dfile=/Users/zhangyong/Documents/software/dubbo-2.8.4.jar -Durl=http://10.211.55.7:8081/repository/maven-releases/ -DrepositoryId=nexus-releases
?
DrepositoryId和settings.xml里配置的id一樣
第二種方式:
代碼的pom.xml中直接接入
<distributionManagement> ?
? ? ? ? <repository> ?
? ? ? ? ? ? <id>nexus-releases</id> ?
? ? ? ? ? ? <name>maven-releases</name> ?
?? ? ? ? ? <url>http://10.211.55.7:8081/repository/maven-releases/</url> ?
? ? ? ? </repository> ?
</distributionManagement>?
?
mvn deploy
?
轉載于:https://www.cnblogs.com/yinzhengjie/p/10140805.html
總結
以上是生活随笔為你收集整理的使用Nexus配置Maven私有仓库的全部內容,希望文章能夠幫你解決所遇到的問題。