运行Maven是报错:No goals have been specified for this build .
2015-12-21 10:01
711 查看
运行Maven的时候, pom.xml --> Run As --> Maven build 时报错如下,
Java代码
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]
解决办法代码
pom.xml文件<build>标签里面加上<defaultGoal>compile</defaultGoal>即可
<build>
<defaultGoal>compile</defaultGoal>
</build>
Java代码
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]
解决办法代码
pom.xml文件<build>标签里面加上<defaultGoal>compile</defaultGoal>即可
<build>
<defaultGoal>compile</defaultGoal>
</build>
相关文章推荐
- 【Code-First系列】 使用Fluent API进行实体映射
- easyui 动态计算两个textbox 的值
- iOS开发笔记7:Text、UI交互细节、两个动画效果等
- textbox 设置enabled=false 或是readonly=true 后,在后台无法取值的问题
- ios uiwindow 的用法
- Easy ui数据属性(当前页数,总页数,总记录数,当前记录数)
- MongoVUE
- UVA-10420 List of Conquests
- [hdu4285 circuits] 插头dp
- 8.给UILabel分段设置不同的颜色以及设置每行的间距
- 7.使用UITableView和UIDatePicker制作一个日期选择器
- Android UI-侧滑菜单
- 6.UINavigationBar添加按钮小技巧
- JS获取URL中参数值(QueryString)的4种方法分享
- 5.利用 NSNotificationCenter实现键盘弹出时页面自适应
- Chromium硬件加速渲染的UI合成过程分析
- Divide and Conquer:River Hopscotch(POJ 3258)
- 4.让UITableViewCell的背景色渐变
- 3.UITextField与UIDatePickrController的简单使用
- Android Bluetooth打开关闭