GlassFih 4.1 和 Cargo 存在以下问题。
我尝试在远程 GlassFish 4.1 服务器上部署耳朵。没有成功... Maven 命令: mvn cargo:redeploy Glassfish 服务器占用 100% 的 CPU,仅此而已。Maven 进程仍然被阻止......我已经在远程 ubuntu 和远程 Windows 服务器上尝试过。
在具有 Glassfish 3.1.2.2 的同一远程服务器上,远程部署可以完美运行。
有没有人遇到同样的问题,并找到了解决方案?
我猜下面的货物配置没问题,因为它适用于 GF 3.1.2.2(部署客户端版本为 3.1.2.2,containerId 为 glassfish3x)。
<build>
<plugins>
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>1.4.10</version>
<executions>
<execution>
<id>glassfish-deploy</id>
<phase>pre-integration-test</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
<configuration>
<container>
<containerId>glassfish4x</containerId>
<type>remote</type>
<log>target/cargo.log</log>
<logLevel>debug</logLevel>
</container>
<configuration>
<type>runtime</type>
<properties>
<cargo.hostname>servername</cargo.hostname>
<cargo.rmi.port>4848</cargo.rmi.port>
<cargo.remote.port>8080</cargo.remote.port> <cargo.glassfish.domain.name>domain1</cargo.glassfish.domain.name>
<cargo.runtime.args>force=true</cargo.runtime.args>
<cargo.protocol>https</cargo.protocol>
<cargo.remote.username>admin</cargo.remote.username>
<cargo.remote.password>admin</cargo.remote.password>
</properties>
</configuration>
<deployables>
<deployable>
<location>${project.build.directory}/${project.build.finalName}.${project.packaging}</location>
<properties>
<name>${project.groupId}-${project.artifactId}-autodeploy</name>
</properties>
<type>ear</type>
</deployable>
</deployables>
</configuration>
<dependencies>
<dependency>
<groupId>org.glassfish.main.deployment</groupId>
<artifactId>deployment-client</artifactId>
<version>4.1</version>
</dependency>
</dependencies>
</plugin>
</plugins>