Maven deploy ear or war on Jboss server

Započeo maxogm, 22.04.2011, 11:50

prethodna tema - sledeća tema

maxogm

Just add maven plugin:


<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jboss-maven-plugin</artifactId>
<version>1.4.1</version>
<configuration>
<jbossHome>c:/java/servers/jboss-6.0.0-M2</jbossHome>
<serverName>default</serverName>
<fileNames>
<fileName>${basedir}/target/ccms-1.0-SNAPSHOT-bin.ear</fileName>
</fileNames>
</configuration>
<executions>
<execution>
<phase>post-integration-test</phase>
<goals>
<goal>redeploy</goal>
</goals>
</execution>
</executions>
</plugin>


Using jboss-maven-plugin you may periodically deploy new version of your application on server.