pom.xml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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. <maven.compiler.source>11</maven.compiler.source>
  12. <maven.compiler.target>11</maven.compiler.target>
  13. <slf4j.version>1.8.0-beta4</slf4j.version>
  14. </properties>
  15. <profiles>
  16. <profile>
  17. <id>sync</id>
  18. <properties>
  19. <exludeSources>**/async/*.java</exludeSources>
  20. </properties>
  21. </profile>
  22. <profile>
  23. <id>async</id>
  24. <activation>
  25. <activeByDefault>true</activeByDefault>
  26. </activation>
  27. <properties>
  28. <exludeSources>**/sync/*.java</exludeSources>
  29. </properties>
  30. </profile>
  31. </profiles>
  32. <build>
  33. <finalName>servlet3</finalName>
  34. <plugins>
  35. <plugin>
  36. <groupId>org.apache.maven.plugins</groupId>
  37. <artifactId>maven-compiler-plugin</artifactId>
  38. <version>3.8.0</version>
  39. <configuration>
  40. <debug>false</debug>
  41. <excludes>
  42. <exclude>${exludeSources}</exclude>
  43. </excludes>
  44. </configuration>
  45. </plugin>
  46. <plugin>
  47. <groupId>org.apache.maven.plugins</groupId>
  48. <artifactId>maven-war-plugin</artifactId>
  49. <version>3.1.0</version>
  50. <configuration>
  51. <failOnMissingWebXml>false</failOnMissingWebXml>
  52. </configuration>
  53. </plugin>
  54. </plugins>
  55. </build>
  56. <dependencies>
  57. <dependency>
  58. <groupId>javax.servlet</groupId>
  59. <artifactId>javax.servlet-api</artifactId>
  60. <version>3.1.0</version>
  61. </dependency>
  62. <dependency>
  63. <groupId>javax.servlet</groupId>
  64. <artifactId>jstl</artifactId>
  65. <version>1.2</version>
  66. <scope>runtime</scope>
  67. </dependency>
  68. <dependency>
  69. <groupId>com.fasterxml.jackson.core</groupId>
  70. <artifactId>jackson-databind</artifactId>
  71. <version>2.13.4.2</version>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.slf4j</groupId>
  75. <artifactId>slf4j-api</artifactId>
  76. <version>${slf4j.version}</version>
  77. <scope>compile</scope>
  78. </dependency>
  79. <dependency>
  80. <groupId>ch.qos.logback</groupId>
  81. <artifactId>logback-classic</artifactId>
  82. <version>1.3.12</version>
  83. <exclusions>
  84. <exclusion>
  85. <groupId>org.slf4j</groupId>
  86. <artifactId>slf4j-api</artifactId>
  87. </exclusion>
  88. </exclusions>
  89. </dependency>
  90. </dependencies>
  91. </project>