搭建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>
时间: 2024-08-25 03:50:27

搭建Maven私服——nexus的相关文章

Ubuntu server下搭建Maven私服Nexus

Ubuntu server下搭建Maven私服Nexus Maven私服Nexus的作用,主要是为了节省资源,在内部作为maven开发资源共享服务器来使用. 1.下载 通过root用户进去Ubuntu server $ cd /opt $ wget http://download.sonatype.com/nexus/oss/nexus-2.10.0-02-bundle.tar.gz 2.启动 $ cd /opt/ $ tar -zxvf nexus-2.10.0-02-bundle.tar.g

Sonatype Nexus 搭建Maven 私服

1. 为什么使用Nexus 如果没有私服,我们所需的所有构件都需要通过maven的中央仓库和第三方的Maven仓库下载到本地,而一个团队中的所有人都重复的从maven仓库下载构件无疑加大了仓库的负载和浪费了外网带宽,如果网速慢的话,还会影响项目的进程.很多情况下项目的开发都是在内网进行的,连接不到maven仓库怎么办呢?开发的公共构件怎么让其它项目使用?这个时候我们不得不为自己的团队搭建属于自己的maven私服,这样既节省了网络带宽也会加速项目搭建的进程,当然前提条件就是你的私服中拥有项目所需的

使用nexus搭建maven私服

使用nexus搭建maven私服 国内访问maven仓库速度渣渣,公司访问外网速度不快,即使用阿里云镜像效果也不佳.在局域网内搭建Maven私服,除了能从私服加速下载jar包,还能将内部通用模块发布在私服上供其他同事使用.对内部项目部署很有帮助. 安装和启动nexus 下载nexus-2.14.2-01-bundle.tar.gz https://www.sonatype.com/download-oss-sonatype # 添加用户 adduser nexus passwd nexus su

nexus搭建maven私服及私服jar包上传和下载

nexus搭建maven私服及私服jar包上传和下载 标签: nexus管理maven库snapshot 2017-06-28 13:02 844人阅读 评论(0) 收藏 举报 分类: Maven(1) 版权声明:本文为博主原创文章,未经博主允许不得转载. 一.nexus搭建maven私服及相关介绍 1.下载nexus-2.12.0-01-bundle.zip(版本随意) 2.以管理员身份运行cmd,cd进入解压文件的bin目录,执行nexus.bat install 若未以管理员身份运行则安装

Maven学习二:使用Nexus搭建Maven私服及相关配置

处于安全等原因的考虑,一些企业内部网络是不允许访问外部网络的,但是项目内部搭建的项目又是Maven架构,这样就需要企业在内部网络中搭建自己的Maven仓库服务,再者一些大型企业或者内部模块化组件化划分的比较清楚的企业开发的一些独立组件就需要使用Maven自建仓库来存放独立组件了. 使用Nexus搭建Maven私服主要有一下步骤: 1.首先需要准备好Java环境和Maven环境环境 2.到Nexus官方网站下载最新版本的Nexus https://www.sonatype.com/download

在linux中使用nexus搭建maven私服

首先介绍下为什么要搭建maven私服,简单点说就是就是把项目工程中的Jar包放在一个服务器上,每次Jar包的修改都能去私服上面Down到本地.可以对整个项目组的人形成一个统一的管理. 1.下载nexus,地址:http://www.sonatype.org/nexus/go 2.下载完之后就是这个了:我这个是目前最新的版本了,下载完之后就可以它传到Linux中了,可以先在linux中创建一个目录nexus # mkdir nexus # cd nexus # rz 上传文件 # tar  xzv

Maven学习 (四) 使用Nexus搭建Maven私服

为什么要搭建nexus私服,原因很简单,有些公司都不提供外网给项目组人员,因此就不能使用maven访问远程的仓库地址,所以很有必要在局域网里找一台有外网权限的机器,搭建nexus私服,然后开发人员连到这台私服上,这样的话就可以通过这台搭建了nexus私服的电脑访问maven的远程仓库. 1.首先确定我们的环境安装好maven,jdk等必须的环境 2.这些都准备好之后,去下载最新版本的nexus    下载地址:http://www.sonatype.org/nexus/go 我本地安装的是 ne

nexus 搭建 maven 私服

nexus 搭建 maven 私服 本机环境 Win 8 JDK 7 Maven 3.2 Nexus 2.11 版本选择 http://www.sonatype.org/nexus/archivednexus 2.6 及 2.6+ 版本要求 jdk 1.7 或 1.7+ 版本(jdk 1.6 请选择 nexus 2.5 及 以下版本).根据你现有的环境来选择合适的版本.这里选择 nexus-2.11.0 (如果无法打开下载, 可将新标签页地址栏中的地址复制到迅雷等下载工具中进行下载).下载得到

Maven 系列 五 :使用Nexus搭建Maven私服

1 . 私服简介 私服是架设在局域网的一种特殊的远程仓库,目的是代理远程仓库及部署第三方构件.有了私服之后,当 Maven 需要下载构件时,直接请求私服,私服上存在则下载到本地仓库:否则,私服请求外部的远程仓库,将构件下载到私服,再提供给本地仓库下载.                                                  我们可以使用专门的 Maven 仓库管理软件来搭建私服,比如:Apache Archiva,Artifactory,Sonatype Nexus.这