`
yonlist
  • 浏览: 83134 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

nexus 初试笔记

 
阅读更多

今天花了点时间研究了下Nexus,做个小笔记。

 

1.别忘了登录 =..= 默认为admin/admin123;

 

2.修改proxy类型的仓库配置,将Download Remote Indexes改为True,save后会下载索引比较慢;

 

3.修改Public Repositories的配置,选几个仓库组合,然后就用这个仓库组的url了;

 

4.本机的maven/conf/setting.xml要加2段配置:

=======================================================

<settings>

...

<mirrors>

 

<mirror>

<id>nexus</id>

<mirrorOf>*</mirrorOf>

<url>http://<address>:8081/nexus/content/groups/public</url>

</mirror>

</mirrors>

 

<profiles>

<profile>

<id>nexus</id>

<repositories>

<repository>

<id>central</id>

<url>http://central</url>

<releases><enabled>true</enabled></releases>

<snapshots><enabled>true</enabled></snapshots>

</repository>

</repositories>

<pluginRepositories>

<pluginRepository>

<id>central</id>

<url>http://central</url>

<releases><enabled>true</enabled></releases>

<snapshots><enabled>true</enabled></snapshots>

</pluginRepository>

</pluginRepositories>

</profile>

 

  <activeProfiles>

<activeProfile>nexus</activeProfile>

  </activeProfiles>

</settings>

=======================================================

如果不改这个也可以,改项目POM,添加:

<project>

...

 

<repositories>

<repository>

<snapshots>

<enabled>true</enabled>

</snapshots>

<id>public</id>

<name>Public Repositories</name>

<url>http://192.168.1.100:8081/nexus/content/groups/public/</url>

</repository>

</repositories>

<pluginRepositories>

<pluginRepository>

<id>public</id>

<name>Public Repositories</name>

<url>http://192.168.1.100:8081/nexus/content/groups/public/</url>

</pluginRepository>

</pluginRepositories>

 

<dependencies>

...

</project>

=======================================================

 

5.用mvn help:system试试,项目目录下的mvn clean compile...一堆命令试试;

 

6.如果有获取之类的问题,确认下仓库的Remote Storage Location。我就是这里费了不少力气,不知道是不是网络不给力。

 

=======================================================

后记:我发现在网通网络连接中央仓库经常失败,电信网络基本没问题,这上面折腾了不少时间,同学们别走弯路了。

 

 

 

分享到:
评论

相关推荐

    Cicso CCIE_NEXUS系列交换机配置笔记.pdf

    Cicso NEXUS系列交换机配置笔记

    Nexus使用笔记

    Nexus 是Maven仓库管理器,用来搭建一个本地仓库服务器,这样便于管理,节省网络资源,下载速度快,还有一个非常有用的功能就是可以通过项目的SNAPSHOT版本管理,来进行模块间的高效依赖开发

    Cisco Nexus 配置讲解

    Cisco Nexus 系列学习笔记.。

    Nexus使用Api进行操作

    Nexus提供了RestApi,但是一部分Api仍然需要结合Groovy等进行操作,在3.3及其以后的版本上进行了强化,但是和普通的RestApi相比仍有一些“使用上的特性”。这篇文章以创建raw的repository为例,来确认一下相关的使用...

    maven 私服 nexus2 nexus3 安装与说明

    maven 私服 nexus2 nexus3 安装与说明,只有简单的安装,没有详细的配置使用说明

    nexus 搭建 maven仓库

    nexus 搭建 maven仓库nexus 搭建 maven仓库nexus 搭建 maven仓库nexus 搭建 maven仓库nexus 搭建 maven仓库

    nexus-3.23.0-03-win64.rar-Nexus Repository Oss

    Nexus是一个强大的Maven仓库管理器,它极大地简化了自己内部仓库的维护和外部仓库的访问。利用Nexus你可以只在一个地方就能够完全控制访问 和部署在你所维护仓库中的每个Artifact。Nexus是一套“开箱即用”的系统不...

    Linux系统部署Nexus操作步骤(nexus-3.20.1-01).zip

    Linux系统部署Nexus操作步骤(nexus-3.20.1-01) Linux系统部署Nexus操作步骤(nexus-3.20.1-01) Linux系统部署Nexus操作步骤(nexus-3.20.1-01)

    Nexus Repository Manager的使用

    Nexus Repository Manager的使用Nexus Repository Manager的使用

    nexus2.14 破解补丁包

    自己使用nexus搭建了一个maven私服,发现过半个月就要用邮箱注册一个license,一个邮箱还只能注册一次,所以自己针对nexus2.14做了下破解,因为我本地的版本是2.14版本的,其他的版本...2.14.2-01\nexus\WEB-INF\lib)

    maven nexus 安装包.zip

    nexus-2.14.5-02-bundle.zip nexus-3.19.1-01-unix.tar.gz nexus-3.19.1-01-win64.zip 包含以上三种安装包,需要可自行下载。

    nexus index 索引手动更新

    nexus index索引手动更新,不需要等待nexus自动更新很慢的下载速度,节约时间

    nexus-3.61.0-02-unix.tar.gz

    nexus

    nexus-2.14.8-01.zip

    Nexus是一个强大的Maven仓库管理器,它极大地简化了自己内部仓库的维护和外部仓库的访问。利用Nexus你可以只在一个地方就能够完全控制访问 和部署在你所维护仓库中的每个Artifact。Nexus是一套“开箱即用”的系统不...

    nexus私服搭建以及使用教程

    nexus私服搭建以及使用教程 nexus私服搭建以及使用教程 附带安装包,解压即可安装

    Nexus源码包

    nexus-2.2-01 Nexus源码包,供学习使用。nexus-2.2-01 Nexus源码包

    gradle与nexus完美结合

    gradle与nexus完美结合

    Nexus Repository Manager 3.28.1-01

    最新版本的 Nexus Repository Manager 3.28.1-01 Nexus是一个强大的Maven仓库管理器,它极大地简化了本地内部仓库的维护和外部仓库的访问。 如果使用了公共的Maven仓库服务器,可以从Maven中央仓库下载所需要的构件...

    nexus-2.15.0-04-bundle.zip

    Maven 搭建 Nexus 私服 Windows 和 Linux 都可 Nexus 仓库按照类型(Type)区分,主要分为以下 3 个类型: 代理仓库(proxy):用来代理远程公共仓库,如 Maven 中央仓库、JBoss 远程仓库。 宿主仓库(hosted):又...

    nexus-3.7.1-02-win64.zip

    windows nexus3.7.1,jdk8,nexus3.7内置jre1.8,内置的jre在nexus第一次启动时初始化,解压zip, D:\Program Files\nexus-3.7.1-02-win64 nexus-3.7.1-02 sonatype-work (下载的文件会放到这个目录下) ...

Global site tag (gtag.js) - Google Analytics