jenkins 搭建过程中遇到的问题

时间:2022-11-22 16:34:50

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、