maven 项目配置

在maven的 conf/settings.xml 加上配置 指定的maven host : profile并激活
host: http://oss.sonatype.org/content/repositories/releases

相关的xml 如下:
<repository>
    <id>sonatype-nexus-staging</id>
    <name>local private maven server release defined </name>
	<url>http://oss.sonatype.org/content/repositories/releases</url>
	<releases>
	      <enabled>true</enabled>
	</releases>
	<snapshots>
	      <enabled>false</enabled>
	</snapshots>
</repository>
<repository>
	<id>oss.sonatype.org</id>
	<name>local private maven server snapshots defined </name>
	<url>http://oss.sonatype.org/content/groups/public</url>
	<releases>
	      <enabled>true</enabled>
	</releases>
	<snapshots>
	       <enabled>true</enabled>
	</snapshots>
</repository>

相关文件:maven配置文件

Last edited Aug 7, 2010 at 3:53 PM by vison_ruan, version 4

Comments

No comments yet.