pom.xml 48 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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>com.common.workflow</groupId>
  5. <artifactId>acti-api</artifactId>
  6. <version>0.0.1-SNAPSHOT</version>
  7. <packaging>war</packaging>
  8. <name>Acti Api</name>
  9. <repositories>
  10. <!-- jhipster-needle-maven-repository -->
  11. </repositories>
  12. <!-- jhipster-needle-distribution-management -->
  13. <properties>
  14. <!-- Build properties -->
  15. <maven.version>3.0.0</maven.version>
  16. <java.version>1.8</java.version>
  17. <scala.version>2.12.6</scala.version>
  18. <node.version>v10.14.1</node.version>
  19. <npm.version>6.4.1</npm.version>
  20. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  21. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  22. <project.testresult.directory>${project.build.directory}/test-results</project.testresult.directory>
  23. <maven.build.timestamp.format>yyyyMMddHHmmss</maven.build.timestamp.format>
  24. <maven.compiler.source>${java.version}</maven.compiler.source>
  25. <maven.compiler.target>${java.version}</maven.compiler.target>
  26. <argLine>-Djava.security.egd=file:/dev/./urandom -Xmx256m</argLine>
  27. <m2e.apt.activation>jdt_apt</m2e.apt.activation>
  28. <run.addResources>false</run.addResources>
  29. <!-- These remain empty unless the corresponding profile is active -->
  30. <profile.no-liquibase />
  31. <profile.swagger />
  32. <profile.tls />
  33. <!-- Dependency versions -->
  34. <jhipster-dependencies.version>2.0.29</jhipster-dependencies.version>
  35. <!-- The spring-boot version should match the one managed by
  36. https://mvnrepository.com/artifact/io.github.jhipster/jhipster-dependencies/${jhipster-dependencies.version} -->
  37. <spring-boot.version>2.0.7.RELEASE</spring-boot.version>
  38. <!-- The hibernate version should match the one managed by
  39. https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-dependencies/${spring-boot.version} -->
  40. <hibernate.version>5.2.17.Final</hibernate.version>
  41. <!-- The javassist version should match the one managed by
  42. https://mvnrepository.com/artifact/org.hibernate/hibernate-core/${hibernate.version} -->
  43. <javassist.version>3.22.0-GA</javassist.version>
  44. <!-- The liquibase version should match the one managed by
  45. https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-dependencies/${spring-boot.version} -->
  46. <liquibase.version>3.5.5</liquibase.version>
  47. <liquibase-hibernate5.version>3.6</liquibase-hibernate5.version>
  48. <validation-api.version>2.0.1.Final</validation-api.version>
  49. <mapstruct.version>1.2.0.Final</mapstruct.version>
  50. <!-- Plugin versions -->
  51. <maven-clean-plugin.version>3.1.0</maven-clean-plugin.version>
  52. <maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
  53. <maven-eclipse-plugin.version>2.10</maven-eclipse-plugin.version>
  54. <maven-enforcer-plugin.version>3.0.0-M2</maven-enforcer-plugin.version>
  55. <maven-resources-plugin.version>3.1.0</maven-resources-plugin.version>
  56. <maven-surefire-plugin.version>2.22.1</maven-surefire-plugin.version>
  57. <maven-war-plugin.version>3.2.2</maven-war-plugin.version>
  58. <jib-maven-plugin.version>0.9.11</jib-maven-plugin.version>
  59. <jacoco-maven-plugin.version>0.8.2</jacoco-maven-plugin.version>
  60. <lifecycle-mapping.version>1.0.0</lifecycle-mapping.version>
  61. <scala-maven-plugin.version>3.4.2</scala-maven-plugin.version>
  62. <sonar-maven-plugin.version>3.5.0.1254</sonar-maven-plugin.version>
  63. <git-commit-id-plugin.version>2.2.5</git-commit-id-plugin.version>
  64. <!-- Sonar properties -->
  65. <sonar.host.url>http://localhost:9001</sonar.host.url>
  66. <sonar.exclusions>src/main/webapp/content/**/*.*, src/main/webapp/i18n/*.js, target/www/**/*.*</sonar.exclusions>
  67. <sonar.issue.ignore.multicriteria>S3437,S4502,S4684,UndocumentedApi,BoldAndItalicTagsCheck</sonar.issue.ignore.multicriteria>
  68. <!-- Rule https://sonarcloud.io/coding_rules?open=Web%3ABoldAndItalicTagsCheck&rule_key=Web%3ABoldAndItalicTagsCheck is ignored. Even if we agree that using the "i" tag is an awful practice, this is what is recommended by http://fontawesome.io/examples/ -->
  69. <sonar.issue.ignore.multicriteria.BoldAndItalicTagsCheck.resourceKey>src/main/webapp/app/**/*.*</sonar.issue.ignore.multicriteria.BoldAndItalicTagsCheck.resourceKey>
  70. <sonar.issue.ignore.multicriteria.BoldAndItalicTagsCheck.ruleKey>Web:BoldAndItalicTagsCheck</sonar.issue.ignore.multicriteria.BoldAndItalicTagsCheck.ruleKey>
  71. <!-- Rule https://sonarcloud.io/coding_rules?open=squid%3AS3437&rule_key=squid%3AS3437 is ignored, as a JPA-managed field cannot be transient -->
  72. <sonar.issue.ignore.multicriteria.S3437.resourceKey>src/main/java/**/*</sonar.issue.ignore.multicriteria.S3437.resourceKey>
  73. <sonar.issue.ignore.multicriteria.S3437.ruleKey>squid:S3437</sonar.issue.ignore.multicriteria.S3437.ruleKey>
  74. <!-- Rule https://sonarcloud.io/coding_rules?open=squid%3AUndocumentedApi&rule_key=squid%3AUndocumentedApi is ignored, as we want to follow "clean code" guidelines and classes, methods and arguments names should be self-explanatory -->
  75. <sonar.issue.ignore.multicriteria.UndocumentedApi.resourceKey>src/main/java/**/*</sonar.issue.ignore.multicriteria.UndocumentedApi.resourceKey>
  76. <sonar.issue.ignore.multicriteria.UndocumentedApi.ruleKey>squid:UndocumentedApi</sonar.issue.ignore.multicriteria.UndocumentedApi.ruleKey>
  77. <!-- Rule https://sonarcloud.io/coding_rules?open=squid%3AS4502&rule_key=squid%3AS4502 is ignored, as for JWT tokens we are not subject to CSRF attack -->
  78. <sonar.issue.ignore.multicriteria.S4502.resourceKey>src/main/java/**/*</sonar.issue.ignore.multicriteria.S4502.resourceKey>
  79. <sonar.issue.ignore.multicriteria.S4502.ruleKey>squid:S4502</sonar.issue.ignore.multicriteria.S4502.ruleKey>
  80. <!-- Rule https://sonarcloud.io/coding_rules?open=squid%3AS4684&rule_key=squid%3AS4684 -->
  81. <sonar.issue.ignore.multicriteria.S4684.resourceKey>src/main/java/**/*</sonar.issue.ignore.multicriteria.S4684.resourceKey>
  82. <sonar.issue.ignore.multicriteria.S4684.ruleKey>squid:S4684</sonar.issue.ignore.multicriteria.S4684.ruleKey>
  83. <sonar.jacoco.reportPaths>${project.testresult.directory}/coverage/jacoco/jacoco.exec</sonar.jacoco.reportPaths>
  84. <sonar.java.codeCoveragePlugin>jacoco</sonar.java.codeCoveragePlugin>
  85. <sonar.sources>${project.basedir}/src/main/</sonar.sources>
  86. <sonar.surefire.reportsPath>${project.testresult.directory}/surefire-reports</sonar.surefire.reportsPath>
  87. <sonar.tests>${project.basedir}/src/test/</sonar.tests>
  88. <!-- jhipster-needle-maven-property -->
  89. <!--activiti 配置-->
  90. <activiti.version>6.0.0</activiti.version>
  91. </properties>
  92. <dependencyManagement>
  93. <dependencies>
  94. <dependency>
  95. <groupId>io.github.jhipster</groupId>
  96. <artifactId>jhipster-dependencies</artifactId>
  97. <version>${jhipster-dependencies.version}</version>
  98. <type>pom</type>
  99. <scope>import</scope>
  100. </dependency>
  101. <!-- jhipster-needle-maven-add-dependency-management -->
  102. </dependencies>
  103. </dependencyManagement>
  104. <dependencies>
  105. <dependency>
  106. <groupId>io.github.jhipster</groupId>
  107. <artifactId>jhipster-framework</artifactId>
  108. </dependency>
  109. <dependency>
  110. <groupId>org.springframework.boot</groupId>
  111. <artifactId>spring-boot-starter-cache</artifactId>
  112. </dependency>
  113. <dependency>
  114. <groupId>io.dropwizard.metrics</groupId>
  115. <artifactId>metrics-core</artifactId>
  116. </dependency>
  117. <dependency>
  118. <groupId>io.dropwizard.metrics</groupId>
  119. <artifactId>metrics-annotation</artifactId>
  120. </dependency>
  121. <dependency>
  122. <groupId>io.dropwizard.metrics</groupId>
  123. <artifactId>metrics-json</artifactId>
  124. </dependency>
  125. <dependency>
  126. <groupId>io.prometheus</groupId>
  127. <artifactId>simpleclient</artifactId>
  128. </dependency>
  129. <dependency>
  130. <groupId>io.prometheus</groupId>
  131. <artifactId>simpleclient_dropwizard</artifactId>
  132. </dependency>
  133. <dependency>
  134. <groupId>io.prometheus</groupId>
  135. <artifactId>simpleclient_servlet</artifactId>
  136. </dependency>
  137. <dependency>
  138. <groupId>io.dropwizard.metrics</groupId>
  139. <artifactId>metrics-jcache</artifactId>
  140. </dependency>
  141. <dependency>
  142. <groupId>io.dropwizard.metrics</groupId>
  143. <artifactId>metrics-jvm</artifactId>
  144. </dependency>
  145. <dependency>
  146. <groupId>io.dropwizard.metrics</groupId>
  147. <artifactId>metrics-servlet</artifactId>
  148. </dependency>
  149. <dependency>
  150. <groupId>io.dropwizard.metrics</groupId>
  151. <artifactId>metrics-servlets</artifactId>
  152. </dependency>
  153. <dependency>
  154. <groupId>com.fasterxml.jackson.datatype</groupId>
  155. <artifactId>jackson-datatype-hibernate5</artifactId>
  156. </dependency>
  157. <dependency>
  158. <groupId>com.fasterxml.jackson.datatype</groupId>
  159. <artifactId>jackson-datatype-hppc</artifactId>
  160. </dependency>
  161. <dependency>
  162. <groupId>com.fasterxml.jackson.datatype</groupId>
  163. <artifactId>jackson-datatype-jsr310</artifactId>
  164. </dependency>
  165. <dependency>
  166. <groupId>com.fasterxml.jackson.module</groupId>
  167. <artifactId>jackson-module-afterburner</artifactId>
  168. </dependency>
  169. <dependency>
  170. <groupId>com.h2database</groupId>
  171. <artifactId>h2</artifactId>
  172. <scope>test</scope>
  173. </dependency>
  174. <dependency>
  175. <groupId>com.jayway.jsonpath</groupId>
  176. <artifactId>json-path</artifactId>
  177. <scope>test</scope>
  178. <!-- parent POM declares this dependency in default (compile) scope -->
  179. </dependency>
  180. <dependency>
  181. <groupId>io.springfox</groupId>
  182. <artifactId>springfox-swagger2</artifactId>
  183. </dependency>
  184. <dependency>
  185. <groupId>io.springfox</groupId>
  186. <artifactId>springfox-bean-validators</artifactId>
  187. </dependency>
  188. <dependency>
  189. <groupId>com.mattbertolini</groupId>
  190. <artifactId>liquibase-slf4j</artifactId>
  191. </dependency>
  192. <dependency>
  193. <groupId>com.ryantenney.metrics</groupId>
  194. <artifactId>metrics-spring</artifactId>
  195. </dependency>
  196. <dependency>
  197. <groupId>com.zaxxer</groupId>
  198. <artifactId>HikariCP</artifactId>
  199. </dependency>
  200. <dependency>
  201. <groupId>commons-io</groupId>
  202. <artifactId>commons-io</artifactId>
  203. </dependency>
  204. <dependency>
  205. <groupId>org.apache.commons</groupId>
  206. <artifactId>commons-lang3</artifactId>
  207. </dependency>
  208. <dependency>
  209. <groupId>javax.cache</groupId>
  210. <artifactId>cache-api</artifactId>
  211. </dependency>
  212. <dependency>
  213. <groupId>mysql</groupId>
  214. <artifactId>mysql-connector-java</artifactId>
  215. </dependency>
  216. <dependency>
  217. <groupId>org.assertj</groupId>
  218. <artifactId>assertj-core</artifactId>
  219. <scope>test</scope>
  220. </dependency>
  221. <dependency>
  222. <groupId>org.ehcache</groupId>
  223. <artifactId>ehcache</artifactId>
  224. </dependency>
  225. <dependency>
  226. <groupId>org.hibernate</groupId>
  227. <artifactId>hibernate-jcache</artifactId>
  228. </dependency>
  229. <dependency>
  230. <groupId>org.hibernate</groupId>
  231. <artifactId>hibernate-jpamodelgen</artifactId>
  232. <scope>provided</scope>
  233. </dependency>
  234. <dependency>
  235. <groupId>org.hibernate</groupId>
  236. <artifactId>hibernate-envers</artifactId>
  237. </dependency>
  238. <dependency>
  239. <groupId>org.hibernate.validator</groupId>
  240. <artifactId>hibernate-validator</artifactId>
  241. </dependency>
  242. <dependency>
  243. <groupId>org.liquibase</groupId>
  244. <artifactId>liquibase-core</artifactId>
  245. </dependency>
  246. <dependency>
  247. <groupId>net.logstash.logback</groupId>
  248. <artifactId>logstash-logback-encoder</artifactId>
  249. </dependency>
  250. <dependency>
  251. <groupId>org.mapstruct</groupId>
  252. <artifactId>mapstruct-jdk8</artifactId>
  253. </dependency>
  254. <dependency>
  255. <groupId>org.mapstruct</groupId>
  256. <artifactId>mapstruct-processor</artifactId>
  257. <scope>provided</scope>
  258. </dependency>
  259. <dependency>
  260. <groupId>org.springframework.boot</groupId>
  261. <artifactId>spring-boot-configuration-processor</artifactId>
  262. <scope>provided</scope>
  263. </dependency>
  264. <dependency>
  265. <groupId>org.springframework.boot</groupId>
  266. <artifactId>spring-boot-loader-tools</artifactId>
  267. </dependency>
  268. <dependency>
  269. <groupId>org.springframework.boot</groupId>
  270. <artifactId>spring-boot-starter-actuator</artifactId>
  271. </dependency>
  272. <dependency>
  273. <groupId>org.springframework.boot</groupId>
  274. <artifactId>spring-boot-starter-aop</artifactId>
  275. </dependency>
  276. <dependency>
  277. <groupId>org.springframework.boot</groupId>
  278. <artifactId>spring-boot-starter-data-jpa</artifactId>
  279. </dependency>
  280. <dependency>
  281. <groupId>org.springframework.boot</groupId>
  282. <artifactId>spring-boot-starter-logging</artifactId>
  283. </dependency>
  284. <dependency>
  285. <groupId>org.springframework.boot</groupId>
  286. <artifactId>spring-boot-starter-mail</artifactId>
  287. </dependency>
  288. <dependency>
  289. <groupId>org.springframework.boot</groupId>
  290. <artifactId>spring-boot-starter-security</artifactId>
  291. </dependency>
  292. <dependency>
  293. <groupId>org.springframework.boot</groupId>
  294. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  295. </dependency>
  296. <dependency>
  297. <groupId>org.springframework.boot</groupId>
  298. <artifactId>spring-boot-starter-web</artifactId>
  299. </dependency>
  300. <dependency>
  301. <groupId>org.springframework.boot</groupId>
  302. <artifactId>spring-boot-starter-test</artifactId>
  303. <scope>test</scope>
  304. </dependency>
  305. <dependency>
  306. <groupId>org.springframework.boot</groupId>
  307. <artifactId>spring-boot-test</artifactId>
  308. <scope>test</scope>
  309. </dependency>
  310. <dependency>
  311. <groupId>org.springframework.security</groupId>
  312. <artifactId>spring-security-test</artifactId>
  313. <scope>test</scope>
  314. </dependency>
  315. <dependency>
  316. <groupId>org.zalando</groupId>
  317. <artifactId>problem-spring-web</artifactId>
  318. </dependency>
  319. <dependency>
  320. <groupId>io.jsonwebtoken</groupId>
  321. <artifactId>jjwt-api</artifactId>
  322. </dependency>
  323. <dependency>
  324. <groupId>io.jsonwebtoken</groupId>
  325. <artifactId>jjwt-impl</artifactId>
  326. <scope>runtime</scope>
  327. </dependency>
  328. <dependency>
  329. <groupId>io.jsonwebtoken</groupId>
  330. <artifactId>jjwt-jackson</artifactId>
  331. <scope>runtime</scope>
  332. </dependency>
  333. <!-- Spring Cloud -->
  334. <dependency>
  335. <groupId>org.springframework.boot</groupId>
  336. <artifactId>spring-boot-starter-cloud-connectors</artifactId>
  337. </dependency>
  338. <!-- Security -->
  339. <dependency>
  340. <groupId>org.springframework.security</groupId>
  341. <artifactId>spring-security-data</artifactId>
  342. </dependency>
  343. <!-- jhipster-needle-maven-add-dependency -->
  344. <!-- spring activiti -->
  345. <dependency>
  346. <groupId>org.activiti</groupId>
  347. <artifactId>activiti-spring-boot-starter-basic</artifactId>
  348. <version>${activiti.version}</version>
  349. </dependency>
  350. <dependency>
  351. <groupId>com.h2database</groupId>
  352. <artifactId>h2</artifactId>
  353. </dependency>
  354. <dependency>
  355. <groupId>org.activiti</groupId>
  356. <artifactId>activiti-spring-boot-starter-rest-api</artifactId>
  357. <!--<artifactId>spring-boot-starter-rest-api</artifactId>-->
  358. <version>${activiti.version}</version>
  359. </dependency>
  360. <dependency>
  361. <groupId>org.activiti</groupId>
  362. <artifactId>activiti-spring-boot-starter-actuator</artifactId>
  363. <version>${activiti.version}</version>
  364. </dependency>
  365. <!-- https://mvnrepository.com/artifact/com.aspose/aspose-cells -->
  366. <dependency>
  367. <groupId>com.aspose</groupId>
  368. <artifactId>aspose-cells</artifactId>
  369. <version>8.5.2</version>
  370. </dependency>
  371. <!-- https://mvnrepository.com/artifact/com.aspose/aspose.words -->
  372. <dependency>
  373. <groupId>com.aspose</groupId>
  374. <artifactId>aspose-words</artifactId>
  375. <version>16.8.0</version>
  376. </dependency>
  377. <!-- https://mvnrepository.com/artifact/org.apache.poi/poi -->
  378. <dependency>
  379. <groupId>org.apache.poi</groupId>
  380. <artifactId>poi</artifactId>
  381. <version>3.17</version>
  382. </dependency>
  383. <!-- https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml -->
  384. <dependency>
  385. <groupId>org.apache.poi</groupId>
  386. <artifactId>poi-ooxml</artifactId>
  387. <version>3.17</version>
  388. </dependency>
  389. <dependency>
  390. <groupId>org.apache.poi</groupId>
  391. <artifactId>poi-scratchpad</artifactId>
  392. <version>3.14</version>
  393. </dependency>
  394. <dependency>
  395. <groupId>fr.opensagres.xdocreport</groupId>
  396. <artifactId>xdocreport</artifactId>
  397. <version>1.0.6</version>
  398. </dependency>
  399. <dependency>
  400. <groupId>org.apache.poi</groupId>
  401. <artifactId>poi-ooxml-schemas</artifactId>
  402. <version>3.14</version>
  403. </dependency>
  404. <dependency>
  405. <groupId>org.apache.poi</groupId>
  406. <artifactId>ooxml-schemas</artifactId>
  407. <version>1.3</version>
  408. </dependency>
  409. <!-- 操作word -->
  410. <dependency>
  411. <groupId>com.deepoove</groupId>
  412. <artifactId>poi-tl</artifactId>
  413. <version>1.4.0</version>
  414. <exclusions>
  415. <exclusion>
  416. <groupId>org.slf4j</groupId>
  417. <artifactId>slf4j-log4j12</artifactId>
  418. </exclusion>
  419. <exclusion>
  420. <groupId>log4j</groupId>
  421. <artifactId>log4j</artifactId>
  422. </exclusion>
  423. </exclusions>
  424. </dependency>
  425. <dependency>
  426. <groupId>org.jsoup</groupId>
  427. <artifactId>jsoup</artifactId>
  428. <version>1.11.3</version>
  429. </dependency>
  430. <dependency>
  431. <groupId>xml-apis</groupId>
  432. <artifactId>xml-apis</artifactId>
  433. <version>1.3.04</version>
  434. </dependency>
  435. </dependencies>
  436. <build>
  437. <defaultGoal>spring-boot:run</defaultGoal>
  438. <plugins>
  439. <plugin>
  440. <groupId>org.apache.maven.plugins</groupId>
  441. <artifactId>maven-compiler-plugin</artifactId>
  442. <configuration>
  443. <annotationProcessorPaths>
  444. <path>
  445. <groupId>org.mapstruct</groupId>
  446. <artifactId>mapstruct-processor</artifactId>
  447. <version>${mapstruct.version}</version>
  448. </path>
  449. <!-- For JPA static metamodel generation -->
  450. <path>
  451. <groupId>org.hibernate</groupId>
  452. <artifactId>hibernate-jpamodelgen</artifactId>
  453. <version>${hibernate.version}</version>
  454. </path>
  455. </annotationProcessorPaths>
  456. </configuration>
  457. </plugin>
  458. <plugin>
  459. <groupId>org.apache.maven.plugins</groupId>
  460. <artifactId>maven-eclipse-plugin</artifactId>
  461. </plugin>
  462. <plugin>
  463. <groupId>org.apache.maven.plugins</groupId>
  464. <artifactId>maven-enforcer-plugin</artifactId>
  465. </plugin>
  466. <plugin>
  467. <groupId>org.apache.maven.plugins</groupId>
  468. <artifactId>maven-resources-plugin</artifactId>
  469. </plugin>
  470. <plugin>
  471. <groupId>org.apache.maven.plugins</groupId>
  472. <artifactId>maven-surefire-plugin</artifactId>
  473. </plugin>
  474. <plugin>
  475. <groupId>org.jacoco</groupId>
  476. <artifactId>jacoco-maven-plugin</artifactId>
  477. </plugin>
  478. <plugin>
  479. <groupId>org.sonarsource.scanner.maven</groupId>
  480. <artifactId>sonar-maven-plugin</artifactId>
  481. </plugin>
  482. <plugin>
  483. <groupId>org.liquibase</groupId>
  484. <artifactId>liquibase-maven-plugin</artifactId>
  485. </plugin>
  486. <plugin>
  487. <groupId>org.springframework.boot</groupId>
  488. <artifactId>spring-boot-maven-plugin</artifactId>
  489. <executions>
  490. <execution>
  491. <goals>
  492. <goal>repackage</goal>
  493. </goals>
  494. </execution>
  495. </executions>
  496. <configuration>
  497. <mainClass>${start-class}</mainClass>
  498. <executable>true</executable>
  499. <fork>true</fork>
  500. <!--
  501. Enable the line below to have remote debugging of your application on port 5005
  502. <jvmArguments>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005</jvmArguments>
  503. -->
  504. </configuration>
  505. </plugin>
  506. <plugin>
  507. <groupId>com.google.cloud.tools</groupId>
  508. <artifactId>jib-maven-plugin</artifactId>
  509. </plugin>
  510. <!-- jhipster-needle-maven-add-plugin -->
  511. </plugins>
  512. <pluginManagement>
  513. <plugins>
  514. <plugin>
  515. <groupId>org.apache.maven.plugins</groupId>
  516. <artifactId>maven-compiler-plugin</artifactId>
  517. <version>${maven-compiler-plugin.version}</version>
  518. </plugin>
  519. <plugin>
  520. <groupId>pl.project13.maven</groupId>
  521. <artifactId>git-commit-id-plugin</artifactId>
  522. <version>${git-commit-id-plugin.version}</version>
  523. <executions>
  524. <execution>
  525. <goals>
  526. <goal>revision</goal>
  527. </goals>
  528. </execution>
  529. </executions>
  530. <configuration>
  531. <failOnNoGitDirectory>false</failOnNoGitDirectory>
  532. <generateGitPropertiesFile>true</generateGitPropertiesFile>
  533. <includeOnlyProperties>
  534. <includeOnlyProperty>^git.commit.id.abbrev$</includeOnlyProperty>
  535. <includeOnlyProperty>^git.commit.id.describe$</includeOnlyProperty>
  536. <includeOnlyProperty>^git.branch$</includeOnlyProperty>
  537. </includeOnlyProperties>
  538. </configuration>
  539. </plugin>
  540. <plugin>
  541. <groupId>org.jacoco</groupId>
  542. <artifactId>jacoco-maven-plugin</artifactId>
  543. <version>${jacoco-maven-plugin.version}</version>
  544. <executions>
  545. <execution>
  546. <id>pre-unit-tests</id>
  547. <goals>
  548. <goal>prepare-agent</goal>
  549. </goals>
  550. <configuration>
  551. <!-- Sets the path to the file which contains the execution data. -->
  552. <destFile>${project.testresult.directory}/coverage/jacoco/jacoco.exec</destFile>
  553. </configuration>
  554. </execution>
  555. <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run -->
  556. <execution>
  557. <id>post-unit-test</id>
  558. <phase>test</phase>
  559. <goals>
  560. <goal>report</goal>
  561. </goals>
  562. <configuration>
  563. <dataFile>${project.testresult.directory}/coverage/jacoco/jacoco.exec</dataFile>
  564. <outputDirectory>${project.testresult.directory}/coverage/jacoco</outputDirectory>
  565. </configuration>
  566. </execution>
  567. </executions>
  568. </plugin>
  569. <plugin>
  570. <groupId>com.google.cloud.tools</groupId>
  571. <artifactId>jib-maven-plugin</artifactId>
  572. <version>${jib-maven-plugin.version}</version>
  573. <configuration>
  574. <from>
  575. <image>openjdk:8-jre-alpine</image>
  576. </from>
  577. <to>
  578. <image>actiapi:latest</image>
  579. </to>
  580. <container>
  581. <entrypoint>
  582. <shell>sh</shell>
  583. <option>-c</option>
  584. <arg>chmod +x /entrypoint.sh &amp;&amp; sync &amp;&amp; /entrypoint.sh</arg>
  585. </entrypoint>
  586. <ports>
  587. <port>8080</port>
  588. </ports>
  589. <environment>
  590. <SPRING_OUTPUT_ANSI_ENABLED>ALWAYS</SPRING_OUTPUT_ANSI_ENABLED>
  591. <JHIPSTER_SLEEP>0</JHIPSTER_SLEEP>
  592. </environment>
  593. <useCurrentTimestamp>true</useCurrentTimestamp>
  594. </container>
  595. </configuration>
  596. </plugin>
  597. <plugin>
  598. <groupId>org.liquibase</groupId>
  599. <artifactId>liquibase-maven-plugin</artifactId>
  600. <version>${liquibase.version}</version>
  601. <configuration>
  602. <changeLogFile>src/main/resources/config/liquibase/master.xml</changeLogFile>
  603. <diffChangeLogFile>src/main/resources/config/liquibase/changelog/${maven.build.timestamp}_changelog.xml</diffChangeLogFile>
  604. <driver>com.mysql.jdbc.Driver</driver>
  605. <url>jdbc:mysql://localhost:3306/ActiApi</url>
  606. <defaultSchemaName>ActiApi</defaultSchemaName>
  607. <username>root</username>
  608. <password></password>
  609. <referenceUrl>hibernate:spring:com.common.workflow.domain?dialect=org.hibernate.dialect.MySQL5InnoDBDialect&amp;hibernate.physical_naming_strategy=org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy&amp;hibernate.implicit_naming_strategy=org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy</referenceUrl>
  610. <verbose>true</verbose>
  611. <logging>debug</logging>
  612. </configuration>
  613. <dependencies>
  614. <dependency>
  615. <groupId>org.javassist</groupId>
  616. <artifactId>javassist</artifactId>
  617. <version>${javassist.version}</version>
  618. </dependency>
  619. <dependency>
  620. <groupId>org.liquibase.ext</groupId>
  621. <artifactId>liquibase-hibernate5</artifactId>
  622. <version>${liquibase-hibernate5.version}</version>
  623. </dependency>
  624. <dependency>
  625. <groupId>org.springframework.boot</groupId>
  626. <artifactId>spring-boot-starter-data-jpa</artifactId>
  627. <version>${spring-boot.version}</version>
  628. </dependency>
  629. <dependency>
  630. <groupId>javax.validation</groupId>
  631. <artifactId>validation-api</artifactId>
  632. <version>${validation-api.version}</version>
  633. </dependency>
  634. </dependencies>
  635. </plugin>
  636. <plugin>
  637. <artifactId>maven-clean-plugin</artifactId>
  638. <version>${maven-clean-plugin.version}</version>
  639. </plugin>
  640. <plugin>
  641. <groupId>org.apache.maven.plugins</groupId>
  642. <artifactId>maven-eclipse-plugin</artifactId>
  643. <version>${maven-eclipse-plugin.version}</version>
  644. <configuration>
  645. <downloadSources>true</downloadSources>
  646. <downloadJavadocs>true</downloadJavadocs>
  647. </configuration>
  648. </plugin>
  649. <plugin>
  650. <groupId>org.apache.maven.plugins</groupId>
  651. <artifactId>maven-enforcer-plugin</artifactId>
  652. <version>${maven-enforcer-plugin.version}</version>
  653. <executions>
  654. <execution>
  655. <id>enforce-versions</id>
  656. <goals>
  657. <goal>enforce</goal>
  658. </goals>
  659. </execution>
  660. </executions>
  661. <configuration>
  662. <rules>
  663. <requireMavenVersion>
  664. <message>You are running an older version of Maven. JHipster requires at least Maven ${maven.version}</message>
  665. <version>[${maven.version},)</version>
  666. </requireMavenVersion>
  667. <requireJavaVersion>
  668. <!-- Until JHipster supports JDK 9 -->
  669. <message>You are running an incompatible version of Java. JHipster requires JDK ${java.version}</message>
  670. <version>[1.8,1.9)</version>
  671. </requireJavaVersion>
  672. </rules>
  673. </configuration>
  674. </plugin>
  675. <plugin>
  676. <groupId>org.apache.maven.plugins</groupId>
  677. <artifactId>maven-resources-plugin</artifactId>
  678. <version>${maven-resources-plugin.version}</version>
  679. <executions>
  680. <execution>
  681. <id>default-resources</id>
  682. <phase>validate</phase>
  683. <goals>
  684. <goal>copy-resources</goal>
  685. </goals>
  686. <configuration>
  687. <outputDirectory>target/classes</outputDirectory>
  688. <useDefaultDelimiters>false</useDefaultDelimiters>
  689. <delimiters>
  690. <delimiter>#</delimiter>
  691. </delimiters>
  692. <resources>
  693. <resource>
  694. <directory>src/main/resources/</directory>
  695. <filtering>true</filtering>
  696. <includes>
  697. <include>config/*.yml</include>
  698. </includes>
  699. </resource>
  700. <resource>
  701. <directory>src/main/resources/</directory>
  702. <filtering>false</filtering>
  703. <excludes>
  704. <exclude>config/*.yml</exclude>
  705. </excludes>
  706. </resource>
  707. </resources>
  708. </configuration>
  709. </execution>
  710. <execution>
  711. <id>jib-www-resources</id>
  712. <phase>verify</phase>
  713. <goals>
  714. <goal>copy-resources</goal>
  715. </goals>
  716. <configuration>
  717. <outputDirectory>target/classes/static/</outputDirectory>
  718. <resources>
  719. <resource>
  720. <directory>target/www</directory>
  721. <filtering>false</filtering>
  722. </resource>
  723. </resources>
  724. </configuration>
  725. </execution>
  726. </executions>
  727. </plugin>
  728. <plugin>
  729. <groupId>org.apache.maven.plugins</groupId>
  730. <artifactId>maven-surefire-plugin</artifactId>
  731. <version>${maven-surefire-plugin.version}</version>
  732. <configuration>
  733. <!-- Force alphabetical order to have a reproducible build -->
  734. <runOrder>alphabetical</runOrder>
  735. <!-- Fixes a bug which will be solved in next version after 2.22.1 then this can be removed -->
  736. <!-- see: https://issues.apache.org/jira/browse/SUREFIRE-1588 -->
  737. <useSystemClassLoader>false</useSystemClassLoader>
  738. </configuration>
  739. </plugin>
  740. <plugin>
  741. <groupId>org.apache.maven.plugins</groupId>
  742. <artifactId>maven-war-plugin</artifactId>
  743. <version>${maven-war-plugin.version}</version>
  744. </plugin>
  745. <plugin>
  746. <groupId>net.alchim31.maven</groupId>
  747. <artifactId>scala-maven-plugin</artifactId>
  748. <version>${scala-maven-plugin.version}</version>
  749. <executions>
  750. <execution>
  751. <id>compile</id>
  752. <phase>compile</phase>
  753. <goals>
  754. <goal>add-source</goal>
  755. <goal>compile</goal>
  756. </goals>
  757. </execution>
  758. <execution>
  759. <id>test-compile</id>
  760. <phase>test-compile</phase>
  761. <goals>
  762. <goal>add-source</goal>
  763. <goal>testCompile</goal>
  764. </goals>
  765. </execution>
  766. </executions>
  767. <configuration>
  768. <recompileMode>incremental</recompileMode>
  769. <verbose>true</verbose>
  770. <scalaVersion>${scala.version}</scalaVersion>
  771. </configuration>
  772. </plugin>
  773. <plugin>
  774. <groupId>org.sonarsource.scanner.maven</groupId>
  775. <artifactId>sonar-maven-plugin</artifactId>
  776. <version>${sonar-maven-plugin.version}</version>
  777. </plugin>
  778. <plugin>
  779. <groupId>org.springframework.boot</groupId>
  780. <artifactId>spring-boot-maven-plugin</artifactId>
  781. <version>${spring-boot.version}</version>
  782. </plugin>
  783. </plugins>
  784. </pluginManagement>
  785. </build>
  786. <profiles>
  787. <profile>
  788. <id>no-liquibase</id>
  789. <properties>
  790. <profile.no-liquibase>,no-liquibase</profile.no-liquibase>
  791. </properties>
  792. </profile>
  793. <profile>
  794. <id>swagger</id>
  795. <properties>
  796. <profile.swagger>,swagger</profile.swagger>
  797. </properties>
  798. </profile>
  799. <profile>
  800. <id>tls</id>
  801. <properties>
  802. <profile.tls>,tls</profile.tls>
  803. </properties>
  804. </profile>
  805. <profile>
  806. <id>dev</id>
  807. <activation>
  808. <activeByDefault>true</activeByDefault>
  809. </activation>
  810. <dependencies>
  811. <dependency>
  812. <groupId>org.springframework.boot</groupId>
  813. <artifactId>spring-boot-starter-undertow</artifactId>
  814. </dependency>
  815. <dependency>
  816. <groupId>org.springframework.boot</groupId>
  817. <artifactId>spring-boot-devtools</artifactId>
  818. <optional>true</optional>
  819. </dependency>
  820. </dependencies>
  821. <build>
  822. <plugins>
  823. <plugin>
  824. <groupId>org.apache.maven.plugins</groupId>
  825. <artifactId>maven-war-plugin</artifactId>
  826. <configuration>
  827. <failOnMissingWebXml>false</failOnMissingWebXml>
  828. </configuration>
  829. </plugin>
  830. </plugins>
  831. </build>
  832. <properties>
  833. <!-- default Spring profiles -->
  834. <spring.profiles.active>dev${profile.tls}${profile.no-liquibase}</spring.profiles.active>
  835. </properties>
  836. </profile>
  837. <profile>
  838. <id>prod</id>
  839. <dependencies>
  840. <dependency>
  841. <groupId>org.springframework.boot</groupId>
  842. <artifactId>spring-boot-starter-undertow</artifactId>
  843. </dependency>
  844. </dependencies>
  845. <build>
  846. <plugins>
  847. <plugin>
  848. <artifactId>maven-clean-plugin</artifactId>
  849. <configuration>
  850. <filesets>
  851. <fileset>
  852. <directory>target/www/</directory>
  853. </fileset>
  854. </filesets>
  855. </configuration>
  856. </plugin>
  857. <plugin>
  858. <groupId>org.apache.maven.plugins</groupId>
  859. <artifactId>maven-war-plugin</artifactId>
  860. <configuration>
  861. <failOnMissingWebXml>false</failOnMissingWebXml>
  862. </configuration>
  863. </plugin>
  864. <plugin>
  865. <groupId>org.springframework.boot</groupId>
  866. <artifactId>spring-boot-maven-plugin</artifactId>
  867. <configuration>
  868. <mainClass>${start-class}</mainClass>
  869. <executable>true</executable>
  870. </configuration>
  871. <executions>
  872. <execution>
  873. <goals>
  874. <goal>build-info</goal>
  875. </goals>
  876. </execution>
  877. </executions>
  878. </plugin>
  879. <plugin>
  880. <groupId>pl.project13.maven</groupId>
  881. <artifactId>git-commit-id-plugin</artifactId>
  882. </plugin>
  883. </plugins>
  884. </build>
  885. <properties>
  886. <!-- default Spring profiles -->
  887. <spring.profiles.active>prod${profile.swagger}${profile.no-liquibase}</spring.profiles.active>
  888. </properties>
  889. </profile>
  890. <profile>
  891. <!--
  892. Profile for doing "continuous compilation" with the Scala Maven plugin.
  893. It allows automatic compilation of Java classes as soon as they are saved.
  894. To use it, run in 3 terminals:
  895. - './mvnw -Pcc scala:cc' for continuous compilation of your classes
  896. - './mvnw -Pcc -Pdev' for hot reload of Spring boot
  897. - 'npm start/yarn start' for hot reload of the HTML/JavaScript asset
  898. Everything should hot reload automatically!
  899. -->
  900. <id>cc</id>
  901. <dependencies>
  902. <dependency>
  903. <groupId>org.springframework.boot</groupId>
  904. <artifactId>spring-boot-starter-undertow</artifactId>
  905. </dependency>
  906. <dependency>
  907. <groupId>org.springframework.boot</groupId>
  908. <artifactId>spring-boot-devtools</artifactId>
  909. <optional>true</optional>
  910. </dependency>
  911. </dependencies>
  912. <build>
  913. <plugins>
  914. <plugin>
  915. <groupId>org.apache.maven.plugins</groupId>
  916. <artifactId>maven-war-plugin</artifactId>
  917. <configuration>
  918. <failOnMissingWebXml>false</failOnMissingWebXml>
  919. <warSourceDirectory>src/main/webapp/</warSourceDirectory>
  920. </configuration>
  921. </plugin>
  922. <plugin>
  923. <groupId>org.springframework.boot</groupId>
  924. <artifactId>spring-boot-maven-plugin</artifactId>
  925. <configuration>
  926. <mainClass>${start-class}</mainClass>
  927. <executable>true</executable>
  928. <fork>true</fork>
  929. <addResources>true</addResources>
  930. <!--
  931. Enable the line below to have remote debugging of your application on port 5005
  932. <jvmArguments>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005</jvmArguments>
  933. -->
  934. </configuration>
  935. </plugin>
  936. <plugin>
  937. <groupId>org.apache.maven.plugins</groupId>
  938. <artifactId>maven-compiler-plugin</artifactId>
  939. <executions>
  940. <execution>
  941. <id>default-compile</id>
  942. <phase>none</phase>
  943. </execution>
  944. <execution>
  945. <id>default-testCompile</id>
  946. <phase>none</phase>
  947. </execution>
  948. </executions>
  949. </plugin>
  950. <plugin>
  951. <groupId>net.alchim31.maven</groupId>
  952. <artifactId>scala-maven-plugin</artifactId>
  953. </plugin>
  954. </plugins>
  955. </build>
  956. <properties>
  957. <!-- default Spring profiles -->
  958. <spring.profiles.active>dev,swagger</spring.profiles.active>
  959. </properties>
  960. </profile>
  961. <profile>
  962. <!--
  963. Profile for applying IDE-specific configuration.
  964. At the moment it configures MapStruct and Hibernate JPA Metamodel Generator, which you need when working
  965. with DTOs and entity filtering.
  966. -->
  967. <id>IDE</id>
  968. <dependencies>
  969. <dependency>
  970. <groupId>org.mapstruct</groupId>
  971. <artifactId>mapstruct-processor</artifactId>
  972. </dependency>
  973. <dependency>
  974. <groupId>org.hibernate</groupId>
  975. <artifactId>hibernate-jpamodelgen</artifactId>
  976. </dependency>
  977. </dependencies>
  978. </profile>
  979. <profile>
  980. <!-- This is automatically activated when working in Eclipse -->
  981. <id>eclipse</id>
  982. <activation>
  983. <property>
  984. <name>m2e.version</name>
  985. </property>
  986. </activation>
  987. <build>
  988. <pluginManagement>
  989. <plugins>
  990. <!--
  991. This plugin's configuration is used to store Eclipse m2e settings only.
  992. It has no influence on the Maven build itself.
  993. Remove when the m2e plugin can correctly bind to Maven lifecycle
  994. -->
  995. <plugin>
  996. <groupId>org.eclipse.m2e</groupId>
  997. <artifactId>lifecycle-mapping</artifactId>
  998. <version>${lifecycle-mapping.version}</version>
  999. <configuration>
  1000. <lifecycleMappingMetadata>
  1001. <pluginExecutions>
  1002. <pluginExecution>
  1003. <pluginExecutionFilter>
  1004. <groupId>org.jacoco</groupId>
  1005. <artifactId>
  1006. jacoco-maven-plugin
  1007. </artifactId>
  1008. <versionRange>
  1009. ${jacoco-maven-plugin.version}
  1010. </versionRange>
  1011. <goals>
  1012. <goal>prepare-agent</goal>
  1013. </goals>
  1014. </pluginExecutionFilter>
  1015. <action>
  1016. <ignore/>
  1017. </action>
  1018. </pluginExecution>
  1019. </pluginExecutions>
  1020. </lifecycleMappingMetadata>
  1021. </configuration>
  1022. </plugin>
  1023. </plugins>
  1024. </pluginManagement>
  1025. </build>
  1026. </profile>
  1027. <!-- jhipster-needle-maven-add-profile -->
  1028. </profiles>
  1029. </project>