首页 > 其他 > 详细

搭建Maven私服——nexus

时间:2015-12-22 06:47:42      阅读:165      评论:0      收藏:0      [点我收藏+]

1、maven的全局配置文件:

<?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:\greensoft\apache-maven-3.2.3-bin\apache-maven-3.2.3\repo</localRepository>

<pluginGroups>
</pluginGroups>

<proxies>
</proxies>

 
<servers>
	<server>
		<id>cninfo-release</id>
		<username>deployment</username>
		<password>xxxxxx</password>
	</server>
	<server>
		<id>cninfo-snapshot</id>
		<username>deployment</username>
		<password>xxxxxx</password>
	</server>
</servers>


   
<mirrors>

 <mirror>
      <id>central</id>
      <mirrorOf>*</mirrorOf>
      <name>Human Readable Name for this Mirror.</name>
      <url>http://xxx.xxx.xxx.xx:8089/nexus/content/groups/xxxx_group</url>
 </mirror>
	  
</mirrors>
  

<profiles>
    <profile>
	<id>cninfo_group</id>
	<repositories>
		<repository>
			<id>cninfo_group</id>
			<name>cninfo_group_repo</name>
			<url>http://xxx.xxx.xxx.xx:8089/nexus/content/groups/xxxx_group</url>
			<releases>
				<enabled>true</enabled>
			</releases>
			<snapshots>
				<enabled>true</enabled>
			</snapshots>
		</repository>
	</repositories>
	<pluginRepositories>
         <pluginRepository>
           <id>cninfo_group</id>
          <name>cninfo_group_repo</name>
            <url>http://xxx.xxx.xxx.xx:8089/nexus/content/groups/cninfo_group</url>
               <releases><enabled>true</enabled></releases>
               <snapshots><enabled>true></enabled></snapshots>
       </pluginRepository>
      </pluginRepositories>
					 
  </profile>
	<profile>  
		<id>downloadSources</id>  
		<properties>  
			<downloadSources>true</downloadSources>  
			<downloadJavadocs>true</downloadJavadocs>             
		</properties>  
	</profile>  
  </profiles>

 
  
<activeProfiles>
        <activeProfile>cninfo_group</activeProfile>
		<activeProfile>downloadSources</activeProfile>  
</activeProfiles>

</settings>


本文出自 “小鱼的博客” 博客,请务必保留此出处http://395469372.blog.51cto.com/1150982/1726812

搭建Maven私服——nexus

原文:http://395469372.blog.51cto.com/1150982/1726812

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!