maven - Maven安装插件
问题描述
[INFO] `Scanning for projects`...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] `Building MVNDEMO 0.0.1-SNAPSHOT`
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] `BUILD FAILURE`
[INFO] ------------------------------------------------------------------------
[INFO] `Total time: 0.099 s
[INFO] Finished at: 2019-04-25T12:29:22+05:30
[INFO] Final Memory: 5M/123M`
[INFO] ------------------------------------------------------------------------
[ERROR] Unknown lifecycle phase "testcases". 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]
解决方案
你调用了类似的东西mvn testcases
,这不是一个有效的 Maven 阶段。
如果要构建,请使用mvn clean install
.
推荐阅读
- node.js - 更新 npm:找不到模块 'y18n' npm ERR?
- angular - 当一个承诺被解决时,如何为这个数据属性给定值编写一个单元测试?
- javascript - Tensorflow.js 使用节点保存模型
- javascript - Change SRC of a video using JS or PHP = MediaElementJS
- clojure - 使用我自己的格式化函数和 `log4-clj-format`
- angularjs - 如何在Angular JS的选择更改方法中仅获取没有索引的值?
- networking - Flutter/Dart:列出本地网络上的设备
- python - Python - While loop should return string
- html - How to make wrapped text's background span exactly across the pixel distance of that text?
- firebase - Can a user's Firebase device ID key be used by multiple Firebase service providers?