|
@@ -1,148 +1,191 @@
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
<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">
|
|
|
|
|
|
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
|
|
|
|
|
- <modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
+ <modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
- <groupId>com.techempower</groupId>
|
|
|
|
- <artifactId>grizzly-jersey-example</artifactId>
|
|
|
|
- <version>0.1</version>
|
|
|
|
|
|
+ <groupId>com.techempower</groupId>
|
|
|
|
+ <artifactId>grizzly-jersey-example</artifactId>
|
|
|
|
+ <version>0.1</version>
|
|
|
|
|
|
- <packaging>jar</packaging>
|
|
|
|
|
|
+ <packaging>jar</packaging>
|
|
|
|
|
|
- <prerequisites>
|
|
|
|
- <maven>3.0</maven>
|
|
|
|
- </prerequisites>
|
|
|
|
|
|
+ <prerequisites>
|
|
|
|
+ <maven>3.0</maven>
|
|
|
|
+ </prerequisites>
|
|
|
|
|
|
- <properties>
|
|
|
|
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
- <maven.compiler.source>1.8</maven.compiler.source>
|
|
|
|
- <maven.compiler.target>1.8</maven.compiler.target>
|
|
|
|
- <activation.version>1.1.1</activation.version>
|
|
|
|
- <commons-cli.version>1.4</commons-cli.version>
|
|
|
|
- <grizzly.version>2.3.35</grizzly.version>
|
|
|
|
- <hibernate.version>4.3.11.Final</hibernate.version>
|
|
|
|
- <hibernate-jpa-api.version>1.0.0.Final</hibernate-jpa-api.version>
|
|
|
|
- <jackson.version>2.9.7</jackson.version>
|
|
|
|
- <jaxb.version>2.3.0</jaxb.version>
|
|
|
|
- <jersey.version>1.19.4</jersey.version>
|
|
|
|
- <jsr311-api.version>1.1.1</jsr311-api.version>
|
|
|
|
- <maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
|
|
|
|
- <maven-shade-plugin.version>3.1.0</maven-shade-plugin.version>
|
|
|
|
- <mustache.version>0.9.5</mustache.version>
|
|
|
|
- <mysql-connector.version>5.1.47</mysql-connector.version>
|
|
|
|
- </properties>
|
|
|
|
|
|
+ <properties>
|
|
|
|
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
+ <maven.compiler.source>1.8</maven.compiler.source>
|
|
|
|
+ <maven.compiler.target>1.8</maven.compiler.target>
|
|
|
|
+ <activation.version>1.1.1</activation.version>
|
|
|
|
+ <commons-cli.version>1.4</commons-cli.version>
|
|
|
|
+ <grizzly.version>2.4.4</grizzly.version>
|
|
|
|
+ <hibernate.version>4.3.11.Final</hibernate.version>
|
|
|
|
+ <hibernate-jpa-api.version>1.0.0.Final</hibernate-jpa-api.version>
|
|
|
|
+ <jackson.version>2.9.8</jackson.version>
|
|
|
|
+ <jaxb.version>2.3.0</jaxb.version>
|
|
|
|
+ <jersey.version>2.28</jersey.version>
|
|
|
|
+ <maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version>
|
|
|
|
+ <maven-shade-plugin.version>3.1.0</maven-shade-plugin.version>
|
|
|
|
+ <mustache.version>0.9.6</mustache.version>
|
|
|
|
+ <mysql-connector.version>5.1.47</mysql-connector.version>
|
|
|
|
+ </properties>
|
|
|
|
|
|
- <dependencies>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>javax.ws.rs</groupId>
|
|
|
|
- <artifactId>jsr311-api</artifactId>
|
|
|
|
- <version>${jsr311-api.version}</version>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>com.sun.jersey</groupId>
|
|
|
|
- <artifactId>jersey-core</artifactId>
|
|
|
|
- <version>${jersey.version}</version>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>com.sun.jersey</groupId>
|
|
|
|
- <artifactId>jersey-server</artifactId>
|
|
|
|
- <version>${jersey.version}</version>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>com.sun.jersey</groupId>
|
|
|
|
- <artifactId>jersey-grizzly2</artifactId>
|
|
|
|
- <version>${jersey.version}</version>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>org.glassfish.grizzly</groupId>
|
|
|
|
- <artifactId>grizzly-http</artifactId>
|
|
|
|
- <version>${grizzly.version}</version>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>org.glassfish.grizzly</groupId>
|
|
|
|
- <artifactId>grizzly-http-server</artifactId>
|
|
|
|
- <version>${grizzly.version}</version>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>com.github.spullara.mustache.java</groupId>
|
|
|
|
- <artifactId>compiler</artifactId>
|
|
|
|
- <version>${mustache.version}</version>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>com.fasterxml.jackson.core</groupId>
|
|
|
|
- <artifactId>jackson-databind</artifactId>
|
|
|
|
- <version>${jackson.version}</version>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>org.hibernate</groupId>
|
|
|
|
- <artifactId>hibernate-core</artifactId>
|
|
|
|
- <version>${hibernate.version}</version>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>org.hibernate</groupId>
|
|
|
|
- <artifactId>hibernate-hikaricp</artifactId>
|
|
|
|
- <version>${hibernate.version}</version>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>org.hibernate.javax.persistence</groupId>
|
|
|
|
- <artifactId>hibernate-jpa-2.1-api</artifactId>
|
|
|
|
- <version>${hibernate-jpa-api.version}</version>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>mysql</groupId>
|
|
|
|
- <artifactId>mysql-connector-java</artifactId>
|
|
|
|
- <version>${mysql-connector.version}</version>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>commons-cli</groupId>
|
|
|
|
- <artifactId>commons-cli</artifactId>
|
|
|
|
- <version>${commons-cli.version}</version>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>org.glassfish.jaxb</groupId>
|
|
|
|
- <artifactId>jaxb-runtime</artifactId>
|
|
|
|
- <version>${jaxb.version}</version>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>javax.activation</groupId>
|
|
|
|
- <artifactId>activation</artifactId>
|
|
|
|
- <version>${activation.version}</version>
|
|
|
|
- </dependency>
|
|
|
|
- </dependencies>
|
|
|
|
|
|
+ <dependencies>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>javax.ws.rs</groupId>
|
|
|
|
+ <artifactId>javax.ws.rs-api</artifactId>
|
|
|
|
+ <version>2.1</version>
|
|
|
|
+ </dependency>
|
|
|
|
|
|
- <build>
|
|
|
|
- <finalName>${project.artifactId}</finalName>
|
|
|
|
- <plugins>
|
|
|
|
- <plugin>
|
|
|
|
- <inherited>true</inherited>
|
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
- <artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
- <version>${maven-compiler-plugin.version}</version>
|
|
|
|
- <configuration>
|
|
|
|
- <debug>false</debug>
|
|
|
|
- </configuration>
|
|
|
|
- </plugin>
|
|
|
|
- <plugin>
|
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
- <artifactId>maven-shade-plugin</artifactId>
|
|
|
|
- <version>${maven-shade-plugin.version}</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>
|
|
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.glassfish.jersey.containers</groupId>
|
|
|
|
+ <artifactId>jersey-container-grizzly2-http</artifactId>
|
|
|
|
+ <version>${jersey.version}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.glassfish.jersey.inject</groupId>
|
|
|
|
+ <artifactId>jersey-hk2</artifactId>
|
|
|
|
+ <version>${jersey.version}</version>
|
|
|
|
+ <exclusions>
|
|
|
|
+ <exclusion>
|
|
|
|
+ <artifactId>javax.inject</artifactId>
|
|
|
|
+ <groupId>javax.inject</groupId>
|
|
|
|
+ </exclusion>
|
|
|
|
+ </exclusions>
|
|
|
|
+ </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>
|
|
|
|
+ <exclusions>
|
|
|
|
+ <exclusion>
|
|
|
|
+ <artifactId>com.fasterxml.jackson.module</artifactId>
|
|
|
|
+ <groupId>jackson-module-jaxb-annotations</groupId>
|
|
|
|
+ </exclusion>
|
|
|
|
+ </exclusions>
|
|
|
|
+ </dependency>
|
|
|
|
+ <!-- <artifactId>jersey-container-grizzly2-http</artifactId> <artifactId>jersey-container-servlet</artifactId>
|
|
|
|
+ <artifactId>jersey-container-grizzly2-servlet</artifactId> <dependency> <groupId>com.sun.jersey</groupId>
|
|
|
|
+ <artifactId>jersey-grizzly2</artifactId> <version>${jersey.version}</version>
|
|
|
|
+ </dependency> <dependency> <groupId>org.glassfish.grizzly</groupId> <artifactId>grizzly-http</artifactId>
|
|
|
|
+ <version>${grizzly.version}</version> </dependency> <dependency> <groupId>org.glassfish.grizzly</groupId>
|
|
|
|
+ <artifactId>grizzly-http-server</artifactId> <version>${grizzly.version}</version>
|
|
|
|
+ </dependency> -->
|
|
|
|
+
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.slf4j</groupId>
|
|
|
|
+ <artifactId>slf4j-api</artifactId>
|
|
|
|
+ <version>1.8.0-beta2</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.slf4j</groupId>
|
|
|
|
+ <artifactId>slf4j-simple</artifactId>
|
|
|
|
+ <version>1.8.0-beta2</version>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>com.github.spullara.mustache.java</groupId>
|
|
|
|
+ <artifactId>compiler</artifactId>
|
|
|
|
+ <version>${mustache.version}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>com.fasterxml.jackson.core</groupId>
|
|
|
|
+ <artifactId>jackson-databind</artifactId>
|
|
|
|
+ <version>${jackson.version}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>com.fasterxml.jackson.core</groupId>
|
|
|
|
+ <artifactId>jackson-annotations</artifactId>
|
|
|
|
+ <version>${jackson.version}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>com.fasterxml.jackson.module</groupId>
|
|
|
|
+ <artifactId>jackson-module-afterburner</artifactId>
|
|
|
|
+ <version>${jackson.version}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.hibernate</groupId>
|
|
|
|
+ <artifactId>hibernate-core</artifactId>
|
|
|
|
+ <version>${hibernate.version}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.hibernate</groupId>
|
|
|
|
+ <artifactId>hibernate-hikaricp</artifactId>
|
|
|
|
+ <version>${hibernate.version}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.hibernate.javax.persistence</groupId>
|
|
|
|
+ <artifactId>hibernate-jpa-2.1-api</artifactId>
|
|
|
|
+ <version>${hibernate-jpa-api.version}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>mysql</groupId>
|
|
|
|
+ <artifactId>mysql-connector-java</artifactId>
|
|
|
|
+ <version>${mysql-connector.version}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>commons-cli</groupId>
|
|
|
|
+ <artifactId>commons-cli</artifactId>
|
|
|
|
+ <version>${commons-cli.version}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.glassfish.jaxb</groupId>
|
|
|
|
+ <artifactId>jaxb-runtime</artifactId>
|
|
|
|
+ <version>${jaxb.version}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>javax.activation</groupId>
|
|
|
|
+ <artifactId>activation</artifactId>
|
|
|
|
+ <version>${activation.version}</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>${maven-compiler-plugin.version}</version>
|
|
|
|
+ <configuration>
|
|
|
|
+ <optimize>true</optimize>
|
|
|
|
+ <debug>false</debug>
|
|
|
|
+ </configuration>
|
|
|
|
+ </plugin>
|
|
|
|
+ <plugin>
|
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
+ <artifactId>maven-shade-plugin</artifactId>
|
|
|
|
+ <version>${maven-shade-plugin.version}</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> -->
|
|
|
|
+ <mainClass>hello.WebServer</mainClass>
|
|
|
|
+ </transformer>
|
|
|
|
+ </transformers>
|
|
|
|
+ </configuration>
|
|
|
|
+ </execution>
|
|
|
|
+ </executions>
|
|
|
|
+ </plugin>
|
|
|
|
+ </plugins>
|
|
|
|
+ </build>
|
|
|
|
+</project>
|