想把 jar 包更新到私服仓库,报错: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy
maven-install-plugin:jar:2.3.1 Downloading: [http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-deploy-plugin /2.5/maven-deploy-plugin-2.5.pom](http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-deploy-plugin maven-deploy-plugin-2.5.pom) [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-deploy-plugin :2.5: Plugin org.apache.maven.plugins:maven-deploy-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-deploy-plugin:jar:2.5
artifactId> <version>2.5.2</version> </plugin> <plugin> <artifactId>maven-deploy-plugin >2.5.2</version> </plugin> <plugin> <artifactId>maven-deploy-plugin >2.5.2</version> </plugin> <plugin> <artifactId>maven-deploy-plugin >2.5.2</version> </plugin> <plugin> <artifactId>maven-deploy-plugin >2.5.2</version> </plugin> <plugin> <artifactId>maven-deploy-plugin
maven-install-plugin:jar:2.3.1 Downloading: [http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-deploy-plugin /2.5/maven-deploy-plugin-2.5.pom](http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-deploy-plugin maven-deploy-plugin-2.5.pom) [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-deploy-plugin :2.5: Plugin org.apache.maven.plugins:maven-deploy-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-deploy-plugin:jar:2.5
1、deploy时报错401 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy </repositories> 2、deploy过程中返回400 报错信息如下: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin
以下为未设定情况下的错误提示信息示例 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2: SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-deploy-plugin SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-deploy-plugin - spring-boot-maven-plugin:2.0.6.RELEASE:repackage (default) @ springbootdemo --- [INFO] [INFO] --- maven-deploy-plugin --------------------- ~/demo # 从Nexus上也可以看到二进制制品上传的结果,详细如下图所示 参考内容 http://maven.apache.org/plugins/maven-deploy-plugin
mvn clean deploy , 想把本地代码 打包并推送到私服 ,报错: [ERROR] Failed to execute goal org.apache.maven.plugins: maven-deploy-plugin
maven-surefire-plugin:testCompile package maven-jar-plugin:jar install maven-install-plugin:install deploy maven-deploy-plugin
maven-surefire-plugin:testCompile package maven-jar-plugin:jar install maven-install-plugin:install deploy maven-deploy-plugin
artifactId> <version>2.5.2</version> </plugin> <plugin> <artifactId>maven-deploy-plugin
接下来,我们需要使用maven-deploy-plugin指定将打好的包部署到刚刚我们指定的local仓库中。 <plugin> <artifactId>maven-deploy-plugin</artifactId> <version>2.8.2</version
大家在IDEA里下载maven插件如果遇到如下的问题,可以参考本文,本人亲测有效 Cannot resolve plugin org.apache.maven.plugins:maven-deploy-plugin
想把本地工程推送到 个人私服,执行命令:mvn deploy 报错: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin
artifactId> <version>2.5.2</version> </plugin> <plugin> <artifactId>maven-deploy-plugin
另外,上面如果需要配置生效,maven-deploy-plugin 的版本需要在 2.8.0 之上。
另外,上面如果需要配置生效,maven-deploy-plugin 的版本需要在 2.8.0 之上。
没有配置server的账号和密码(settings.xml) 参数漏掉了-DrepositoryId=maibao-snapshot 参考 https://maven.apache.org/plugins/maven-deploy-plugin
repo.xxx.com:80: Broken pipe 上述日志出现一段时间后,最后报错: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-deploy-plugin
https://maven.apache.org/plugins/maven-deploy-plugin/ https://maven.apache.org/plugins/maven-deploy-plugin