pom.xml 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  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/maven-v4_0_0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>io.sinistral</groupId>
  5. <artifactId>proteus-techempower</artifactId>
  6. <packaging>jar</packaging>
  7. <version>1.0.0</version>
  8. <name>proteus-techempower</name>
  9. <url>http://maven.apache.org</url>
  10. <properties>
  11. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  12. <maven.compiler.source>11</maven.compiler.source>
  13. <maven.compiler.target>11</maven.compiler.target>
  14. <rocker.version>1.2.1</rocker.version>
  15. </properties>
  16. <build>
  17. <resources>
  18. <resource>
  19. <directory>src/main/resources</directory>
  20. <filtering>true</filtering>
  21. </resource>
  22. </resources>
  23. <testResources>
  24. <testResource>
  25. <directory>src/test/resources</directory>
  26. </testResource>
  27. <testResource>
  28. <directory>src/test/java</directory>
  29. <excludes>
  30. <exclude>**/*.java</exclude>
  31. </excludes>
  32. </testResource>
  33. </testResources>
  34. <pluginManagement>
  35. <plugins>
  36. <plugin>
  37. <groupId>org.eclipse.m2e</groupId>
  38. <artifactId>lifecycle-mapping</artifactId>
  39. <version>1.0.0</version>
  40. <configuration>
  41. <lifecycleMappingMetadata>
  42. <pluginExecutions>
  43. <pluginExecution>
  44. <pluginExecutionFilter>
  45. <groupId>org.apache.maven.plugins</groupId>
  46. <artifactId>maven-compiler-plugin</artifactId>
  47. <versionRange>[3.3,)</versionRange>
  48. <goals>
  49. <goal>compile</goal>
  50. <goal>testCompile</goal>
  51. </goals>
  52. </pluginExecutionFilter>
  53. <action>
  54. <execute />
  55. </action>
  56. </pluginExecution>
  57. <pluginExecution>
  58. <pluginExecutionFilter>
  59. <groupId>com.fizzed</groupId>
  60. <artifactId>rocker-maven-plugin</artifactId>
  61. <versionRange>[${rocker.version},)</versionRange>
  62. <goals>
  63. <goal>generate</goal>
  64. </goals>
  65. </pluginExecutionFilter>
  66. <action>
  67. <execute>
  68. <runOnIncremental>true</runOnIncremental>
  69. </execute>
  70. </action>
  71. </pluginExecution>
  72. </pluginExecutions>
  73. </lifecycleMappingMetadata>
  74. </configuration>
  75. </plugin>
  76. </plugins>
  77. </pluginManagement>
  78. <plugins>
  79. <plugin>
  80. <artifactId>maven-compiler-plugin</artifactId>
  81. <version>3.8.0</version>
  82. <configuration>
  83. <debug>false</debug>
  84. <compilerArgument>-parameters</compilerArgument>
  85. </configuration>
  86. </plugin>
  87. <plugin>
  88. <artifactId>maven-resources-plugin</artifactId>
  89. <version>3.0.2</version>
  90. <executions>
  91. <execution>
  92. <id>copy-configuration-resources</id>
  93. <phase>validate</phase>
  94. <goals>
  95. <goal>copy-resources</goal>
  96. </goals>
  97. <configuration>
  98. <outputDirectory>${project.build.directory}/conf</outputDirectory>
  99. <resources>
  100. <resource>
  101. <directory>conf</directory>
  102. <filtering>true</filtering>
  103. </resource>
  104. </resources>
  105. </configuration>
  106. </execution>
  107. <execution>
  108. <id>copy-asset-resources</id>
  109. <phase>validate</phase>
  110. <goals>
  111. <goal>copy-resources</goal>
  112. </goals>
  113. <configuration>
  114. <outputDirectory>${project.build.directory}/assets</outputDirectory>
  115. <resources>
  116. <resource>
  117. <directory>assets</directory>
  118. <filtering>true</filtering>
  119. </resource>
  120. </resources>
  121. </configuration>
  122. </execution>
  123. </executions>
  124. </plugin>
  125. <plugin>
  126. <groupId>org.codehaus.mojo</groupId>
  127. <artifactId>exec-maven-plugin</artifactId>
  128. <version>1.6.0</version>
  129. <executions>
  130. <execution>
  131. <goals>
  132. <goal>exec</goal>
  133. </goals>
  134. </execution>
  135. </executions>
  136. <configuration>
  137. <executable>java</executable>
  138. <arguments>
  139. <argument>-Dlogback.configurationFile=${project.build.directory}/conf/logback.xml</argument>
  140. <argument>-Dconfig.file=${project.build.directory}/conf/application.conf</argument>
  141. <argument>-Xms1g</argument>
  142. <argument>-Xmx2g</argument>
  143. <argument>-XX:+AggressiveOpts</argument>
  144. <argument>-XX:-UseBiasedLocking</argument>
  145. <argument>-XX:+UseStringDeduplication</argument>
  146. <argument>-classpath</argument>
  147. <!-- automatically creates the classpath using all project dependencies,
  148. also adding the project build directory -->
  149. <classpath />
  150. <argument>io.sinistral.ExampleApplication</argument>
  151. </arguments>
  152. </configuration>
  153. </plugin>
  154. <plugin>
  155. <artifactId>maven-dependency-plugin</artifactId>
  156. <executions>
  157. <execution>
  158. <phase>package</phase>
  159. <goals>
  160. <goal>copy-dependencies</goal>
  161. </goals>
  162. <configuration>
  163. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  164. </configuration>
  165. </execution>
  166. </executions>
  167. </plugin>
  168. <plugin>
  169. <!-- Build an executable JAR -->
  170. <groupId>org.apache.maven.plugins</groupId>
  171. <artifactId>maven-jar-plugin</artifactId>
  172. <version>3.0.2</version>
  173. <configuration>
  174. <archive>
  175. <manifest>
  176. <addClasspath>true</addClasspath>
  177. <classpathPrefix>lib/</classpathPrefix>
  178. <mainClass>io.sinistral.ExampleApplication</mainClass>
  179. </manifest>
  180. </archive>
  181. </configuration>
  182. </plugin>
  183. <!-- <plugin>
  184. <groupId>com.fizzed</groupId>
  185. <artifactId>rocker-maven-plugin</artifactId>
  186. <version>1.2.1</version>
  187. <executions>
  188. <execution>
  189. <id>generate-rocker-templates</id>
  190. <phase>generate-sources</phase>
  191. <goals>
  192. <goal>generate</goal>
  193. </goals>
  194. <configuration>
  195. <outputDirectory>${project.basedir}/src</outputDirectory>
  196. </configuration>
  197. </execution>
  198. </executions>
  199. </plugin> -->
  200. </plugins>
  201. </build>
  202. <dependencies>
  203. <dependency>
  204. <groupId>junit</groupId>
  205. <artifactId>junit</artifactId>
  206. <version>4.13.1</version>
  207. <scope>test</scope>
  208. </dependency>
  209. <dependency>
  210. <groupId>io.sinistral</groupId>
  211. <artifactId>proteus-core</artifactId>
  212. <version>0.1.7.4-SNAPSHOT</version>
  213. </dependency>
  214. <dependency>
  215. <groupId>com.fizzed</groupId>
  216. <artifactId>rocker-runtime</artifactId>
  217. <version>${rocker.version}</version>
  218. </dependency>
  219. <dependency>
  220. <groupId>com.fizzed</groupId>
  221. <artifactId>rocker-compiler</artifactId>
  222. <version>${rocker.version}</version>
  223. <scope>provided</scope>
  224. </dependency>
  225. <dependency>
  226. <groupId>com.github.spullara.mustache.java</groupId>
  227. <artifactId>compiler</artifactId>
  228. <version>0.9.6</version>
  229. </dependency>
  230. <dependency>
  231. <groupId>com.zaxxer</groupId>
  232. <artifactId>HikariCP</artifactId>
  233. <version>3.3.1</version>
  234. </dependency>
  235. <dependency>
  236. <groupId>mysql</groupId>
  237. <artifactId>mysql-connector-java</artifactId>
  238. <version>8.0.28</version>
  239. </dependency>
  240. <dependency>
  241. <groupId>org.postgresql</groupId>
  242. <artifactId>postgresql</artifactId>
  243. <version>42.4.3</version>
  244. </dependency>
  245. </dependencies>
  246. <repositories>
  247. <repository>
  248. <id>oss-sonatype</id>
  249. <name>oss-sonatype</name>
  250. <url>https://oss.sonatype.org/content/groups/public/</url>
  251. <snapshots>
  252. <enabled>true</enabled>
  253. </snapshots>
  254. </repository>
  255. </repositories>
  256. </project>