2
1

pom.xml 46 KB

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