pom.xml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>com.gitlab.zloster.tfb.servlet3</groupId>
  5. <artifactId>servlet3</artifactId>
  6. <version>0.0.1-SNAPSHOT</version>
  7. <packaging>war</packaging>
  8. <name>servlet3</name>
  9. <properties>
  10. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  11. <java.version>1.8</java.version>
  12. <slf4j.version>1.7.10</slf4j.version>
  13. </properties>
  14. <profiles>
  15. <profile>
  16. <id>sync</id>
  17. <properties>
  18. <exludeSources>**/async/*.java</exludeSources>
  19. </properties>
  20. </profile>
  21. <profile>
  22. <id>async</id>
  23. <activation>
  24. <activeByDefault>true</activeByDefault>
  25. </activation>
  26. <properties>
  27. <exludeSources>**/sync/*.java</exludeSources>
  28. </properties>
  29. </profile>
  30. </profiles>
  31. <build>
  32. <finalName>servlet3</finalName>
  33. <plugins>
  34. <plugin>
  35. <groupId>org.apache.maven.plugins</groupId>
  36. <artifactId>maven-compiler-plugin</artifactId>
  37. <version>3.7.0</version>
  38. <configuration>
  39. <source>${java.version}</source>
  40. <target>${java.version}</target>
  41. <optimize>true</optimize>
  42. <debug>false</debug>
  43. <excludes>
  44. <exclude>${exludeSources}</exclude>
  45. </excludes>
  46. </configuration>
  47. </plugin>
  48. <plugin>
  49. <groupId>org.apache.maven.plugins</groupId>
  50. <artifactId>maven-war-plugin</artifactId>
  51. <version>3.1.0</version>
  52. <configuration>
  53. <failOnMissingWebXml>false</failOnMissingWebXml>
  54. </configuration>
  55. </plugin>
  56. </plugins>
  57. </build>
  58. <dependencies>
  59. <dependency>
  60. <groupId>javax.servlet</groupId>
  61. <artifactId>javax.servlet-api</artifactId>
  62. <version>3.1.0</version>
  63. </dependency>
  64. <dependency>
  65. <groupId>javax.servlet</groupId>
  66. <artifactId>jstl</artifactId>
  67. <version>1.2</version>
  68. <scope>runtime</scope>
  69. </dependency>
  70. <dependency>
  71. <groupId>com.fasterxml.jackson.core</groupId>
  72. <artifactId>jackson-databind</artifactId>
  73. <version>2.9.3</version>
  74. </dependency>
  75. <dependency>
  76. <groupId>org.slf4j</groupId>
  77. <artifactId>slf4j-api</artifactId>
  78. <version>${slf4j.version}</version>
  79. <scope>compile</scope>
  80. </dependency>
  81. </dependencies>
  82. </project>