|
@@ -0,0 +1,125 @@
|
|
|
+<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.techempower</groupId>
|
|
|
+ <artifactId>undertow-jersey</artifactId>
|
|
|
+ <version>0.1</version>
|
|
|
+
|
|
|
+ <packaging>jar</packaging>
|
|
|
+
|
|
|
+ <prerequisites>
|
|
|
+ <maven>3.0</maven>
|
|
|
+ </prerequisites>
|
|
|
+
|
|
|
+
|
|
|
+ <properties>
|
|
|
+ <jersey.version>2.22.1</jersey.version>
|
|
|
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
+ </properties>
|
|
|
+
|
|
|
+ <dependencyManagement>
|
|
|
+ <dependencies>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.glassfish.jersey</groupId>
|
|
|
+ <artifactId>jersey-bom</artifactId>
|
|
|
+ <version>${jersey.version}</version>
|
|
|
+ <type>pom</type>
|
|
|
+ <scope>import</scope>
|
|
|
+ </dependency>
|
|
|
+ </dependencies>
|
|
|
+ </dependencyManagement>
|
|
|
+
|
|
|
+ <dependencies>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.glassfish.jersey.core</groupId>
|
|
|
+ <artifactId>jersey-server</artifactId>
|
|
|
+ <version>${jersey.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.glassfish.jersey.core</groupId>
|
|
|
+ <artifactId>jersey-server</artifactId>
|
|
|
+ <version>${jersey.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.glassfish.jersey.ext</groupId>
|
|
|
+ <artifactId>jersey-mvc-mustache</artifactId>
|
|
|
+ <version>${jersey.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.glassfish.jersey.media</groupId>
|
|
|
+ <artifactId>jersey-media-json-jackson</artifactId>
|
|
|
+ <version>${jersey.version}</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.hibernate</groupId>
|
|
|
+ <artifactId>hibernate-core</artifactId>
|
|
|
+ <version>4.2.1.Final</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.hibernate</groupId>
|
|
|
+ <artifactId>hibernate-c3p0</artifactId>
|
|
|
+ <version>4.2.1.Final</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>commons-cli</groupId>
|
|
|
+ <artifactId>commons-cli</artifactId>
|
|
|
+ <version>1.2</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>mysql</groupId>
|
|
|
+ <artifactId>mysql-connector-java</artifactId>
|
|
|
+ <version>5.1.25</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>io.undertow</groupId>
|
|
|
+ <artifactId>undertow-core</artifactId>
|
|
|
+ <version>1.3.11.Final</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ </dependencies>
|
|
|
+
|
|
|
+ <build>
|
|
|
+ <finalName>${project.artifactId}</finalName>
|
|
|
+ <plugins>
|
|
|
+ <plugin>
|
|
|
+ <inherited>true</inherited>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-compiler-plugin</artifactId>
|
|
|
+ <version>3.1</version>
|
|
|
+ <configuration>
|
|
|
+ <source>1.7</source>
|
|
|
+ <target>1.7</target>
|
|
|
+ <optimize>true</optimize>
|
|
|
+ <debug>false</debug>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-shade-plugin</artifactId>
|
|
|
+ <version>2.1</version>
|
|
|
+ <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">
|
|
|
+ <mainClass>hello.JerseyWebServer</mainClass>
|
|
|
+ </transformer>
|
|
|
+ </transformers>
|
|
|
+ </configuration>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ </plugins>
|
|
|
+ </build>
|
|
|
+</project>
|