pom.xml 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
  5. http://maven.apache.org/xsd/maven-4.0.0.xsd">
  6. <modelVersion>4.0.0</modelVersion>
  7. <groupId>hello</groupId>
  8. <artifactId>hello-undertow</artifactId>
  9. <version>1.0-SNAPSHOT</version>
  10. <properties>
  11. <maven.compiler.source>11</maven.compiler.source>
  12. <maven.compiler.target>11</maven.compiler.target>
  13. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  14. <hikaricp.version>3.4.1</hikaricp.version>
  15. <jackson.version>2.10.5.1</jackson.version>
  16. <maven-shade-plugin.version>3.2.1</maven-shade-plugin.version>
  17. <mustache.version>0.9.6</mustache.version>
  18. <postgresql.version>42.3.3</postgresql.version>
  19. <undertow.version>2.1.6.Final</undertow.version>
  20. </properties>
  21. <prerequisites>
  22. <maven>3.6</maven>
  23. </prerequisites>
  24. <dependencies>
  25. <dependency>
  26. <groupId>io.undertow</groupId>
  27. <artifactId>undertow-core</artifactId>
  28. <version>${undertow.version}</version>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.postgresql</groupId>
  32. <artifactId>postgresql</artifactId>
  33. <version>${postgresql.version}</version>
  34. </dependency>
  35. <dependency>
  36. <groupId>com.zaxxer</groupId>
  37. <artifactId>HikariCP</artifactId>
  38. <version>${hikaricp.version}</version>
  39. </dependency>
  40. <dependency>
  41. <groupId>com.fasterxml.jackson.core</groupId>
  42. <artifactId>jackson-databind</artifactId>
  43. <version>${jackson.version}</version>
  44. </dependency>
  45. <dependency>
  46. <groupId>com.github.spullara.mustache.java</groupId>
  47. <artifactId>compiler</artifactId>
  48. <version>${mustache.version}</version>
  49. </dependency>
  50. </dependencies>
  51. <build>
  52. <finalName>app</finalName>
  53. <plugins>
  54. <plugin>
  55. <groupId>org.apache.maven.plugins</groupId>
  56. <artifactId>maven-shade-plugin</artifactId>
  57. <version>${maven-shade-plugin.version}</version>
  58. <configuration>
  59. <createDependencyReducedPom>false</createDependencyReducedPom>
  60. <filters>
  61. <filter>
  62. <artifact>*:*</artifact>
  63. <excludes>
  64. <exclude>module-info.class</exclude>
  65. <exclude>META-INF/*.SF</exclude>
  66. <exclude>META-INF/*.DSA</exclude>
  67. <exclude>META-INF/*.RSA</exclude>
  68. </excludes>
  69. </filter>
  70. </filters>
  71. </configuration>
  72. <executions>
  73. <execution>
  74. <phase>package</phase>
  75. <goals>
  76. <goal>shade</goal>
  77. </goals>
  78. <configuration>
  79. <transformers>
  80. <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
  81. <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  82. <mainClass>hello.HelloWebServer</mainClass>
  83. </transformer>
  84. </transformers>
  85. </configuration>
  86. </execution>
  87. </executions>
  88. </plugin>
  89. </plugins>
  90. </build>
  91. </project>