Maven报错 解决方案。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
2016-09-12 20:31
1036 查看
报错:
[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,
解决方式:
打开pom.xml 在build节点中 增加
<defaultGoal>compile</defaultGoal>
[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,
解决方式:
打开pom.xml 在build节点中 增加
<defaultGoal>compile</defaultGoal>
... <build> <defaultGoal>compile</defaultGoal> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.12.3</version> <configuration> <groups>unit</groups> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.0</version> <configuration> <verbose>true</verbose> <fork>true</fork> <compilerVersion>1.5</compilerVersion> </configuration> </plugin> </plugins> </build> </project>
相关文章推荐
- HDU 5869 Different GCD Subarray Query
- vue.js入门
- ArrayDeque集合的妙用
- NanoApe Loves Sequence(求最大值的期望)
- cell的高度自适应cell里lable的高度
- NanoApe Loves Sequence Ⅱ(尺取法)
- hdu5869 Different GCD Subarray Query(rmq+树状数组+gcd)
- 放肆的使用UIBezierPath和CAShapeLayer画各种图形(含仿微信视频眼镜Demo)
- Andorid中UI控件的详细介绍(四)——EditText
- HDU 5869 Different GCD Subarray Query 离线+树状数组
- UITextView的使用详解
- UIButton中setTitleEdgeInsets和setImageEdgeInsets的使用
- easyui 里 table 的 form提交后台获取的值全为null
- UILable 中文加上英文或者其他非中文字符自动换行的问题
- 关于LeetCode中Implement Stack using Queues一题的理解
- 第 8 章 Jenkins – 设置Build Job
- UIScrollViewDelegate-代理API详解
- amazeui/swiper大法
- #266 – 指定FontSize的值(Specifying Values for FontSize)
- 解决aapt "finished with non-zero exit value 1"问题