Reputation: 6059
Hi all
Our Maven scripts are currently written to compile/package & deploy in tomcat6 (development) server. This helped us in automating the build-deploy process.
Moving forward, we want to do automated deployments into WAS7 (Websphere 7) server using MAVEN scripts. Few articles which i read talks about invoking ANT Tasks that could perform deployment to websphere.
Could anybody share maven scripts/tags for the same ?
Upvotes: 7
Views: 15118
Reputation: 29
You can use this plugin http://code.google.com/p/websphere-maven-plugin/
<plugin>
<groupId>Websphere7AM.plugin</groupId>
<artifactId>websphere7am-maven-plugin</artifactId>
<version>1.0.0</version>
<configuration>
<defaultCommand>
<host>localhost</host>
<port>8880</port>
</defaultCommand>
<commands>
<command>
<command>INSTALL</command>
<appName>My Application</appName>
<earFile>myapp.ear</earFile>
<target>WebSphere:cell=myhostNode01Cell,node=myhostNode01,server=server1</target>
<description>Install my app</description>
</command>
</commands>
</configuration>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>was</goal>
</goals>
</execution>
</executions>
</plugin>
Upvotes: 2
Reputation: 5677
I don't know if that works for WAS 7, but IBM provide support for WAS 6 and Maven integration :
A (famous) French IT consulting company list compatibilities with the well known Cargo plugin, that allow remote control on servers : http://blog.xebia.fr/2008/11/05/lintegration-continue-avec-cargo/. But as you can see (even you don't understand french ;D), Websphere is not yes well supported.
It won't probably help you, but the main idea is Maven and WAS 7 integration will probably more painful for you that other servers ;)
Upvotes: 3