我正在尝试配置cargo-maven2-plugin
启动 Glassfish 4.1 的本地安装。我在 pom.xml 中配置了以下内容
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>1.4.14</version>
<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>
<configuration>
<container>
<containerId>glassfish4x</containerId>
<home>${glassfish.installDirectory}</home>
</container>
<configuration>
<type>existing</type>
</configuration>
<deployables>
<deployable>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<type>war</type>
<pingURL>${web.app.url}</pingURL>
</deployable>
</deployables>
</configuration>
</plugin>
但它失败了以下
无法在项目 UsersJSFMavenApplication 上执行目标 org.codehaus.cargo:cargo-maven2-plugin:1.4.14:start (start-container):执行目标 org.codehaus.cargo:cargo-maven2-plugin:1.4 的启动容器。 14:启动失败:无法创建配置。参数没有注册配置(容器 [id = [glassfish4x],类型 = [已安装]],配置类型 [现有])。实际上没有为此配置注册的有效类型。也许你拼错了?-> [帮助 1]
有任何想法吗?