a small private-blog service

pom.xml 54KB

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