jenkins构建maven项目报错global.repo.snapshots.url

原创

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project strx-parent: Failed to deploy artifacts/metadata: Cannot access ${global.repo.snapshots.url} with type default using the available connector factories: BasicRepositoryConnectorFactory: Cannot access ${global.repo.snapshots.url} using the registered transporter factories: WagonTransporterFactory: Unsupported transport protocol -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
Waiting for Jenkins to finish collecting data[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

 

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

在顶层pom文件中缺少global.repo.snapshots.url 参数,配置上参数就好了,暂时还没有找到使用global.repo.snapshots.url的pom文件,没太搞懂。

猜测是本身项目框架的要求。

 

正文到此结束