87 lines
3.3 KiB
XML
87 lines
3.3 KiB
XML
|
<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/maven-v4_0_0.xsd">
|
||
|
|
||
|
<modelVersion>4.0.0</modelVersion>
|
||
|
<groupId>com.example</groupId>
|
||
|
<artifactId>jws</artifactId>
|
||
|
<packaging>war</packaging>
|
||
|
<version>0.0.1-SNAPSHOT</version>
|
||
|
|
||
|
<name>jws-example</name>
|
||
|
|
||
|
<properties>
|
||
|
<maven-jar-plugin.version>3.0.2</maven-jar-plugin.version>
|
||
|
<maven-war-plugin.version>3.0.0</maven-war-plugin.version>
|
||
|
<jardiff.version>7.0</jardiff.version>
|
||
|
<jnlp-servlet.version>7.0</jnlp-servlet.version>
|
||
|
</properties>
|
||
|
|
||
|
<dependencies>
|
||
|
<dependency>
|
||
|
<groupId>javax.jnlp</groupId>
|
||
|
<artifactId>jnlp-servlet</artifactId>
|
||
|
<version>${jnlp-servlet.version}</version>
|
||
|
<scope>system</scope>
|
||
|
<systemPath>${project.basedir}/java-core-samples-lib/jnlp-servlet.jar</systemPath>
|
||
|
</dependency>
|
||
|
<dependency>
|
||
|
<groupId>javax.jnlp</groupId>
|
||
|
<artifactId>jardiff</artifactId>
|
||
|
<version>${jardiff.version}</version>
|
||
|
<scope>system</scope>
|
||
|
<systemPath>${project.basedir}/java-core-samples-lib/jardiff.jar</systemPath>
|
||
|
</dependency>
|
||
|
|
||
|
</dependencies>
|
||
|
|
||
|
<build>
|
||
|
<plugins>
|
||
|
<plugin>
|
||
|
<groupId>org.apache.maven.plugins</groupId>
|
||
|
<artifactId>maven-jar-plugin</artifactId>
|
||
|
<version>${maven-jar-plugin.version}</version>
|
||
|
<executions>
|
||
|
<execution>
|
||
|
<phase>compile</phase>
|
||
|
<goals>
|
||
|
<goal>jar</goal>
|
||
|
</goals>
|
||
|
<configuration>
|
||
|
<archive>
|
||
|
<manifest>
|
||
|
<mainClass>com.example.Hello</mainClass>
|
||
|
</manifest>
|
||
|
</archive>
|
||
|
<outputDirectory>${project.basedir}/target/jws</outputDirectory>
|
||
|
</configuration>
|
||
|
</execution>
|
||
|
</executions>
|
||
|
</plugin>
|
||
|
|
||
|
<plugin>
|
||
|
<groupId>org.apache.maven.plugins</groupId>
|
||
|
<artifactId>maven-war-plugin</artifactId>
|
||
|
<version>${maven-war-plugin.version}</version>
|
||
|
<executions>
|
||
|
<execution>
|
||
|
<phase>package</phase>
|
||
|
</execution>
|
||
|
</executions>
|
||
|
<configuration>
|
||
|
<webResources>
|
||
|
<resource>
|
||
|
<directory>${project.basedir}/java-core-samples-lib/</directory>
|
||
|
<includes>
|
||
|
<include>**/*.jar</include>
|
||
|
</includes>
|
||
|
<targetPath>WEB-INF/lib</targetPath>
|
||
|
</resource>
|
||
|
</webResources>
|
||
|
</configuration>
|
||
|
</plugin>
|
||
|
</plugins>
|
||
|
<finalName>${project.artifactId}</finalName>
|
||
|
</build>
|
||
|
|
||
|
</project>
|