cargo-maven2-plugin执行启动容器失败

时间:2015-07-24 12:04:39

标签: java maven glassfish-4 cargo cargo-maven2-plugin

我正在尝试配置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>

但它失败了以下

  

无法执行目标   org.codehaus.cargo:cargo-maven2-plugin:1.4.14:start(start-container)   在项目UsersJSFMavenApplication:目标的执行开始容器   org.codehaus.cargo:cargo-maven2-plugin:1.4.14:启动失败:不能   创建配置。没有注册配置   参数(container [id = [glassfish4x],type = [installed]],   配置类型[现有])。实际上没有有效的类型   已注册此配置。也许你犯了一个错误   拼写吗? - &GT; [帮助1]

有什么想法吗?

0 个答案:

没有答案