pom.xml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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.7</java-version>
  12. </properties>
  13. <dependencies>
  14. <dependency>
  15. <groupId>mysql</groupId>
  16. <artifactId>mysql-connector-java</artifactId>
  17. <version>5.1.23</version>
  18. </dependency>
  19. <dependency>
  20. <groupId>org.postgresql</groupId>
  21. <artifactId>postgresql</artifactId>
  22. <version>9.4-1200-jdbc41</version>
  23. </dependency>
  24. <dependency>
  25. <groupId>com.fasterxml.jackson.core</groupId>
  26. <artifactId>jackson-databind</artifactId>
  27. <version>2.3.0</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.1</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. </configuration>
  63. </plugin>
  64. <plugin>
  65. <groupId>org.apache.maven.plugins</groupId>
  66. <artifactId>maven-war-plugin</artifactId>
  67. <configuration>
  68. <warName>servlet</warName>
  69. </configuration>
  70. </plugin>
  71. <plugin>
  72. <groupId>org.codehaus.mojo</groupId>
  73. <artifactId>tomcat-maven-plugin</artifactId>
  74. <version>1.1</version>
  75. </plugin>
  76. </plugins>
  77. </build>
  78. </project>