我尝试在Eclipse上使用Maven构建我的项目.第一次构建很棒.之后,我收到此错误:
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.129s
[INFO] Finished at: Wed Nov 28 17:51:35 GST 2012
[INFO] Final Memory: 2M/121M
[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
Run Code Online (Sandbox Code Playgroud)
Edw*_*uck 20
Maven是一个构建工具,但不像ant没有"默认"目标.所以当你跑步
mvn
Run Code Online (Sandbox Code Playgroud)
你没有提供足够的参数,你需要运行类似的东西
mvn test
Run Code Online (Sandbox Code Playgroud)
第二个参数指示您希望停止的构建生命周期的位置.然后Maven将每一步都运行到您指定的那一步.
一些常见的停止点
mvn compile (just compile)
mvn test (compile and run unit tests)
mvn package (compile, run unit tests, and build the distributable package)
mvn install (all of the above, and install distributable package into local repository.
Install is very useful if you need to build other packages which depend on changes
to this package)
mvn deploy (all of the above, and install package into remote (aka public) repository
for sharing with other developers)
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
76704 次 |
| 最近记录: |