Maven 2 通过cargo-maven2-plugin在JBoss中部署war无法通过JBoss作为管理控制台访问

Maven 2 通过cargo-maven2-plugin在JBoss中部署war无法通过JBoss作为管理控制台访问,maven-2,jboss,jboss5.x,cargo,maven-cargo,Maven 2,Jboss,Jboss5.x,Cargo,Maven Cargo,我正在使用以下POM配置将war部署到远程JBoss 5.1.0 <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>1.0.2</version> <configuration>

我正在使用以下POM配置将war部署到远程JBoss 5.1.0

<plugin>
        <groupId>org.codehaus.cargo</groupId>
        <artifactId>cargo-maven2-plugin</artifactId>
        <version>1.0.2</version>
        <configuration>
            <container>
                <containerId>jboss51x</containerId>
                <type>remote</type>
            </container>
            <configuration>
                <type>runtime</type>
                <properties>
                    <cargo.hostname>localhost</cargo.hostname>
                    <cargo.remote.username>****</cargo.remote.username>
                    <cargo.remote.password>****</cargo.remote.password>
                </properties>
            </configuration>
            <deployer>
                <type>remote</type>
                <deployables>
                  <deployable>
                    <groupId>${project.groupId}</groupId>
                    <artifactId>${project.artifactId}</artifactId>
                    <type>war</type>
                    <properties>
                        <context>/${project.artifactId}</context>
                    </properties>
                  </deployable>
                </deployables>
            </deployer>
        </configuration>
        <executions>
                <execution>
                    <id>start-container</id>
                    <phase>pre-integration-test</phase>
                    <goals>
                        <goal>deployer-deploy</goal>
                    </goals>
                </execution>
                <execution>
                    <id>stop-container</id>
                    <phase>post-integration-test</phase>
                    <goals>
                        <goal>deployer-undeploy</goal>
                    </goals>
                </execution>
                <execution>
                    <id>verify-deploy</id>
                    <phase>install</phase>
                    <goals>
                        <goal>deployer-deploy</goal>
                    </goals>
                </execution> 
                <execution>
                    <id>clean-undeploy</id>
                    <phase>pre-clean</phase>
                    <goals>
                        <goal>deployer-undeploy</goal>
                    </goals>
                </execution> 
            </executions>
      </plugin>
它运行良好,web项目通过

但是在JBoss的管理控制台中没有它的踪迹

这正常吗


提前感谢

在JBoss上的远程部署与Cargo一样,在很长一段时间内只得到了部分支持,这或许可以解释这个问题。这已登录,已在Cargo 1.0.3中修复

因此,从Cargo 1.0.3开始,JBoss上的远程部署现在应该得到完全支持,并记录在专用的wiki页面中。试试看