I guess I should clarify. I'm looking to use Maven not just for deploying the war file but for compilation and dependency management as well. We are getting to the point where the built in WSOP don't really work for us (custom objects, etc) and it is easier to just use things such as Jersey/Jackson for consuming web services, and likewise much easier to use Maven to manage those dependencies instead of manually downloading JARs adding to classpath, etc.
When I use your method I am able to create an exported war file, but using application simulator does not allow for complete compilation since the required jars are not available.
Sep 06, 2017 12:17:12 PM org.apache.catalina.core.ApplicationContext log
INFO: Marking servlet ValidateServiceability-callServiceJersey as unavailable
Sep 06, 2017 12:17:12 PM org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Allocate exception for servlet ValidateServiceability-callServiceJersey
java.lang.Error: Unresolved compilation problems:
The import com.sun.jersey cannot be resolved
This is the pom I am currently using, but I believe what needs to happen is that the app simulator needs to trigger the maven build.
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>Prepaid</groupId>
<artifactId>Prepaid</artifactId>
<version>1.0.0-SNAPSHOT</version>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<phase>install</phase>
<configuration>
<tasks>
<ant antfile="C:\Users\mnorma001\Box Sync\My Documents\AvayaAnt\build.xml" dir="." target="deploy.project.war" />
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>serilogj</groupId>
<artifactId>serilogj</artifactId>
<version>0.3</version>
</dependency>
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-client</artifactId>
<version>1.19.4</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.8.9</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.8.9</version>
</dependency>
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-annotations</artifactId>
<version>1.5.16</version>
</dependency>
</dependencies>
</project>