How to do websphere 7 deployment automation using maven?
Asked Answered
M

2

6

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 ?

Membranous answered 8/8, 2012 at 19:41 Comment(0)
C
3

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 ;)

Campaign answered 9/8, 2012 at 7:53 Comment(1)
Open the cargo plugin link into Google chrome, and convert it from french !Elate
P
2

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>
Pedicle answered 6/9, 2013 at 19:13 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.