安装 Nexus
D:\bin>jar xvf "D:\..\nexus-2.3.1-01-bundle.zip"
cd D:\bin\nexus-2.3.1-01\bin
进入私服 http://localhost:8081/nexus/index.html#welcome
用户/密码 admin/admin123
Central中Download Remote Indexes 设置为true
选择Central点击右键 Update Index 更新私服构建
配置.m2/settings.xml文件
D:\bin>jar xvf "D:\..\nexus-2.3.1-01-bundle.zip"
cd D:\bin\nexus-2.3.1-01\bin
nexus install
nexus start
进入私服 http://localhost:8081/nexus/index.html#welcome
用户/密码 admin/admin123
Central中Download Remote Indexes 设置为true
选择Central点击右键 Update Index 更新私服构建
配置.m2/settings.xml文件
<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>
<mirrors>
<mirror>
<id>nexus</id>
<mirrorOf>*</mirrorOf>
<url>http://10.100.98.218:8081/nexus/content/groups/public/</url>
</mirror>
</mirrors>
<profiles>
<profile>
<id>jdk-1.6</id>
<activation>
<activeByDefault>true</activeByDefault>
<jdk>1.6</jdk>
</activation>
<properties>
<maven.compiler.source>1.6</maven.compiler.source>
<maven.compiler.target>1.6</maven.compiler.target>
<maven.compiler.compilerVersion>1.6</maven.compiler.compilerVersion>
</properties>
</profile>
<profile>
<id>nexus</id>
<repositories>
<repository>
<id>nexus</id>
<name>Nexus</name>
<url>http://central</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>nexus</id>
<name>Nexus</name>
<url>http://central</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>nexus</activeProfile>
</activeProfiles>