File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed
Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change 9797 ```
9898
9999
100+ <h2 id="nexus2">Nexus 配置</h2>
101+
102+ - 手动更新索引
103+ - 关闭 Nexus:`/usr/program/nexus2.11.4/bin/nexus stop`
104+ - 命令:`cd /opt/sonatype-work/nexus/indexer/central-ctx`
105+ - 删除里面默认的文件:`rm -rf *`
106+ - 访问官网索引:<http://repo.maven.apache.org/maven2/.index/>
107+ - 下载文件:**nexus-maven-repository-index.gz**:`wget http://repo.maven.apache.org/maven2/.index/nexus-maven-repository-index.gz`
108+ - 下载文件:**nexus-maven-repository-index.properties**:`wget http://repo.maven.apache.org/maven2/.index/nexus-maven-repository-index.properties`
109+ - 下载索引解压工具:`wget https://repo1.maven.org/maven2/org/apache/maven/indexer/indexer-cli/5.1.1/indexer-cli-5.1.1.jar`
110+ - 执行解压命令(该命令执行需要4分钟左右):`java -jar indexer-cli-5.1.0.jar -u nexus-maven-repository-index.gz -d ./`
111+ - 删除解压前文件:`rm -rf indexer-cli-5.1.0.jar nexus-maven-repository-index.gz nexus-maven-repository-index.properties`
112+ - 重启服务:`/usr/program/nexus2.11.4/bin/nexus start`
113+
100114<h2 id="nexus3">资料</h2>
101115
102116- <http://www.cnblogs.com/leefreeman/p/4211530.html>
105119- <http://m.blog.csdn.net/article/details?id=49228873>
106120- <http://mritd.me/2015/12/29/Nexus-2-11-CentOS%E6%90%AD%E5%BB%BA%E6%95%99%E7%A8%8B/>
107121- <http://mritd.me/2015/12/28/Nexus-%E7%A7%81%E6%9C%8D%E4%BD%BF%E7%94%A8%E6%95%99%E7%A8%8B/>
108- - <http://my.oschina.net/liangbo/blog/195739>
122+ - <http://my.oschina.net/liangbo/blog/195739>
123+ - <http://www.mamicode.com/info-detail-1016489.html>
124+ - <http://blog.csdn.net/shawyeok/article/details/23564681>
125+ - <http://zyjustin9.iteye.com/blog/2017321>
You can’t perform that action at this time.
0 commit comments