pom.xml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. <project xmlns="http://maven.apache.org/POM/4.0.0"
  2. 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. <parent>
  5. <groupId>org.sonatype.oss</groupId>
  6. <artifactId>oss-parent</artifactId>
  7. <version>5</version>
  8. </parent>
  9. <modelVersion>4.0.0</modelVersion>
  10. <groupId>com.networknt</groupId>
  11. <artifactId>techempower</artifactId>
  12. <packaging>jar</packaging>
  13. <name>techempower</name>
  14. <version>1.0.0</version>
  15. <prerequisites>
  16. <maven>2.2.0</maven>
  17. </prerequisites>
  18. <properties>
  19. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  20. <maven.compiler.source>11</maven.compiler.source>
  21. <maven.compiler.target>11</maven.compiler.target>
  22. <version.light-4j>2.0.1</version.light-4j>
  23. <version.logback>1.2.3</version.logback>
  24. <version.undertow>2.1.6.Final</version.undertow>
  25. <version.hikaricp>3.3.1</version.hikaricp>
  26. <version.mysql>8.0.18</version.mysql>
  27. <version.postgres>42.3.3</version.postgres>
  28. <version.dsl-json>1.8.4</version.dsl-json>
  29. <version.mustache>0.9.6</version.mustache>
  30. <version.maven-compiler-plugin>3.8.0</version.maven-compiler-plugin>
  31. <version.maven-jar-plugin>3.0.2</version.maven-jar-plugin>
  32. <version.maven-shade-plugin>3.1.0</version.maven-shade-plugin>
  33. <version.exec-maven-plugin>1.6.0</version.exec-maven-plugin>
  34. </properties>
  35. <dependencies>
  36. <dependency>
  37. <groupId>com.networknt</groupId>
  38. <artifactId>config</artifactId>
  39. <version>${version.light-4j}</version>
  40. </dependency>
  41. <dependency>
  42. <groupId>com.networknt</groupId>
  43. <artifactId>utility</artifactId>
  44. <version>${version.light-4j}</version>
  45. </dependency>
  46. <dependency>
  47. <groupId>com.networknt</groupId>
  48. <artifactId>status</artifactId>
  49. <version>${version.light-4j}</version>
  50. </dependency>
  51. <dependency>
  52. <groupId>com.networknt</groupId>
  53. <artifactId>exception</artifactId>
  54. <version>${version.light-4j}</version>
  55. </dependency>
  56. <dependency>
  57. <groupId>com.networknt</groupId>
  58. <artifactId>handler</artifactId>
  59. <version>${version.light-4j}</version>
  60. </dependency>
  61. <dependency>
  62. <groupId>com.networknt</groupId>
  63. <artifactId>service</artifactId>
  64. <version>${version.light-4j}</version>
  65. </dependency>
  66. <dependency>
  67. <groupId>com.networknt</groupId>
  68. <artifactId>server</artifactId>
  69. <version>${version.light-4j}</version>
  70. </dependency>
  71. <dependency>
  72. <groupId>ch.qos.logback</groupId>
  73. <artifactId>logback-classic</artifactId>
  74. <version>${version.logback}</version>
  75. </dependency>
  76. <dependency>
  77. <groupId>io.undertow</groupId>
  78. <artifactId>undertow-core</artifactId>
  79. <version>${version.undertow}</version>
  80. </dependency>
  81. <dependency>
  82. <groupId>com.zaxxer</groupId>
  83. <artifactId>HikariCP</artifactId>
  84. <version>${version.hikaricp}</version>
  85. </dependency>
  86. <dependency>
  87. <groupId>mysql</groupId>
  88. <artifactId>mysql-connector-java</artifactId>
  89. <version>${version.mysql}</version>
  90. </dependency>
  91. <dependency>
  92. <groupId>org.postgresql</groupId>
  93. <artifactId>postgresql</artifactId>
  94. <version>${version.postgres}</version>
  95. </dependency>
  96. <dependency>
  97. <groupId>com.dslplatform</groupId>
  98. <artifactId>dsl-json-processor</artifactId>
  99. <version>${version.dsl-json}</version>
  100. </dependency>
  101. <dependency>
  102. <groupId>com.github.spullara.mustache.java</groupId>
  103. <artifactId>compiler</artifactId>
  104. <version>${version.mustache}</version>
  105. </dependency>
  106. </dependencies>
  107. <build>
  108. <defaultGoal>install</defaultGoal>
  109. <directory>target</directory>
  110. <finalName>${project.artifactId}-${project.version}</finalName>
  111. <plugins>
  112. <plugin>
  113. <groupId>org.apache.maven.plugins</groupId>
  114. <artifactId>maven-shade-plugin</artifactId>
  115. <version>${version.maven-shade-plugin}</version>
  116. <executions>
  117. <execution>
  118. <phase>package</phase>
  119. <goals>
  120. <goal>shade</goal>
  121. </goals>
  122. <configuration>
  123. <transformers>
  124. <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
  125. </transformers>
  126. </configuration>
  127. </execution>
  128. </executions>
  129. </plugin>
  130. <plugin>
  131. <groupId>org.apache.maven.plugins</groupId>
  132. <artifactId>maven-jar-plugin</artifactId>
  133. <version>${version.maven-jar-plugin}</version>
  134. <configuration>
  135. <archive>
  136. <manifest>
  137. <mainClass>com.networknt.server.Server</mainClass>
  138. </manifest>
  139. </archive>
  140. </configuration>
  141. </plugin>
  142. <plugin>
  143. <groupId>org.codehaus.mojo</groupId>
  144. <artifactId>exec-maven-plugin</artifactId>
  145. <version>${version.exec-maven-plugin}</version>
  146. <configuration>
  147. <executable>java</executable>
  148. <arguments>
  149. <argument>-jar</argument>
  150. <argument>target/${project.build.finalName}.jar</argument>
  151. </arguments>
  152. </configuration>
  153. </plugin>
  154. <plugin>
  155. <groupId>org.apache.maven.plugins</groupId>
  156. <artifactId>maven-compiler-plugin</artifactId>
  157. <version>${version.maven-compiler-plugin}</version>
  158. <configuration>
  159. <showWarnings>true</showWarnings>
  160. <showDeprecation>true</showDeprecation>
  161. <forceJavacCompilerUse>true</forceJavacCompilerUse>
  162. </configuration>
  163. </plugin>
  164. </plugins>
  165. </build>
  166. </project>