首页新闻找找看学习计划

maven编译报错,求大神指导

0
[待解决问题]

[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.tujia.tns.AutoTest:Demo:jar:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for com.lazerycode.jmeter:jmeter-analysis-maven-plugin is missing. @ line 105, column 21
[WARNING] 'build.plugins.plugin.version' for com.lazerycode.jmeter:jmeter-maven-plugin is missing. @ line 74, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.078 s
[INFO] Finished at: 2018-05-29T15:49:52+08:00
[INFO] Final Memory: 8M/184M
[INFO] ------------------------------------------------------------------------
[ERROR] No goals have been specified for this build. 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]
[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/NoGoalSpecifiedException

happy2017的主页 happy2017 | 菜鸟二级 | 园豆:204
提问于:2018-05-29 16:08
< >
分享
所有回答(1)
1

在pom.xml 在build节点中 增加 

<defaultGoal>compile</defaultGoal>
ycyzharry | 园豆:18380 (专家六级) | 2018-05-29 19:13
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册