0

次の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>

正常に動作し、Web プロジェクトはhttp://localhost:8080/my-web-project/経由で起動されます

しかし、JBoss AS 管理コンソール ( http://localhost:8080/admin-console/ )にはその痕跡はありません。

正常ですか?

前もって感謝します

4

1 に答える 1

0

Cargo を使用した JBoss AS でのリモート展開は、長い間部分的にしかサポートされていませんでした。これが問題を説明している可能性があります。これは、Cargo 1.0.3 で修正されたCARGO-416に記録されました。

そのため、Cargo 1.0.3 の時点で、JBoss でのリモート デプロイメントが完全にサポートされるようになり、専用のJBoss Remote Deployer wiki ページに記載されています。試してみる。

于 2010-08-27T20:37:53.870 に答える