pom.xml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <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">
  2. <modelVersion>4.0.0</modelVersion>
  3. <groupId>com.techempower.jersey.hello</groupId>
  4. <artifactId>Jersey</artifactId>
  5. <packaging>war</packaging>
  6. <version>0.0.1</version>
  7. <name>hello</name>
  8. <build>
  9. <finalName>hello</finalName>
  10. <plugins>
  11. <plugin>
  12. <groupId>org.apache.maven.plugins</groupId>
  13. <artifactId>maven-compiler-plugin</artifactId>
  14. <version>2.5.1</version>
  15. <inherited>true</inherited>
  16. <configuration>
  17. <source>1.7</source>
  18. <target>1.7</target>
  19. </configuration>
  20. </plugin>
  21. </plugins>
  22. </build>
  23. <dependencyManagement>
  24. <dependencies>
  25. <dependency>
  26. <groupId>org.glassfish.jersey</groupId>
  27. <artifactId>jersey-bom</artifactId>
  28. <version>${jersey.version}</version>
  29. <type>pom</type>
  30. <scope>import</scope>
  31. </dependency>
  32. </dependencies>
  33. </dependencyManagement>
  34. <dependencies>
  35. <dependency>
  36. <groupId>org.glassfish.jersey.containers</groupId>
  37. <!-- <artifactId>jersey-container-servlet-core</artifactId> -->
  38. <!-- use the following artifactId if you don't need servlet 2.x compatibility -->
  39. <artifactId>jersey-container-servlet</artifactId>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.glassfish.jersey.inject</groupId>
  43. <artifactId>jersey-hk2</artifactId>
  44. </dependency>
  45. <!-- uncomment this to get JSON support
  46. <dependency>
  47. <groupId>org.glassfish.jersey.media</groupId>
  48. <artifactId>jersey-media-json-binding</artifactId>
  49. </dependency>
  50. -->
  51. </dependencies>
  52. <properties>
  53. <jersey.version>2.30.1</jersey.version>
  54. <maven.compiler.source>11</maven.compiler.source>
  55. <maven.compiler.target>11</maven.compiler.target>
  56. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  57. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  58. </properties>
  59. </project>