Skip to content

Commit

Permalink
修改为nexus私服
Browse files Browse the repository at this point in the history
  • Loading branch information
yita committed May 5, 2015
1 parent 8640c80 commit b8c7450
Showing 1 changed file with 38 additions and 4 deletions.
42 changes: 38 additions & 4 deletions modules/parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
<project xmlns="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.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>com.wellhope.godaji</groupId>
<artifactId>godaji-parent</artifactId>
<version>1.0.0-SNAPSHOT</version>
<groupId>org.sonatype.oss</groupId>
<artifactId>oss-parent</artifactId>
<version>7</version>
</parent>

<groupId>io.springside</groupId>
Expand Down Expand Up @@ -64,6 +63,41 @@
<maven>3.0.0</maven>
</prerequisites>

<!-- 设定除中央仓库 (repo1.maven.org/maven2/)外的其他仓库,按设定顺序进行查询,如有Nexus私服, 取消注释并指向正确的服务器地址-->
<repositories>
<repository>
<id>nexus</id>
<name>Team Nexus Repository</name>
<url>http://115.29.151.153:8081/nexus/content/groups/public</url>
</repository>
</repositories>

<!-- 如有Nexus私服, 取消注释并指向正确的服务器地址 -->
<pluginRepositories>
<pluginRepository>
<id>nexus</id>
<name>Team Nexus Repository</name>
<url>http://115.29.151.153:8081/nexus/content/groups/public</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>


<distributionManagement>
<repository>
<id>nexus-releases</id>
<name>Nexus Release Repository</name>
<url>http://115.29.151.153:8081/nexus/content/repositories/releases/</url>
</repository>
<snapshotRepository>
<id>nexus-snapshots</id>
<name>Nexus Snapshot Repository</name>
<url>http://115.29.151.153:8081/nexus/content/repositories/snapshots/</url>
</snapshotRepository>
</distributionManagement>

<!-- 预定义依赖项的version,scope与exclusions,子项目中只需定义groupId 与 artifactId 即可 -->
<dependencyManagement>
<dependencies>
Expand Down

0 comments on commit b8c7450

Please sign in to comment.