pom.xml 49 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061
  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. <!--swagger-ui-->
  436. <!--<dependency>
  437. <groupId>io.springfox</groupId>
  438. <artifactId>springfox-swagger2</artifactId>
  439. <version>2.9.2</version>
  440. </dependency>-->
  441. <dependency>
  442. <groupId>io.springfox</groupId>
  443. <artifactId>springfox-swagger-ui</artifactId>
  444. <version>2.8.0</version>
  445. </dependency>
  446. <!--swagger-ui-beauty-->
  447. <dependency>
  448. <groupId>com.github.xiaoymin</groupId>
  449. <artifactId>swagger-bootstrap-ui</artifactId>
  450. <version>1.9.6</version>
  451. </dependency>
  452. </dependencies>
  453. <build>
  454. <defaultGoal>spring-boot:run</defaultGoal>
  455. <plugins>
  456. <plugin>
  457. <groupId>org.apache.maven.plugins</groupId>
  458. <artifactId>maven-compiler-plugin</artifactId>
  459. <configuration>
  460. <annotationProcessorPaths>
  461. <path>
  462. <groupId>org.mapstruct</groupId>
  463. <artifactId>mapstruct-processor</artifactId>
  464. <version>${mapstruct.version}</version>
  465. </path>
  466. <!-- For JPA static metamodel generation -->
  467. <path>
  468. <groupId>org.hibernate</groupId>
  469. <artifactId>hibernate-jpamodelgen</artifactId>
  470. <version>${hibernate.version}</version>
  471. </path>
  472. </annotationProcessorPaths>
  473. </configuration>
  474. </plugin>
  475. <plugin>
  476. <groupId>org.apache.maven.plugins</groupId>
  477. <artifactId>maven-eclipse-plugin</artifactId>
  478. </plugin>
  479. <plugin>
  480. <groupId>org.apache.maven.plugins</groupId>
  481. <artifactId>maven-enforcer-plugin</artifactId>
  482. </plugin>
  483. <plugin>
  484. <groupId>org.apache.maven.plugins</groupId>
  485. <artifactId>maven-resources-plugin</artifactId>
  486. </plugin>
  487. <plugin>
  488. <groupId>org.apache.maven.plugins</groupId>
  489. <artifactId>maven-surefire-plugin</artifactId>
  490. </plugin>
  491. <plugin>
  492. <groupId>org.jacoco</groupId>
  493. <artifactId>jacoco-maven-plugin</artifactId>
  494. </plugin>
  495. <plugin>
  496. <groupId>org.sonarsource.scanner.maven</groupId>
  497. <artifactId>sonar-maven-plugin</artifactId>
  498. </plugin>
  499. <plugin>
  500. <groupId>org.liquibase</groupId>
  501. <artifactId>liquibase-maven-plugin</artifactId>
  502. </plugin>
  503. <plugin>
  504. <groupId>org.springframework.boot</groupId>
  505. <artifactId>spring-boot-maven-plugin</artifactId>
  506. <executions>
  507. <execution>
  508. <goals>
  509. <goal>repackage</goal>
  510. </goals>
  511. </execution>
  512. </executions>
  513. <configuration>
  514. <mainClass>${start-class}</mainClass>
  515. <executable>true</executable>
  516. <fork>true</fork>
  517. <!--
  518. Enable the line below to have remote debugging of your application on port 5005
  519. <jvmArguments>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005</jvmArguments>
  520. -->
  521. </configuration>
  522. </plugin>
  523. <plugin>
  524. <groupId>com.google.cloud.tools</groupId>
  525. <artifactId>jib-maven-plugin</artifactId>
  526. </plugin>
  527. <!-- jhipster-needle-maven-add-plugin -->
  528. </plugins>
  529. <pluginManagement>
  530. <plugins>
  531. <plugin>
  532. <groupId>org.apache.maven.plugins</groupId>
  533. <artifactId>maven-compiler-plugin</artifactId>
  534. <version>${maven-compiler-plugin.version}</version>
  535. </plugin>
  536. <plugin>
  537. <groupId>pl.project13.maven</groupId>
  538. <artifactId>git-commit-id-plugin</artifactId>
  539. <version>${git-commit-id-plugin.version}</version>
  540. <executions>
  541. <execution>
  542. <goals>
  543. <goal>revision</goal>
  544. </goals>
  545. </execution>
  546. </executions>
  547. <configuration>
  548. <failOnNoGitDirectory>false</failOnNoGitDirectory>
  549. <generateGitPropertiesFile>true</generateGitPropertiesFile>
  550. <includeOnlyProperties>
  551. <includeOnlyProperty>^git.commit.id.abbrev$</includeOnlyProperty>
  552. <includeOnlyProperty>^git.commit.id.describe$</includeOnlyProperty>
  553. <includeOnlyProperty>^git.branch$</includeOnlyProperty>
  554. </includeOnlyProperties>
  555. </configuration>
  556. </plugin>
  557. <plugin>
  558. <groupId>org.jacoco</groupId>
  559. <artifactId>jacoco-maven-plugin</artifactId>
  560. <version>${jacoco-maven-plugin.version}</version>
  561. <executions>
  562. <execution>
  563. <id>pre-unit-tests</id>
  564. <goals>
  565. <goal>prepare-agent</goal>
  566. </goals>
  567. <configuration>
  568. <!-- Sets the path to the file which contains the execution data. -->
  569. <destFile>${project.testresult.directory}/coverage/jacoco/jacoco.exec</destFile>
  570. </configuration>
  571. </execution>
  572. <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run -->
  573. <execution>
  574. <id>post-unit-test</id>
  575. <phase>test</phase>
  576. <goals>
  577. <goal>report</goal>
  578. </goals>
  579. <configuration>
  580. <dataFile>${project.testresult.directory}/coverage/jacoco/jacoco.exec</dataFile>
  581. <outputDirectory>${project.testresult.directory}/coverage/jacoco</outputDirectory>
  582. </configuration>
  583. </execution>
  584. </executions>
  585. </plugin>
  586. <plugin>
  587. <groupId>com.google.cloud.tools</groupId>
  588. <artifactId>jib-maven-plugin</artifactId>
  589. <version>${jib-maven-plugin.version}</version>
  590. <configuration>
  591. <from>
  592. <image>openjdk:8-jre-alpine</image>
  593. </from>
  594. <to>
  595. <image>actiapi:latest</image>
  596. </to>
  597. <container>
  598. <entrypoint>
  599. <shell>sh</shell>
  600. <option>-c</option>
  601. <arg>chmod +x /entrypoint.sh &amp;&amp; sync &amp;&amp; /entrypoint.sh</arg>
  602. </entrypoint>
  603. <ports>
  604. <port>8080</port>
  605. </ports>
  606. <environment>
  607. <SPRING_OUTPUT_ANSI_ENABLED>ALWAYS</SPRING_OUTPUT_ANSI_ENABLED>
  608. <JHIPSTER_SLEEP>0</JHIPSTER_SLEEP>
  609. </environment>
  610. <useCurrentTimestamp>true</useCurrentTimestamp>
  611. </container>
  612. </configuration>
  613. </plugin>
  614. <plugin>
  615. <groupId>org.liquibase</groupId>
  616. <artifactId>liquibase-maven-plugin</artifactId>
  617. <version>${liquibase.version}</version>
  618. <configuration>
  619. <changeLogFile>src/main/resources/config/liquibase/master.xml</changeLogFile>
  620. <diffChangeLogFile>src/main/resources/config/liquibase/changelog/${maven.build.timestamp}_changelog.xml</diffChangeLogFile>
  621. <driver>com.mysql.jdbc.Driver</driver>
  622. <url>jdbc:mysql://localhost:3306/ActiApi</url>
  623. <defaultSchemaName>ActiApi</defaultSchemaName>
  624. <username>root</username>
  625. <password></password>
  626. <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>
  627. <verbose>true</verbose>
  628. <logging>debug</logging>
  629. </configuration>
  630. <dependencies>
  631. <dependency>
  632. <groupId>org.javassist</groupId>
  633. <artifactId>javassist</artifactId>
  634. <version>${javassist.version}</version>
  635. </dependency>
  636. <dependency>
  637. <groupId>org.liquibase.ext</groupId>
  638. <artifactId>liquibase-hibernate5</artifactId>
  639. <version>${liquibase-hibernate5.version}</version>
  640. </dependency>
  641. <dependency>
  642. <groupId>org.springframework.boot</groupId>
  643. <artifactId>spring-boot-starter-data-jpa</artifactId>
  644. <version>${spring-boot.version}</version>
  645. </dependency>
  646. <dependency>
  647. <groupId>javax.validation</groupId>
  648. <artifactId>validation-api</artifactId>
  649. <version>${validation-api.version}</version>
  650. </dependency>
  651. </dependencies>
  652. </plugin>
  653. <plugin>
  654. <artifactId>maven-clean-plugin</artifactId>
  655. <version>${maven-clean-plugin.version}</version>
  656. </plugin>
  657. <plugin>
  658. <groupId>org.apache.maven.plugins</groupId>
  659. <artifactId>maven-eclipse-plugin</artifactId>
  660. <version>${maven-eclipse-plugin.version}</version>
  661. <configuration>
  662. <downloadSources>true</downloadSources>
  663. <downloadJavadocs>true</downloadJavadocs>
  664. </configuration>
  665. </plugin>
  666. <plugin>
  667. <groupId>org.apache.maven.plugins</groupId>
  668. <artifactId>maven-enforcer-plugin</artifactId>
  669. <version>${maven-enforcer-plugin.version}</version>
  670. <executions>
  671. <execution>
  672. <id>enforce-versions</id>
  673. <goals>
  674. <goal>enforce</goal>
  675. </goals>
  676. </execution>
  677. </executions>
  678. <configuration>
  679. <rules>
  680. <requireMavenVersion>
  681. <message>You are running an older version of Maven. JHipster requires at least Maven ${maven.version}</message>
  682. <version>[${maven.version},)</version>
  683. </requireMavenVersion>
  684. <requireJavaVersion>
  685. <!-- Until JHipster supports JDK 9 -->
  686. <message>You are running an incompatible version of Java. JHipster requires JDK ${java.version}</message>
  687. <version>[1.8,1.9)</version>
  688. </requireJavaVersion>
  689. </rules>
  690. </configuration>
  691. </plugin>
  692. <plugin>
  693. <groupId>org.apache.maven.plugins</groupId>
  694. <artifactId>maven-resources-plugin</artifactId>
  695. <version>${maven-resources-plugin.version}</version>
  696. <executions>
  697. <execution>
  698. <id>default-resources</id>
  699. <phase>validate</phase>
  700. <goals>
  701. <goal>copy-resources</goal>
  702. </goals>
  703. <configuration>
  704. <outputDirectory>target/classes</outputDirectory>
  705. <useDefaultDelimiters>false</useDefaultDelimiters>
  706. <delimiters>
  707. <delimiter>#</delimiter>
  708. </delimiters>
  709. <resources>
  710. <resource>
  711. <directory>src/main/resources/</directory>
  712. <filtering>true</filtering>
  713. <includes>
  714. <include>config/*.yml</include>
  715. </includes>
  716. </resource>
  717. <resource>
  718. <directory>src/main/resources/</directory>
  719. <filtering>false</filtering>
  720. <excludes>
  721. <exclude>config/*.yml</exclude>
  722. </excludes>
  723. </resource>
  724. </resources>
  725. </configuration>
  726. </execution>
  727. <execution>
  728. <id>jib-www-resources</id>
  729. <phase>verify</phase>
  730. <goals>
  731. <goal>copy-resources</goal>
  732. </goals>
  733. <configuration>
  734. <outputDirectory>target/classes/static/</outputDirectory>
  735. <resources>
  736. <resource>
  737. <directory>target/www</directory>
  738. <filtering>false</filtering>
  739. </resource>
  740. </resources>
  741. </configuration>
  742. </execution>
  743. </executions>
  744. </plugin>
  745. <plugin>
  746. <groupId>org.apache.maven.plugins</groupId>
  747. <artifactId>maven-surefire-plugin</artifactId>
  748. <version>${maven-surefire-plugin.version}</version>
  749. <configuration>
  750. <!-- Force alphabetical order to have a reproducible build -->
  751. <runOrder>alphabetical</runOrder>
  752. <!-- Fixes a bug which will be solved in next version after 2.22.1 then this can be removed -->
  753. <!-- see: https://issues.apache.org/jira/browse/SUREFIRE-1588 -->
  754. <useSystemClassLoader>false</useSystemClassLoader>
  755. </configuration>
  756. </plugin>
  757. <plugin>
  758. <groupId>org.apache.maven.plugins</groupId>
  759. <artifactId>maven-war-plugin</artifactId>
  760. <version>${maven-war-plugin.version}</version>
  761. </plugin>
  762. <plugin>
  763. <groupId>net.alchim31.maven</groupId>
  764. <artifactId>scala-maven-plugin</artifactId>
  765. <version>${scala-maven-plugin.version}</version>
  766. <executions>
  767. <execution>
  768. <id>compile</id>
  769. <phase>compile</phase>
  770. <goals>
  771. <goal>add-source</goal>
  772. <goal>compile</goal>
  773. </goals>
  774. </execution>
  775. <execution>
  776. <id>test-compile</id>
  777. <phase>test-compile</phase>
  778. <goals>
  779. <goal>add-source</goal>
  780. <goal>testCompile</goal>
  781. </goals>
  782. </execution>
  783. </executions>
  784. <configuration>
  785. <recompileMode>incremental</recompileMode>
  786. <verbose>true</verbose>
  787. <scalaVersion>${scala.version}</scalaVersion>
  788. </configuration>
  789. </plugin>
  790. <plugin>
  791. <groupId>org.sonarsource.scanner.maven</groupId>
  792. <artifactId>sonar-maven-plugin</artifactId>
  793. <version>${sonar-maven-plugin.version}</version>
  794. </plugin>
  795. <plugin>
  796. <groupId>org.springframework.boot</groupId>
  797. <artifactId>spring-boot-maven-plugin</artifactId>
  798. <version>${spring-boot.version}</version>
  799. </plugin>
  800. </plugins>
  801. </pluginManagement>
  802. </build>
  803. <profiles>
  804. <profile>
  805. <id>no-liquibase</id>
  806. <properties>
  807. <profile.no-liquibase>,no-liquibase</profile.no-liquibase>
  808. </properties>
  809. </profile>
  810. <profile>
  811. <id>swagger</id>
  812. <properties>
  813. <profile.swagger>,swagger</profile.swagger>
  814. </properties>
  815. </profile>
  816. <profile>
  817. <id>tls</id>
  818. <properties>
  819. <profile.tls>,tls</profile.tls>
  820. </properties>
  821. </profile>
  822. <profile>
  823. <id>dev</id>
  824. <activation>
  825. <activeByDefault>true</activeByDefault>
  826. </activation>
  827. <dependencies>
  828. <dependency>
  829. <groupId>org.springframework.boot</groupId>
  830. <artifactId>spring-boot-starter-undertow</artifactId>
  831. </dependency>
  832. <dependency>
  833. <groupId>org.springframework.boot</groupId>
  834. <artifactId>spring-boot-devtools</artifactId>
  835. <optional>true</optional>
  836. </dependency>
  837. </dependencies>
  838. <build>
  839. <plugins>
  840. <plugin>
  841. <groupId>org.apache.maven.plugins</groupId>
  842. <artifactId>maven-war-plugin</artifactId>
  843. <configuration>
  844. <failOnMissingWebXml>false</failOnMissingWebXml>
  845. </configuration>
  846. </plugin>
  847. </plugins>
  848. </build>
  849. <properties>
  850. <!-- default Spring profiles -->
  851. <spring.profiles.active>dev${profile.tls}${profile.no-liquibase}</spring.profiles.active>
  852. </properties>
  853. </profile>
  854. <profile>
  855. <id>prod</id>
  856. <dependencies>
  857. <dependency>
  858. <groupId>org.springframework.boot</groupId>
  859. <artifactId>spring-boot-starter-undertow</artifactId>
  860. </dependency>
  861. </dependencies>
  862. <build>
  863. <plugins>
  864. <plugin>
  865. <artifactId>maven-clean-plugin</artifactId>
  866. <configuration>
  867. <filesets>
  868. <fileset>
  869. <directory>target/www/</directory>
  870. </fileset>
  871. </filesets>
  872. </configuration>
  873. </plugin>
  874. <plugin>
  875. <groupId>org.apache.maven.plugins</groupId>
  876. <artifactId>maven-war-plugin</artifactId>
  877. <configuration>
  878. <failOnMissingWebXml>false</failOnMissingWebXml>
  879. </configuration>
  880. </plugin>
  881. <plugin>
  882. <groupId>org.springframework.boot</groupId>
  883. <artifactId>spring-boot-maven-plugin</artifactId>
  884. <configuration>
  885. <mainClass>${start-class}</mainClass>
  886. <executable>true</executable>
  887. </configuration>
  888. <executions>
  889. <execution>
  890. <goals>
  891. <goal>build-info</goal>
  892. </goals>
  893. </execution>
  894. </executions>
  895. </plugin>
  896. <plugin>
  897. <groupId>pl.project13.maven</groupId>
  898. <artifactId>git-commit-id-plugin</artifactId>
  899. </plugin>
  900. </plugins>
  901. </build>
  902. <properties>
  903. <!-- default Spring profiles -->
  904. <spring.profiles.active>prod${profile.swagger}${profile.no-liquibase}</spring.profiles.active>
  905. </properties>
  906. </profile>
  907. <profile>
  908. <!--
  909. Profile for doing "continuous compilation" with the Scala Maven plugin.
  910. It allows automatic compilation of Java classes as soon as they are saved.
  911. To use it, run in 3 terminals:
  912. - './mvnw -Pcc scala:cc' for continuous compilation of your classes
  913. - './mvnw -Pcc -Pdev' for hot reload of Spring boot
  914. - 'npm start/yarn start' for hot reload of the HTML/JavaScript asset
  915. Everything should hot reload automatically!
  916. -->
  917. <id>cc</id>
  918. <dependencies>
  919. <dependency>
  920. <groupId>org.springframework.boot</groupId>
  921. <artifactId>spring-boot-starter-undertow</artifactId>
  922. </dependency>
  923. <dependency>
  924. <groupId>org.springframework.boot</groupId>
  925. <artifactId>spring-boot-devtools</artifactId>
  926. <optional>true</optional>
  927. </dependency>
  928. </dependencies>
  929. <build>
  930. <plugins>
  931. <plugin>
  932. <groupId>org.apache.maven.plugins</groupId>
  933. <artifactId>maven-war-plugin</artifactId>
  934. <configuration>
  935. <failOnMissingWebXml>false</failOnMissingWebXml>
  936. <warSourceDirectory>src/main/webapp/</warSourceDirectory>
  937. </configuration>
  938. </plugin>
  939. <plugin>
  940. <groupId>org.springframework.boot</groupId>
  941. <artifactId>spring-boot-maven-plugin</artifactId>
  942. <configuration>
  943. <mainClass>${start-class}</mainClass>
  944. <executable>true</executable>
  945. <fork>true</fork>
  946. <addResources>true</addResources>
  947. <!--
  948. Enable the line below to have remote debugging of your application on port 5005
  949. <jvmArguments>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005</jvmArguments>
  950. -->
  951. </configuration>
  952. </plugin>
  953. <plugin>
  954. <groupId>org.apache.maven.plugins</groupId>
  955. <artifactId>maven-compiler-plugin</artifactId>
  956. <executions>
  957. <execution>
  958. <id>default-compile</id>
  959. <phase>none</phase>
  960. </execution>
  961. <execution>
  962. <id>default-testCompile</id>
  963. <phase>none</phase>
  964. </execution>
  965. </executions>
  966. </plugin>
  967. <plugin>
  968. <groupId>net.alchim31.maven</groupId>
  969. <artifactId>scala-maven-plugin</artifactId>
  970. </plugin>
  971. </plugins>
  972. </build>
  973. <properties>
  974. <!-- default Spring profiles -->
  975. <spring.profiles.active>dev,swagger</spring.profiles.active>
  976. </properties>
  977. </profile>
  978. <profile>
  979. <!--
  980. Profile for applying IDE-specific configuration.
  981. At the moment it configures MapStruct and Hibernate JPA Metamodel Generator, which you need when working
  982. with DTOs and entity filtering.
  983. -->
  984. <id>IDE</id>
  985. <dependencies>
  986. <dependency>
  987. <groupId>org.mapstruct</groupId>
  988. <artifactId>mapstruct-processor</artifactId>
  989. </dependency>
  990. <dependency>
  991. <groupId>org.hibernate</groupId>
  992. <artifactId>hibernate-jpamodelgen</artifactId>
  993. </dependency>
  994. </dependencies>
  995. </profile>
  996. <profile>
  997. <!-- This is automatically activated when working in Eclipse -->
  998. <id>eclipse</id>
  999. <activation>
  1000. <property>
  1001. <name>m2e.version</name>
  1002. </property>
  1003. </activation>
  1004. <build>
  1005. <pluginManagement>
  1006. <plugins>
  1007. <!--
  1008. This plugin's configuration is used to store Eclipse m2e settings only.
  1009. It has no influence on the Maven build itself.
  1010. Remove when the m2e plugin can correctly bind to Maven lifecycle
  1011. -->
  1012. <plugin>
  1013. <groupId>org.eclipse.m2e</groupId>
  1014. <artifactId>lifecycle-mapping</artifactId>
  1015. <version>${lifecycle-mapping.version}</version>
  1016. <configuration>
  1017. <lifecycleMappingMetadata>
  1018. <pluginExecutions>
  1019. <pluginExecution>
  1020. <pluginExecutionFilter>
  1021. <groupId>org.jacoco</groupId>
  1022. <artifactId>
  1023. jacoco-maven-plugin
  1024. </artifactId>
  1025. <versionRange>
  1026. ${jacoco-maven-plugin.version}
  1027. </versionRange>
  1028. <goals>
  1029. <goal>prepare-agent</goal>
  1030. </goals>
  1031. </pluginExecutionFilter>
  1032. <action>
  1033. <ignore/>
  1034. </action>
  1035. </pluginExecution>
  1036. </pluginExecutions>
  1037. </lifecycleMappingMetadata>
  1038. </configuration>
  1039. </plugin>
  1040. </plugins>
  1041. </pluginManagement>
  1042. </build>
  1043. </profile>
  1044. <!-- jhipster-needle-maven-add-profile -->
  1045. </profiles>
  1046. </project>