mvn报错:No goals have been specified for this build
来源:互联网 发布:数据库系统实现 公开课 编辑:程序博客网 时间:2024/06/04 18:25
选择【Run As】-【Maven build】的时候,报:
[INFO] Scanning for projects…[INFO]
[INFO] BUILD FAILURE[INFO]
[INFO] Total time: 0.109s[INFO] Finished at: Wed Apr 13 11:04:20 CST 2011[INFO] Final Memory: 1M/4M[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-site, site, post-site, site-deploy,
pre-clean, clean, post-clean. -> [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
eclipse安装的maven插件是m2eclipse,在控制台使用命令mvn compile并未报错。后在pom.xml文件<build>标签后面加上<defaultGoal>compile</defaultGoal>即可。
其实使用命令行时就已经指定了phase,而使用m2eclipse的【Run As】-【Maven build】时并未为其指定goal或phase,所以才报这个错误。
@import url(http://www.blogjava.net/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);- mvn报错:No goals have been specified for this build
- Maven: mvn -X 执行报错:No goals have been specified for this build.
- 使用myeclipse构建maven项目报错:No goals have been specified for this build
- 运行mvn提示错误No goals have been specified for this build
- maven在myeclipse下运行mvn出现 No goals have been specified for this build.
- Maven:No goals have been specified for this build
- No goals have been specified for this build
- No goals have been specified for this build
- Maven报错 解决方案。ERROR: No goals have been specified for this build. You must specify a valid lifecycle
- maven build 失败信息(No goals have been specified for this build)
- Maven工程报错:No goals have been specified for this build. You must specify a valid lifecycle phase or a
- 运行Maven是报错:No goals have been specified for this build(转)
- 运行Maven是报错:No goals have been specified for this build
- isis simple 运行Maven是报错: No goals have been specified for this build.
- 运行Maven是报错:No goals have been specified for this build
- 运行Maven是报错:No goals have been specified for this build
- 运行Maven是报错:No goals have been specified for this build .
- 运行Maven是报错:No goals have been specified for this build
- Longest Substring Without Repeating Characters
- 整理了一个多数据库通用操作类
- Sublime设置特殊缩进
- Git Push 避免用户名和密码方法
- SQL Server 2008 R2数据库镜像部署
- mvn报错:No goals have been specified for this build
- fedora20 安装搜狗输入法及各种问题的解决
- Flynn Architecture Note
- Java 并发编程之线程安全性
- play!的一个恶心异常
- 通过注册表获得操作系统语言设置
- shell 与 export命令
- C++做HTTP服务应用 在Socket套接字中对HTTP头的处理
- POJ 1258 Agri-Net