pom.xml 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <!-- Basic information -->
  6. <groupId>com.wishurgift</groupId>
  7. <artifactId>wishurgift</artifactId>
  8. <version>1.2.5-SNAPSHOT</version>
  9. <packaging>war</packaging>
  10. <name>Wishurgift</name>
  11. <description>Wishlist application</description>
  12. <!-- Project properties -->
  13. <properties>
  14. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  15. <tomee.version>8.0.0</tomee.version>
  16. <openjpa.version>3.0.0</openjpa.version>
  17. <junit.version>4.13</junit.version>
  18. <maven.compiler.source>1.8</maven.compiler.source>
  19. <maven.compiler.target>1.8</maven.compiler.target>
  20. <war.package.path>target/${project.artifactId}-${project.version}.war</war.package.path>
  21. <war.webapps.path>web/apps/ROOT.war</war.webapps.path>
  22. <db.url>//localhost:5432/wishurgift</db.url>
  23. <db.user>admin</db.user>
  24. <db.password>password</db.password>
  25. </properties>
  26. <!-- Dependencies -->
  27. <dependencies>
  28. <!-- Test -->
  29. <dependency>
  30. <groupId>junit</groupId>
  31. <artifactId>junit</artifactId>
  32. <version>${junit.version}</version>
  33. <scope>test</scope>
  34. </dependency>
  35. <dependency>
  36. <groupId>org.mockito</groupId>
  37. <artifactId>mockito-core</artifactId>
  38. <version>3.2.4</version>
  39. <scope>test</scope>
  40. </dependency>
  41. <!-- Web -->
  42. <dependency>
  43. <groupId>javax</groupId>
  44. <artifactId>javaee-api</artifactId>
  45. <version>8.0</version>
  46. <scope>provided</scope>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.apache.tomee</groupId>
  50. <artifactId>tomee-embedded</artifactId>
  51. <version>${tomee.version}</version>
  52. <scope>test</scope>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.apache.tomee</groupId>
  56. <artifactId>openejb-core</artifactId>
  57. <version>${tomee.version}</version>
  58. <scope>test</scope>
  59. <!-- Ne pas utiliser le slf4j de tomee -->
  60. <exclusions>
  61. <exclusion>
  62. <groupId>org.slf4j</groupId>
  63. <artifactId>slf4j-jdk14</artifactId>
  64. </exclusion>
  65. <exclusion>
  66. <groupId>log4j</groupId>
  67. <artifactId>log4j</artifactId>
  68. </exclusion>
  69. </exclusions>
  70. </dependency>
  71. <dependency>
  72. <groupId>org.apache.tomee</groupId>
  73. <artifactId>tomee-jaxrs</artifactId>
  74. <version>${tomee.version}</version>
  75. <scope>test</scope>
  76. </dependency>
  77. <dependency>
  78. <groupId>org.apache.tomee</groupId>
  79. <artifactId>ziplock</artifactId>
  80. <version>${tomee.version}</version>
  81. <scope>test</scope>
  82. </dependency>
  83. <!-- Authentification -->
  84. <dependency>
  85. <!-- Hash pour le mot de passe -->
  86. <groupId>at.favre.lib</groupId>
  87. <artifactId>bcrypt</artifactId>
  88. <version>0.9.0</version>
  89. </dependency>
  90. <dependency>
  91. <!-- Token pour la connexion -->
  92. <groupId>io.jsonwebtoken</groupId>
  93. <artifactId>jjwt</artifactId>
  94. <version>0.9.0</version>
  95. </dependency>
  96. <!-- BDD -->
  97. <dependency>
  98. <!-- SGBD -->
  99. <groupId>org.postgresql</groupId>
  100. <artifactId>postgresql</artifactId>
  101. <version>42.2.9</version>
  102. </dependency>
  103. <dependency>
  104. <!-- JPA implementation -->
  105. <groupId>org.apache.openjpa</groupId>
  106. <artifactId>openjpa</artifactId>
  107. <version>3.1.1</version>
  108. </dependency>
  109. <dependency>
  110. <!-- Gestion maj données bdd -->
  111. <groupId>org.liquibase</groupId>
  112. <artifactId>liquibase-core</artifactId>
  113. <version>3.8.5</version>
  114. </dependency>
  115. <dependency>
  116. <!-- Gestion maj données bdd -->
  117. <groupId>org.liquibase</groupId>
  118. <artifactId>liquibase-maven-plugin</artifactId>
  119. <version>3.8.5</version>
  120. </dependency>
  121. <!-- Utilitaire -->
  122. <dependency>
  123. <!-- Simplification code -->
  124. <groupId>org.projectlombok</groupId>
  125. <artifactId>lombok</artifactId>
  126. <version>1.18.10</version>
  127. <scope>provided</scope>
  128. </dependency>
  129. <dependency>
  130. <!-- Apache Common validator (pour valider l'email par exemple) -->
  131. <groupId>commons-validator</groupId>
  132. <artifactId>commons-validator</artifactId>
  133. <version>1.6</version>
  134. </dependency>
  135. <dependency>
  136. <!-- Gestion des logs -->
  137. <groupId>ch.qos.logback</groupId>
  138. <artifactId>logback-classic</artifactId>
  139. <version>1.2.3</version>
  140. </dependency>
  141. <dependency>
  142. <!-- Utilitaire pour les nombres -->
  143. <groupId>org.decimal4j</groupId>
  144. <artifactId>decimal4j</artifactId>
  145. <version>1.0.3</version>
  146. </dependency>
  147. </dependencies>
  148. <!-- Build plugin -->
  149. <build>
  150. <plugins>
  151. <plugin>
  152. <!-- Compilateur -->
  153. <groupId>org.apache.maven.plugins</groupId>
  154. <artifactId>maven-compiler-plugin</artifactId>
  155. <version>3.8.0</version>
  156. <configuration>
  157. <source>1.8</source>
  158. <target>1.8</target>
  159. <encoding>UTF-8</encoding>
  160. </configuration>
  161. </plugin>
  162. <plugin>
  163. <!-- Copie le war dans tomee -->
  164. <artifactId>maven-antrun-plugin</artifactId>
  165. <version>1.8</version>
  166. <executions>
  167. <execution>
  168. <phase>package</phase>
  169. <configuration>
  170. <target>
  171. <copy file="${war.package.path}"
  172. tofile="${war.webapps.path}"/>
  173. </target>
  174. </configuration>
  175. <goals>
  176. <goal>run</goal>
  177. </goals>
  178. </execution>
  179. </executions>
  180. </plugin>
  181. <plugin>
  182. <!-- Execute Liquibase -->
  183. <groupId>org.liquibase</groupId>
  184. <artifactId>liquibase-maven-plugin</artifactId>
  185. <version>3.8.5</version>
  186. <configuration>
  187. <changeLogFile>src/main/resources/liquibase/changelog-master.xml</changeLogFile>
  188. <driver>org.postgresql.Driver</driver>
  189. <url>jdbc:postgresql:${db.url}</url>
  190. <username>${db.user}</username>
  191. <password>${db.password}</password>
  192. </configuration>
  193. <executions>
  194. <execution>
  195. <phase>process-resources</phase>
  196. <goals>
  197. <goal>update</goal>
  198. </goals>
  199. </execution>
  200. </executions>
  201. </plugin>
  202. <!-- Skip test -->
  203. <!--plugin>
  204. <groupId>org.apache.maven.plugins</groupId>
  205. <artifactId>maven-surefire-plugin</artifactId>
  206. <version>2.12.4</version>
  207. <configuration>
  208. <skipTests>true</skipTests>
  209. </configuration>
  210. </plugin-->
  211. </plugins>
  212. </build>
  213. </project>