未知的生命周期阶段专家 [英] Unknown lifecycle phase maven

查看:109
本文介绍了未知的生命周期阶段专家的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Maven和骆驼的新手.

I am new to maven and camel.

我尝试执行骆驼书中的示例.运行以下命令时出现此错误.

I tried executing the examples in camel book. And I am getting this error when I run the following command.

命令:

mvn test -Dtest= SpringTransformMethodTest

错误:

[ERROR] Unknown lifecycle phase "SpringTransformMethodTest". You must specify a valid lifecycle phase or a goal in the f
ormat <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle ph
ases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, proce
ss-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, ver
ify, 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.`

推荐答案

您可能在-Dtest=SpringTransformMethodTest之间有一个空格.然后将其解释为2个项目,而不是一个.

you have likely a space between -Dtest= and SpringTransformMethodTest. That's then interpreted as 2 items instead of one.

这篇关于未知的生命周期阶段专家的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