pom.xml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>hello.world</groupId>
  6. <artifactId>world</artifactId>
  7. <name>Servlet</name>
  8. <packaging>war</packaging>
  9. <version>1.0.0-BUILD-SNAPSHOT</version>
  10. <properties>
  11. <java-version>1.8</java-version>
  12. </properties>
  13. <dependencies>
  14. <dependency>
  15. <groupId>mysql</groupId>
  16. <artifactId>mysql-connector-java</artifactId>
  17. <version>5.1.38</version>
  18. </dependency>
  19. <dependency>
  20. <groupId>org.postgresql</groupId>
  21. <artifactId>postgresql</artifactId>
  22. <version>9.4.1208</version>
  23. </dependency>
  24. <dependency>
  25. <groupId>com.fasterxml.jackson.core</groupId>
  26. <artifactId>jackson-databind</artifactId>
  27. <version>2.8.7</version>
  28. </dependency>
  29. <dependency>
  30. <groupId>jstl</groupId>
  31. <artifactId>jstl</artifactId>
  32. <version>1.2</version>
  33. </dependency>
  34. <!-- @Inject -->
  35. <dependency>
  36. <groupId>javax.inject</groupId>
  37. <artifactId>javax.inject</artifactId>
  38. <version>1</version>
  39. </dependency>
  40. <!-- Servlet -->
  41. <dependency>
  42. <groupId>javax.servlet</groupId>
  43. <artifactId>servlet-api</artifactId>
  44. <version>2.5</version>
  45. <scope>provided</scope>
  46. </dependency>
  47. <!-- Apache Commons Lang -->
  48. <dependency>
  49. <groupId>org.apache.commons</groupId>
  50. <artifactId>commons-lang3</artifactId>
  51. <version>3.5</version>
  52. </dependency>
  53. </dependencies>
  54. <build>
  55. <plugins>
  56. <plugin>
  57. <groupId>org.apache.maven.plugins</groupId>
  58. <artifactId>maven-compiler-plugin</artifactId>
  59. <configuration>
  60. <source>${java-version}</source>
  61. <target>${java-version}</target>
  62. <optimize>true</optimize>
  63. <debug>false</debug>
  64. </configuration>
  65. </plugin>
  66. <plugin>
  67. <groupId>org.apache.maven.plugins</groupId>
  68. <artifactId>maven-war-plugin</artifactId>
  69. <configuration>
  70. <warName>servlet</warName>
  71. </configuration>
  72. </plugin>
  73. <plugin>
  74. <groupId>org.codehaus.mojo</groupId>
  75. <artifactId>tomcat-maven-plugin</artifactId>
  76. <version>1.1</version>
  77. </plugin>
  78. </plugins>
  79. </build>
  80. </project>