nexus

Failed to resolve artifact when I run “mvn deploy site-deploy” but works fine if I split the command “mvn deploy” and then “mvn site-deploy”

ε祈祈猫儿з 提交于 2020-01-24 01:41:12
问题 Build fails when I run mvn deploy site-deploy . But works fine when I split the command. i.e., First, mvn deploy and then mvn site-deploy . All these years we were using the command mvn deploy site-deploy to perform our builds. We recently migrated to Sonatype Nexus repository and our very first build would fail. We are using Maven 2.2.1 and Sonatype Nexus 2.7.2. maven.site.plugin 2.1.1 and wagon-webdav-jackrabbit 2.5 in our pom file. Any advice or input is highly appreciated. Thank you!!! :)

maven私服搭建

爱⌒轻易说出口 提交于 2020-01-23 23:48:41
maven私服搭建 搭建私服的工具选择 Apache基金会的archiva http://archiva.apache.org/ JFrog的Artifactory https://jfrog.com/artifactory/ Sonatype的Nexus https://my.sonatype.com/ 这些都是开源的私服软件,都可以自由使用。用的最多的是第三种Nexus,本文我们主要以这个来讲解,其他2种有兴趣的朋友可以去研究一下。 Windows10中安装Nexus私服 nexus是java开发的,所以运行的时候需要有java环境的支持。 nexus下载和版本 https://www.sonatype.com/nexus-repository-oss nexus-3.20.1-01-win64 C:\Users\jie>java -version java version "1.8.0_201" Java(TM) SE Runtime Environment (build 1.8.0_201-b09) Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode) nexus启动 nexus.exe /run D:\chengxu\nexus-3.20.1-01-win64\nexus-3.20.1-01

CentOS 1905 配置 Nexus 3.17.0-01(Yum 私库)

岁酱吖の 提交于 2020-01-23 17:57:06
Nexus 下载: https://www.sonatype.com/download-oss-sonatype 文档: https://help.sonatype.com/repomanager3 运行环境(需要 Java 8): https://help.sonatype.com/repomanager3/installation/java-runtime-environment CentOS 1905 配置 Nexus 3.17.0-01(Maven 私库) Nexus 安装配置参见: CentOS 1905 配置 Nexus 3.17.0-01(Maven 私库) 新建 Yum 代理仓库,如图所示进行点击: 点击 yum (proxy): 填写相关配置: http://mirrors.aliyun.com/centos/ 新建 yum 公共仓库组: 下载 阿里云yum源配置文件: http://mirrors.aliyun.com/repo/Centos-7.repo 原文件如下: # CentOS-Base.repo # # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that

Whats the difference between Nexus and SVN?

我只是一个虾纸丫 提交于 2020-01-23 15:22:46
问题 Both SVN and Nexus are widely used as repository for source code during development and integration. That said, why do we really need to use Nexus when we can have our repos set up via SVN? Even SVN has a proper version control schema and its widely acclaimed. Skimmed through google , but nothing seems to provide a clear difference. Please clarify me. 回答1: Imagine an automobile factory. In go blueprints like this, out comes a vehicle like this. SVN is like the filing cabinet where you store

setting.xml

一笑奈何 提交于 2020-01-22 10:06:38
<?xml version="1.0" ?> <settings> <mirrors> <mirror> <!--This sends everything else to /public --> <id>nexus</id> <mirrorOf>external:*</mirrorOf> <!-- <url>http://maven.aliyun.com/nexus/content/groups/public</url> --> <url> http://maven.aliyun.com/nexus/content/groups/public/</url> </mirror> </mirrors> <servers> <server> <id>nexus</id> <username>admin</username> <password>admin123</password> </server> </servers> <profiles> <profile> <id>nexus</id> <!--Enable snapshots for the built in central repo to direct --> <!--all requests to nexus via the mirror --> <repositories> <repository> <id

Nexus私服使Maven更加强大

