Deploy a web-application on Websphere 8.5 using maven 3

Mosen  picture Mosen · Feb 11, 2013 · Viewed 23.9k times · Source

I´m trying to make a Maven Project from an existing web application using JSF. The Project should be deployed on Web Sphere 8.5.

Since i'm new to Web Sphere, don´t know how to build the "ear" Module, in order to be deployable on Web Sphere 8.5.

Does anyone know, where i can find further Information about deploying a web application on Web Sphere 8.5 using Maven 3.0.3?

Thanking you in anticipation, Mosen

Answer

Carlos Gavidia-Calderon picture Carlos Gavidia-Calderon · Feb 12, 2013

I've never worked with WebSphere Application Server 8.5; but in the days I was playing with IBM WAS 6.1 the WAS6 Maven plugin worked pretty well (it seems it works with WAS7 too). Here's a POM fragment from the plugin site that allows automatic EAR deployment:

<plugin>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>was6-maven-plugin</artifactId>
  <version>1.2</version>
  <executions>
    <execution>
      <id>integration-test</id>
      <phase>integration-test</phase>
      <goals>
        <goal>installApp</goal>
      </goals>
    </execution>
  </executions>
  <configuration>
    <wasHome>${was61home}</wasHome>
    <host>deploymentmanager.your.domain</host>
    <username>admin</username>
    <password>adminpassword</password>
    <targetCluster>nameOfCluster</targetCluster>
    <profileName>Dmgr01</profileName>
    <conntype>SOAP</conntype>
    <port>8879</port>
    <verbose>true</verbose>
    <updateExisting>false</updateExisting>
  </configuration>
</plugin>

That plugin is for deployment and other administrative task, for EAR generation you can use the Maven EAR Plugin as described in 20InchMovement answer.