程序名称:nexus
版本:3.1.0-04
安装:直接下载解压就行(linux系统),具体查看网上教程。
管理员用户和密码:admin admin123
程序路径:/opt/nexus/
程序运行:
进入目录/opt/nexus/ nexus-3.1.0-04/bin
在终端输入: ./nexus start(stop status) 启动(停止 查看状态)
地址:localhost:8000
maven dependency的地址:http://mvnrepository.com/
pom.xml
<projectxmlns="http://maven.apache.org/POM/4.0.0"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>LearnSpringMVCDemo</groupId>
<artifactId>LearnSpringMVCDemo</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>
<!-- 配置maven工厂-->
<repositories>
<repository>
<id>nexus</id>
<url>http://10.2.45.130:8000/repository/maven-public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>nexus</id>
<url>http://10.2.45.130:8000/repository/maven-public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
<!-- 配置发布位置 -->
<distributionManagement>
<repository>
<id>nexus</id>
<name>Nexus ReleaseRepository</name>
<url>http://10.2.45.130:8000/repository/maven-releases/</url>
</repository>
<snapshotRepository>
<id>nexus</id>
<name>Nexus SnapshotRepository</name>
<url>http://10.2.45.130:8000/repository/maven-snapshots/</url>
</snapshotRepository>
</distributionManagement>
</project>
setting文件(修改E:\Java工具\apache-maven-3.3.9\conf\setting文件的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>