我们两清 提交于 2020-01-22 01:32:02
前边简单介绍了 Maven , 而 Maven 默认提供的中央仓库是在远程网络服务 Appache 提供的,这对于我们开发时不合理的。如果我们没网了或者什么情况,我们怎么办?也就是说我们队中央仓库的依赖性太大。而 Nexus 私服则可以解决我们这个问题。先看下这张图应该大家就非才明白了: 这样就相当于在我们本地的局域网搭建了一个类似中央仓库的服务器,我们开始将中央仓库的一些资料下载到私服务器上,然后平时我们的 maven 项目就是直接访问局域网内的私服即可,既节省了网络带宽也会加速项目搭建的进程,这样对我们开发来说,对公司来说都是非常好的选择。下边简单看一下Nexus私服的简单使用: 1、Nexus下载 下载地址: http://www.sonatype.org/nexus/go 2、Nexus启动 我下载的是zip包,解压后进入\nexus-2.1.2-bundle\nexus-2.1.2\bin\jsw\,根据 操作系统 类型选择文件夹,我选的是windows-x86-32文件夹,进入后可看到如下所示bat文件。 双击console-nexus.bat运行。游览器中输入http://127.0.0.1:8081/nexus/,出现如下图所示就代表nexus已经启动成功。 8081为默认的端口号,要修改端口号可进入nexus-2.1.2-bundle\nexus-2.1.2

maven deploy到nexus报错:Return code is: 401, ReasonPhrase:Unauthorized

…衆ロ難τιáo~ 提交于 2020-01-19 16:42:29
今天想把一个写好的工具jar 打包到 nexus 上去 但是第一用 不是很熟悉 检出 出现错误 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project sms: Failed to deploy artifacts: Could not transfer artifact com.wjl:sms:jar:1.0.0 from/to releases (http://192.168.3.7:8081/nexus/content/repositories/thirdparty/): Failed to transfer file: http://192.168.3.7:8081/nexus/content/repositories/thirdparty/com/wjl/sms/1.0.0/sms-1.0.0.jar. Return code is: 401, ReasonPhrase: Unauthorized. -> [Help 1] 错误原因:未添加到检出私服的的认证 idea 中 File - - > settings ---> maven 到该目录下进行修改文件 在servers 标签下添加如下

maven使用阿里云镜像

巧了我就是萌 提交于 2020-01-17 12:37:10
1.pom文件添加 <repositories> <repository> <id>nexus-aliyun</id> <name>nexus-aliyun</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository> </repositories> 2.设置本地setting文件 <mirror> <!--This sends everything else to /public --> <id>nexus-aliyun</id> <mirrorOf>*</mirrorOf> <name>Nexus aliyun</name> <url>http://maven.aliyun.com/nexus/content/groups/public</url> </mirror> 参照maven中无法下载依赖 https://www.jianshu.com/p/7861c6f2b517 来源: https://www.cnblogs.com/dylan-thomas/p/12204758

Maven私服

喜你入骨 提交于 2020-01-17 01:47:21
nexus下载 下载地址:http://www.sonatype.org/nexus/archived/ 下载后解压nexus-2.12.0-01-bundle.zip 可以将nexus-2.12.0-01理解成是一个tomcat 将sonatype-work理解成是一个web项目。 Nexus安装 可以在服务中查询 启动服务,可以访问http://localhost:8081/nexus/ 默认用户名:admin 默认的密码:admin123 关于私服仓库类型 1.hosted,宿主仓库,部署自己的jar到这个类型的仓库,包括releases/正式版和snapshot/测试版两部分,Releases公司内部发布版本仓库、 Snapshots 公司内部测试版本仓库 2.proxy,代理仓库,用于代理远程的公共仓库,如maven中央仓库,用户连接私服,私服自动去中央仓库下载jar包或者插件。 3.group,仓库组,用来合并多个hosted/proxy仓库,通常我们配置自己的maven连接仓库组。 4.virtual(虚拟):兼容Maven1 版本的jar或者插件 向私服上传 1.在maven的settings.xml文件中配置 <server> <id>releases</id> <username>admin</username> <password>admin123<

使用nexus搭建docker register仓库

ⅰ亾dé卋堺 提交于 2020-01-16 11:37:53
什么是nexus? nexus是一个强大的私库管理平台。在没有私有仓库的时候,我们镜像提交只能提交公网,会造成公网带宽。 并且我们有一些私有的镜像和maven包不想放到公网。也不好处理。 我们使用一条命令快速搭建nexux docker run -d --net host --name nexus sonatype/nexus3 启动之后我们就可以通过http://localhost:8081 访问。 默认账号密码为admin/admin123 创建docker repository 按照下图找到create repository的地方,点击创建后选择docker(hosted)类型。 输入Name和http port地址后,点击创建后,就完成了repository的创建。 代理docker repository 因为安全原因,docker push/pull的时候必须使用https协议,使用nexus也可以配置https,但是比较麻烦。这里我选择使用ngin代理一下使用Nexus构建的docker repository。nginx配置如下:(ssl签名使用的自签名证书) docker login https://registry-nexus.qa.jr.ly.com:8443 因为是使用的自签名,所以dockerd服务并不认可,登录会包报错,解决方法如下: 处理自签名证书问题