camelot-test-maven-plugin:找不到配置!路径=[]

camelot-test-maven-plugin: config not found! Paths=[]

我正在尝试在基于 Camelot 的多模块项目上执行 camelot-test:运行 目标,其中一个模块正在使用 camelot-test-maven-plugin:

$ mvn clean compile camelot-test:run
.... (a lot of output)
org.springframework.beans.factory.BeanInitializationException: Cannot initialize plugins system: config not found! Paths=[]
    at ru.yandex.qatools.camelot.core.impl.GenericPluginsEngine.loadConfigs(GenericPluginsEngine.java:391)[camelot-core-2.1.12.jar:]
    at ru.yandex.qatools.camelot.core.impl.GenericPluginsEngine.getConfigs(GenericPluginsEngine.java:149)[camelot-core-2.1.12.jar:]
    at ru.yandex.qatools.camelot.core.impl.GenericPluginsEngine.getPluginsMap(GenericPluginsEngine.java:231)[camelot-core-2.1.12.jar:]
    at ru.yandex.qatools.camelot.core.impl.ProcessingEngineImpl.onCamelContextStarted(ProcessingEngineImpl.java:86)[camelot-core-2.1.12.jar:]
    at org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:1987)[camel-core-2.13.2.jar:2.13.2]
    at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1851)[camel-core-2.13.2.jar:2.13.2]
    at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1683)[camel-core-2.13.2.jar:2.13.2]
    at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)[camel-core-2.13.2.jar:2.13.2]
    at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1651)[camel-core-2.13.2.jar:2.13.2]
    ...and so on and so forth

我该如何解决这个问题?

您应该直接从包含 camelot.xml 的子模块目录启动 camelot-test-maven-plugin。事实上,您不能从根模块目录使用它。这种行为对于类似的 maven 插件(如 jetty-maven-plugin)是典型的。