配置私服
2016-04-02 17:07
411 查看
1.先下载私服
windows-x86-32这里是因为我的jdk是32位的,所以我选择的是32位的
D:\nexus-2.11.0-02\bin\jsw\windows-x86-32打击install-nexus.bat
2.打开私服
D:\nexus-2.11.0-02\bin\jsw\windows-x86-32点击start-nexus.bat
如果上面两个没有访问权限,就用管理员的方式打开
3.配置私服
<?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>D:/MavenRepository</localRepository>
<pluginGroups>
</pluginGroups>
<proxies>
</proxies>
<!-- 配 上传的账号和密码 -->
<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://218.196.14.220:8081/nexus/content/groups/public</url> -->
<!-- <url>http://localhost:8081/nexus/content/groups/public</url>
<url>http://192.168.15.100:8081/nexus/content/groups/public/</url>
<url>http://218.196.14.220:8081/nexus/content/groups/public/</url>-->
<url>http://192.168.15.100:8081/nexus/content/groups/public/</url>
</mirror>
</mirrors>
<profiles>
<profile>
<id>central</id>
<repositories>
<repository>
<id>central</id>
<url>http://central</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>central</id>
<url>http://central</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
<profile>
<id>jdk1.7</id>
<activation>
<activeByDefault>true</activeByDefault>
<jdk>1.7</jdk>
</activation>
<properties>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
<maven.compiler.compilerVersion>1.7</maven.compiler.compilerVersion>
</properties>
</profile>
</profiles>
<activeProfiles>
<activeProfile>central</activeProfile>
</activeProfiles>
</settings>
windows-x86-32这里是因为我的jdk是32位的,所以我选择的是32位的
D:\nexus-2.11.0-02\bin\jsw\windows-x86-32打击install-nexus.bat
2.打开私服
D:\nexus-2.11.0-02\bin\jsw\windows-x86-32点击start-nexus.bat
如果上面两个没有访问权限,就用管理员的方式打开
3.配置私服
<?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>D:/MavenRepository</localRepository>
<pluginGroups>
</pluginGroups>
<proxies>
</proxies>
<!-- 配 上传的账号和密码 -->
<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://218.196.14.220:8081/nexus/content/groups/public</url> -->
<!-- <url>http://localhost:8081/nexus/content/groups/public</url>
<url>http://192.168.15.100:8081/nexus/content/groups/public/</url>
<url>http://218.196.14.220:8081/nexus/content/groups/public/</url>-->
<url>http://192.168.15.100:8081/nexus/content/groups/public/</url>
</mirror>
</mirrors>
<profiles>
<profile>
<id>central</id>
<repositories>
<repository>
<id>central</id>
<url>http://central</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>central</id>
<url>http://central</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
<profile>
<id>jdk1.7</id>
<activation>
<activeByDefault>true</activeByDefault>
<jdk>1.7</jdk>
</activation>
<properties>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
<maven.compiler.compilerVersion>1.7</maven.compiler.compilerVersion>
</properties>
</profile>
</profiles>
<activeProfiles>
<activeProfile>central</activeProfile>
</activeProfiles>
</settings>
相关文章推荐
- maven学习
- maven插件maven-war-plugin的使用
- jenkins------部署项目到jboss eap下
- maven使用经验集
- Ubuntu 安装 JDK 问题
- 【DevOps】为什么我们永远疲于奔命?
- 网络管理之IP地址篇
- 文件的读出 编辑 管理
- VB实现的16位和32位md5加密代码分享
- SQL Server 2008 R2 应用及多服务器管理
- VC下通过系统快照实现进程管理的方法
- VB的32位程序在64位系统中出现文件和注册表自动转向的解决方法
- 使用jQuery管理选择结果
- SQLServer 管理常用SQL语句
- 32位操作系统认出超出4G内存的方法
- C#中实现在32位、64位系统下自动切换不同的SQLite dll文件
- 图书管理程序(二)
- javascript的内存管理详解
- jdk与jre的区别 很形象,很清晰,通俗易懂
- jdk中String类设计成final的原由