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