Skip to content

Instantly share code, notes, and snippets.

@tingley
Last active August 29, 2015 13:59
Show Gist options
  • Save tingley/10493730 to your computer and use it in GitHub Desktop.
Save tingley/10493730 to your computer and use it in GitHub Desktop.
<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>com.spartansoftwareinc.samples</groupId>
<artifactId>sample-wssdk-client-component</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>Sample WorldServer Web Services Component</name>
<url>http://maven.apache.org</url>
<!-- HOW TO USE THIS
* Install your wssdk-client.jar in a local repository and update
the dependencies section (see below)
* Write your code in src/main/java
* Optionally, update the maven-shade-plugin section to include a mainClass line
* Build with 'mvn package'
-->
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<!-- Add a dependency to the WSSDK here. This is left as an
exercise for the reader. You will need to install the wssdk
jar in a local repository under a group/artifactId of your
choosing, then reference here. Use <scope>provided</scope>
in the dependency statement, since you don't need to include it
in the jar you upload to WorldServer. -->
<!-- Add any other dependencies your project has here. -->
<!-- WS SDK webservices uses the old axis1. -->
<dependency>
<groupId>axis</groupId>
<artifactId>axis</artifactId>
<version>1.4</version>
</dependency>
<!-- WS components are encouraged to use log4j for logging. The
version of log4j in WS is much older (it still uses
org.apache.log4j.Category, which is now deprecated), but
this still seems to work. I'm not sure what the correct
version of log4j in WS is. -->
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<!-- AFAIK, WorldServer still uses Java 1.5. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>1.6</version>
<configuration>
<createDependencyReducedPom>true</createDependencyReducedPom>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<!-- Uncomment me and put your main class name here
<mainClass>com.spartansoftwareinc.samples.MySampleWSSDKClient</mainClass>
-->
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment