我在部署构件至 maven nexus 私服时,有时会出现 Failed to deploy artifacts: Failed to transfer file: ... Return code is: 4XX, ReasonPhrase: ... 类似这样的错误,那么这些错误是怎么产生,又如何解决呢?我在此将自己在部署过程中遇到的错误整理汇总一下,供大家参阅,希望对大家有所帮助. 一.错误的请求.Return code is: 400, ReasonPhrase: Bad Request.…
1.今天 mvn install 后把 jar 包部署到服务器上,执行 java -jar xx.jar 报 "no main manifest attribute,in xx.jar" 解决办法:在pom.xml中添加下面配置 <build> <pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <…
今天把一个去年没做完的项目翻出来做时,发现maven无法正常导入依赖.检查了一遍项目配置,没发现有什么问题.而且依赖在本地仓库存在. 随后发现报错:Failed to transfer file:*********. Return code is: 501 , ReasonPhrase:HTTPS Required. 这时候好像发现了什么重点————我们需要将maven配置修改一下: <!-- 中央仓库1 --> <mirror> <id>repo1</id>…
使用idea的maven进行deploy操作失败,报错: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:- from/to snapshots (http://XXX:8081/nexus/content/repositories/snapshots): Failed to transfer file http://nexus.dmall.com:8081/nexus/content/repositorie…
Maven仓库搭建--nexus私服(Linux环境) Maven仓库简介 Maven仓库分为本地仓库.远程仓库.私服.本文重点介绍私服的使用方法. 下载安装包 网址:http://www.sonatype.org/nexus/go/ 注意:其中的pro版本是专业版本,我们使用OSS开源版本即可 安装nexus 下载完nexus安装包解压完后,解压完即可. 启动服务 进入bin目录,输入命令:./nexus.显示如下选项:Usage: ./nexus {console | start | sto…
今天在将一个maven组件由SNAPSHORT升级为正式版本1.0.0,然后执行发布: mvn clean deploy -pl ielong-common -am -DskipTests, 报错:Return code is: 400, ReasonPhrase: Repository does not allow upd ating assets: maven-releases. 经排查发现是因为重复发布导致的.maven私有仓库默认不允许重复部署. 进入maven-releases的配置界…
发布报错:Error ITMS-90635 - Invalid Mach-O in bundle - submitting to App store 昨晚上传项目到AppStore,报了这个错,纳尼!?我早上还能成功上传的,当时判断是晚上网速问题导致的,早上再次试了下,还是一样报错,因为CocoPods导入的框架bitCode不一致导致的,解决方案是在Podfile后面加上 post_install do |installer| installer.pods_project.targets.ea…
IIS发布报错一般原因 ISAPI和CGI限制作为IIS与ASP.NET的连接桥梁…
maven项目pom.xml第一行报错 这是第一行:<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd&q…
报错信息: error: RPC failed; curl transfer closed with outstanding read data remaining fatal: The remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.jav…