标签:csdn ica 卸载 图片 库类 oracl osi Fix 搭建
去 https://www.sonatype.com/oss-thank-you-win64.zip 下载并解压如下
nexus.exe /install //安装
nexus.exe /uninstall//卸载
net start nexus //启动
net stop nexus//停止
在etc目录下的nexus-default.properties配置Nexus端口、IP、上下文路径
http://localhost:8081/nexus/#welcome
登录
默认用户 密码
admin/admin123
<servers>
<server>
<id>releases</id> <!--宿主仓库-->
<username>admin</username>
<password>admin123</password>
</server>
<server>
<id>snapshots</id><!--宿主仓库-->
<username>admin</username>
<password>admin123</password>
</server>
</servers>
<distributionManagement>
<repository>
<id>releases</id>
<url>http://localhost:8081/nexus/repository/maven-releases</url><!--私服对应url-->
</repository>
<snapshotRepository>
<id>snapshots</id>
<url>http://localhost:8081/nexus/repository/maven-snapshots</url><!--私服对应url-->
</snapshotRepository>
</distributionManagement>
<profile>
<!--profile的id-->
<id>dev</id>
<repositories>
<repository>
<!--仓库id,repositories可以配置多个仓库,保证id不重复-->
<id>nexus</id>
<!--仓库地址,即nexus仓库组的地址-->
<url>http://localhost:8081/nexus/repository/maven-public</url>
<!--是否下载releases构件-->
<releases><enabled>true</enabled></releases>
<!--是否下载snapshots构件-->
<snapshots><enabled>true</enabled></snapshots>
</repository>
</repositories>
<pluginRepositories>
<!--插件仓库,maven的运行依赖插件,也需要从私服下载插件-->
<pluginRepository>
<!--插件仓库的id不允许重复,如果重复后边配置会覆盖前边-->
<id>public</id>
<name>Public Repositories</name>
<url>http://localhost:8081/nexus/repository/maven-public</url>
</pluginRepository>
</pluginRepositories>
</profile>
<activeProfiles>
<activeProfile>dev</activeProfile>
</activeProfiles>
标签:csdn ica 卸载 图片 库类 oracl osi Fix 搭建
原文地址:https://www.cnblogs.com/But-you/p/11584150.html