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

时间:2015-03-29 19:22:47

标签: plugins apache-camel message-queue

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

$ 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$1.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

如何解决此问题?

1 个答案:

答案 0 :(得分:1)

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