偶然我将 Maven JBoss 插件更新到了 1.3.2 版。之后部署静默失败,没有尝试连接 JBoss。最终我们发现版本更改并恢复到旧版本。
这是当前的配置:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jboss-maven-plugin</artifactId>
<version>1.3.1</version>
<configuration>
<serverName>default</serverName>
<hostName>localhost</hostName>
<port>8080</port>
<deployUrlPath>
/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:service%3DMainDeployer&methodName=redeploy&argType=java.net.URL&arg0=
</deployUrlPath>
<undeployUrlPath>
/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:service%3DMainDeployer&methodName=undeploy&argType=java.net.URL&arg0=
</undeployUrlPath>
<fileName>
${project.build.directory}/${project.build.finalName}.${project.packaging}
</fileName>
</configuration>
</plugin>
... 和...
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jboss-maven-plugin</artifactId>
<configuration>
<fileName>${basedir}/target/${application.name}.ear</fileName>
<server>jBoss</server>
</configuration>
<executions>
<execution>
<id>deploy</id>
<phase>pre-integration-test</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
我浏览了插件的更改列表,但没有发现任何配置更改。有什么建议么?