码迷,mamicode.com
首页 > 其他好文 > 详细

搭建Maven私服——nexus

时间:2015-12-22 06:48:14      阅读:167      评论:0      收藏:0      [点我收藏+]

标签:搭建maven私服 nexus

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

标签:搭建maven私服 nexus

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!