我在Git存储库https://github.com/engincanhoke/springboot-helloworld中有一个pom.xml
。我也在尝试与詹金斯一起部署。
我正在使用带有CentOS 7的Google Cloud Platform实例,并在其中安装了Jenkins。在詹金斯,我创建了一个新的Maven项目。我选择了GitHub项目,还放置了链接源代码管理。当我点击Build now
时,我得到的是:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project helloworld: Deployment failed: repository element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter -> [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. [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