我正在将我们的项目升级到wildfly12和Java 8,但不确定为什么会出现此异常。搜索了一些答案,但没有找到很多答案。有人可以解释一下它们的含义以及如何解决它们。我尝试删除/ org / codehaus / cargo并尝试再次下载依赖项,仍然显示相同的错误
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution start-container of goal org.codehaus.cargo:cargo-maven2-plugin:1.6.8:start failed: Cannot create configuration. There's no registered configuration for the parameters (container [id = [wildfly12x], type = [installed]], configuration type [standalone]). Actually there are no valid types registered for this configuration. Maybe you've made a mistake spelling it?
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:148)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:954)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
pom.xml
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>1.6.8</version>
<configuration>
<container>
<dependencies>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
</dependency>
</dependencies>
<containerId>wildfly12x</containerId>
<timeout>150000</timeout>
<artifactInstaller>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-dist</artifactId>
<version>12.0.0.Final</version>
<type>zip</type>
</artifactInstaller>
<log>${project.build.directory}/cargo/cargo.log</log>
<systemProperties>
<config.dir>${project.build.directory}/cargo</config.dir>
</systemProperties>
</container>
<deployables>
<deployable>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<classifier>mock</classifier>
<type>war</type>
<properties>
<context>${XXX.service.context}</context>
</properties>
<location>${project.build.directory}/${project.artifactId}-${project.version}-mock.war
</location>
<pingURL>${XXX.service.url}</pingURL>
<pingTimeout>120000</pingTimeout>
</deployable>
</deployables>
<configuration>
<type>standalone</type>
<properties>
<cargo.servlet.port>${XXX.service.port}</cargo.servlet.port>
<!-- Not sure why port offset stopped working with wildfly -->
<cargo.jboss.management-http.port>11312</cargo.jboss.management-http.port>
<cargo.jboss.ajp.port>11314</cargo.jboss.ajp.port>
<!--<cargo.logging>high</cargo.logging>-->
<cargo.jvmargs>-Xmx1024m -Xdebug
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5006 -Xnoagent
-Djava.compiler=NONE
-Djava.net.preferIPv4Stack=true
</cargo.jvmargs>
</properties>
</configuration>
</configuration>
<executions>
<execution>
<id>start-container</id>
<phase>pre-integration-test</phase>
<goals>
<goal>start</goal>
</goals>
</execution>
<execution>
<id>stop-container</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
</plugin>