123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212 |
- <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>grizzly-jersey-example</artifactId>
- <version>0.1</version>
- <packaging>jar</packaging>
- <prerequisites>
- <maven>3.0</maven>
- </prerequisites>
- <properties>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <maven.compiler.source>11</maven.compiler.source>
- <maven.compiler.target>11</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>5.4.2.Final</hibernate.version>
- <hibernate-jpa-api.version>1.0.0.Final</hibernate-jpa-api.version>
- <jackson.version>2.9.9</jackson.version>
- <jaxb.version>2.3.0</jaxb.version>
- <jersey.version>2.28</jersey.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.6</mustache.version>
- <mysql-connector.version>8.0.18</mysql-connector.version>
- </properties>
- <dependencies>
- <dependency>
- <groupId>javax.ws.rs</groupId>
- <artifactId>javax.ws.rs-api</artifactId>
- <version>2.1</version>
- <scope>provided</scope>
- </dependency>
- <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>
- <scope>provided</scope>
- </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>
- <!-- See https://github.com/eclipse-ee4j/jaf/issues/18 for details -->
- <scope>provided</scope>
- </dependency>
- </dependencies>
- <build>
- <finalName>${project.artifactId}</finalName>
- <directory>target</directory>
- <!-- Clean up this before commit -->
- <!-- <outputDirectory>target/classes</outputDirectory>
- <testOutputDirectory>target/test-classes</testOutputDirectory>
- <sourceDirectory>src-jersey/main/java</sourceDirectory>
- <scriptSourceDirectory>src-jersey/main/scripts</scriptSourceDirectory>
- <testSourceDirectory>src-jersey/test/java</testSourceDirectory>
- <resources>
- <resource>
- <directory>src-jersey/main/resources</directory>
- </resource>
- </resources>
- <testResources>
- <testResource>
- <directory>src-jersey/test/resources</directory>
- </testResource>
- </testResources> -->
- <!-- Clean up this before commit -->
- <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> -->
- <mainClass>hello.WebServer</mainClass>
- </transformer>
- </transformers>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </project>
|