I am trying to build an EAR file - Which can be deployed in IBM websphere server. This is an existing struts appliation, i am trying to mavenize it. This project contains two folders
1. web
2. webEAR
web is actually for war file and webEAR folder for the EAR file, web
contains all the code, and webEAR
is a kind of a wrapper.
Steps I have already done are below
- IDE - Eclipse
- Java version - 1.7
- Convereted both web and webEAR to Maven - (Configure to Maven)
- edited the POM.XML like below
<modelVersion>4.0.0</modelVersion>
<groupId>com.comp.web</groupId>
<artifactId>web</artifactId>
<version>0.0.1</version>
<packaging>war</packaging>
<name>WEB</name>
<description>WEB</description>
added all relevant jar files - which are in lib folder as below (sample)
<dependency>
<groupId>jarfile</groupId>
<artifactId>com.ibm.jar</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${basedir}/WebContent/WEBINF/lib/com.ibm.jarfile.jar</systemPat>
</dependency>
Now i dont have any errors in the eclipse, and I can run the application by right clicking the webEAR folder -> Run in Server, It works.
but I am not sure, how to create a EAR file , which has the war file, so that I can deploy in the WAS server dev environment.
Can someone show me a way I can do this. currently there is no POM.xml
in the webEAR
maven folder
P.S - I am not a Java developer. This is a first maven related project I am assigned to. I appreciate any help