在maven2下面编译运行非常正常的项目,到了maven3下面做release:deploy的时候报如下错误:
[INFO] [INFO] ------------------------------------------------------------------------ [INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project xxx: Failed to deploy artifacts/metadata: No connector available to access repository my_repository (scp://maven@build01.mysite.com/home/maven/repo) of type default using the available factories WagonRepositoryConnectorFactory -> [Help 1] [INFO] [ERROR]
原来在maven3里面,必须加载适当的extension 才能完成deploy.
我的distribution repository定义如下:
<distributionManagement> <repository> <id>my_repository</id> <name>Repository</name> <url>scp://maven@build01.mysite.com/home/maven/repo</url> </repository> </distributionManagement>
我使用了scp的部署方式,那么就应当增加如下的配置:
</plugins> <extensions> <extension> <groupId>org.apache.maven.wagon</groupId> <artifactId>wagon-ssh</artifactId> <version>2.4</version> </extension> </extensions> </build>
相关推荐
maven-deploy-plugin-2.8.2.jar
maven-deploy-plugin-2.7.jar
maven-deploy-plugin-2.4.jar
maven-deploy-plugin-2.0.jar
maven-deploy-plugin-2.5.jar
maven : deploy程序包用来快速上传第三方jar包提交成功后会自动生成deploy_config.txt保存url和仓库标识
主要介绍了关于maven打包时的报错: Return code is: 501 , ReasonPhrase:HTTPS Required,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧
下面小编就为大家分享一篇解决maven启动Spring项目报错的问题,具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧
Maven deploy到 nexus(csdn)————程序
主要介绍了Maven deploy配置方法详解,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧
官方离线安装包,测试可用。请使用rpm -ivh [rpm完整包名] 进行安装
maven-deploy-plugin-2.3.jar
maven-deploy-plugin-2.2.jar
maven-deploy-plugin-2.1.jar
maven-deploy-plugin-2.2.1.jar
maven-deploy-plugin-1.3.jar
maven-deploy-plugin-0.1.jar
maven-deploy-plugin-1.0.jar
maven-deploy-plugin-1.2.jar
主要介绍了Java MAVEN 工程pom配置报错解决方案,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友可以参考下