jenkins 搭建过程中遇到的问题

1[ERROR] Unknown lifecycle phase "mvn". You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1]

问题分析:jenkins配置里的Bulid->Goals and options命令输入的mvn clean install  -e -Dmaven.test.skip=true   mvn没有定义生命周期  怎么定义生命周期待研究

解决方案:jenkins配置里的Bulid->Goals and options 命令去掉mvn 或者命令中加参数定义生命周期(待研究)

2、

posted @ 2016-12-23 15:11  飘飘雪  阅读(3682)  评论(0编辑  收藏  举报