测试积点老人 发表于 2019-1-18 09:16:10

Jenkins 插件开发 调试运行问题 急急急!!!

不论我是执行 mvn hpi:run 还是mvn hpi:run -Djetty.port=8083或者mvn package
再或者mvn -DdownloadSources=true eclipse:eclipse 到会报下面的错误信息:
Rule 0: org.apache.maven.plugins.enforcer.RequireMavenVersion failed with message:
3.1.0 required by frontend-maven-plugin at least.
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 4.786s
Finished at: Tue Jul 03 16:55:56 CST 2018
Final Memory: 124M/389M
------------------------------------------------------------------------
Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M1:enforce (display-info) on project JenkinsPlug: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed. ->

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException已百度千百回,pom应该没有问题,应为我是直接调试的 使用 mvn archetype:generate -Dfilter=io.jenkins.archetypes:plugin 方式生成的。

qqq911 发表于 2019-1-21 10:52:13

检查下版本

jingzizx 发表于 2019-1-21 12:00:32

感觉像版本不匹配的问题

海海豚 发表于 2019-1-21 13:57:23

https://blog.csdn.net/qq_28703581/article/details/51201372参考下
页: [1]
查看完整版本: Jenkins 插件开发 调试运行问题 急急急!!!