我正在使用以下POM配置
将战争部署到远程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>
工作正常,网络项目通过http://localhost:8080/my-web-project/
启动但JBoss AS管理控制台(http://localhost:8080/admin-console/)
中没有任何痕迹这是正常的吗?
提前致谢
答案 0 :(得分:0)
使用Cargo的JBoss AS上的远程部署在很长一段时间内只得到部分支持,这可能解释了这个问题。这记录在 CARGO-416 中,已在Cargo 1.0.3中修复。
因此,从Cargo 1.0.3开始,现在应该完全支持JBoss上的远程部署,并在专用的JBoss Remote Deployer wiki页面中进行记录。试一试。