pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494
  1. <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/xsd/maven-4.0.0.xsd">
  2. <modelVersion>4.0.0</modelVersion>
  3. <groupId>de.tudresden.inf.st</groupId>
  4. <artifactId>salespoint-framework</artifactId>
  5. <version>7.3.2-SNAPSHOT</version>
  6. <name>Salespoint</name>
  7. <parent>
  8. <groupId>org.springframework.boot</groupId>
  9. <artifactId>spring-boot-starter-parent</artifactId>
  10. <version>2.3.4.RELEASE</version>
  11. <relativePath />
  12. </parent>
  13. <properties>
  14. <dev>/dev</dev>
  15. <java.version>11</java.version>
  16. <jmolecules.version>1.0.0</jmolecules.version>
  17. <moduliths.version>1.1.0-RC2</moduliths.version>
  18. <refdocs.dir>${project.build.directory}/refdocs</refdocs.dir>
  19. </properties>
  20. <profiles>
  21. <profile>
  22. <id>release</id>
  23. <properties>
  24. <dev />
  25. </properties>
  26. </profile>
  27. <profile>
  28. <id>docs</id>
  29. <build>
  30. <plugins>
  31. <plugin>
  32. <groupId>org.apache.maven.plugins</groupId>
  33. <artifactId>maven-surefire-plugin</artifactId>
  34. <configuration combine.self="override">
  35. <includes>
  36. <include>**/DocumentationTests.java</include>
  37. </includes>
  38. </configuration>
  39. </plugin>
  40. <!-- Use Spring documentation resources -->
  41. <plugin>
  42. <groupId>org.apache.maven.plugins</groupId>
  43. <artifactId>maven-dependency-plugin</artifactId>
  44. <executions>
  45. <execution>
  46. <id>unpack-doc-resources</id>
  47. <goals>
  48. <goal>unpack-dependencies</goal>
  49. </goals>
  50. <phase>generate-resources</phase>
  51. <configuration>
  52. <includeGroupIds>io.spring.docresources</includeGroupIds>
  53. <includeArtifactIds>spring-doc-resources</includeArtifactIds>
  54. <includeTypes>zip</includeTypes>
  55. <excludeTransitive>true</excludeTransitive>
  56. <outputDirectory>${refdocs.dir}</outputDirectory>
  57. </configuration>
  58. </execution>
  59. </executions>
  60. </plugin>
  61. <plugin>
  62. <groupId>org.asciidoctor</groupId>
  63. <artifactId>asciidoctor-maven-plugin</artifactId>
  64. <version>2.1.0</version>
  65. <dependencies>
  66. <dependency>
  67. <groupId>org.asciidoctor</groupId>
  68. <artifactId>asciidoctorj</artifactId>
  69. <version>2.4.1</version>
  70. </dependency>
  71. <dependency>
  72. <groupId>org.asciidoctor</groupId>
  73. <artifactId>asciidoctorj-diagram</artifactId>
  74. <version>2.0.2</version>
  75. </dependency>
  76. </dependencies>
  77. <executions>
  78. <execution>
  79. <id>website</id>
  80. <phase>package</phase>
  81. <goals>
  82. <goal>process-asciidoc</goal>
  83. </goals>
  84. <configuration>
  85. <sourceDirectory>src/main/asciidoc/site</sourceDirectory>
  86. <outputDirectory>${project.build.directory}/site</outputDirectory>
  87. </configuration>
  88. </execution>
  89. <execution>
  90. <id>reference</id>
  91. <phase>package</phase>
  92. <goals>
  93. <goal>process-asciidoc</goal>
  94. </goals>
  95. <configuration>
  96. <sourceDirectory>src/main/asciidoc</sourceDirectory>
  97. <sourceDocumentName>salespoint-reference.adoc</sourceDocumentName>
  98. <outputDirectory>${project.build.directory}/site${dev}</outputDirectory>
  99. <requires>
  100. <require>asciidoctor-diagram</require>
  101. </requires>
  102. </configuration>
  103. </execution>
  104. </executions>
  105. <configuration>
  106. <doctype>book</doctype>
  107. <backend>html5</backend>
  108. <sourceHighlighter>highlight.js</sourceHighlighter>
  109. <resources>
  110. <!-- Copy our own resources first to make sure they trump the others -->
  111. <resource>
  112. <directory>src/main/asciidoc</directory>
  113. </resource>
  114. <resource>
  115. <directory>${refdocs.dir}</directory>
  116. </resource>
  117. </resources>
  118. <attributes>
  119. <dev>${dev}</dev>
  120. <docinfo>shared</docinfo>
  121. <docinfodir>${refdocs.dir}</docinfodir>
  122. <highlightjsdir>js/highlight</highlightjsdir>
  123. <icons>font</icons>
  124. <linkcss>true</linkcss>
  125. <numbered>true</numbered>
  126. <sectanchors>true</sectanchors>
  127. <stylesdir>css/</stylesdir>
  128. <stylesheet>salespoint.css</stylesheet>
  129. <toc>left</toc>
  130. <version>${project.version}</version>
  131. </attributes>
  132. </configuration>
  133. </plugin>
  134. <plugin>
  135. <groupId>org.apache.maven.plugins</groupId>
  136. <artifactId>maven-site-plugin</artifactId>
  137. <configuration>
  138. <chmod>false</chmod>
  139. </configuration>
  140. </plugin>
  141. </plugins>
  142. </build>
  143. </profile>
  144. </profiles>
  145. <dependencies>
  146. <dependency>
  147. <groupId>org.springframework.boot</groupId>
  148. <artifactId>spring-boot-starter-data-jpa</artifactId>
  149. </dependency>
  150. <dependency>
  151. <groupId>com.querydsl</groupId>
  152. <artifactId>querydsl-jpa</artifactId>
  153. </dependency>
  154. <dependency>
  155. <groupId>org.springframework.boot</groupId>
  156. <artifactId>spring-boot-starter-web</artifactId>
  157. </dependency>
  158. <dependency>
  159. <groupId>org.springframework.boot</groupId>
  160. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  161. </dependency>
  162. <dependency>
  163. <groupId>org.springframework.boot</groupId>
  164. <artifactId>spring-boot-starter-mail</artifactId>
  165. </dependency>
  166. <dependency>
  167. <groupId>org.springframework.boot</groupId>
  168. <artifactId>spring-boot-starter-security</artifactId>
  169. </dependency>
  170. <dependency>
  171. <groupId>org.springframework.boot</groupId>
  172. <artifactId>spring-boot-configuration-processor</artifactId>
  173. <optional>true</optional>
  174. </dependency>
  175. <dependency>
  176. <groupId>org.thymeleaf.extras</groupId>
  177. <artifactId>thymeleaf-extras-springsecurity5</artifactId>
  178. </dependency>
  179. <dependency>
  180. <groupId>org.thymeleaf.extras</groupId>
  181. <artifactId>thymeleaf-extras-java8time</artifactId>
  182. </dependency>
  183. <!-- Test -->
  184. <dependency>
  185. <groupId>org.springframework.boot</groupId>
  186. <artifactId>spring-boot-starter-test</artifactId>
  187. <scope>test</scope>
  188. <exclusions>
  189. <exclusion>
  190. <groupId>junit</groupId>
  191. <artifactId>junit</artifactId>
  192. </exclusion>
  193. <exclusion>
  194. <groupId>org.junit.vintage</groupId>
  195. <artifactId>junit-vintage-engine</artifactId>
  196. </exclusion>
  197. </exclusions>
  198. </dependency>
  199. <dependency>
  200. <groupId>org.hamcrest</groupId>
  201. <artifactId>hamcrest-junit</artifactId>
  202. <version>2.0.0.0</version>
  203. <scope>test</scope>
  204. <exclusions>
  205. <exclusion>
  206. <groupId>junit</groupId>
  207. <artifactId>junit</artifactId>
  208. </exclusion>
  209. </exclusions>
  210. </dependency>
  211. <dependency>
  212. <groupId>com.h2database</groupId>
  213. <artifactId>h2</artifactId>
  214. <scope>test</scope>
  215. </dependency>
  216. <dependency>
  217. <groupId>org.javamoney.moneta</groupId>
  218. <artifactId>moneta-core</artifactId>
  219. <version>1.4.2</version>
  220. </dependency>
  221. <!-- For changelog creation -->
  222. <dependency>
  223. <groupId>org.apache.httpcomponents</groupId>
  224. <artifactId>httpclient</artifactId>
  225. <scope>test</scope>
  226. </dependency>
  227. <dependency>
  228. <groupId>org.projectlombok</groupId>
  229. <artifactId>lombok</artifactId>
  230. <scope>provided</scope>
  231. </dependency>
  232. <dependency>
  233. <groupId>javax.xml.bind</groupId>
  234. <artifactId>jaxb-api</artifactId>
  235. </dependency>
  236. <!-- Architecture -->
  237. <dependency>
  238. <groupId>org.moduliths</groupId>
  239. <artifactId>moduliths-api</artifactId>
  240. <version>${moduliths.version}</version>
  241. </dependency>
  242. <dependency>
  243. <groupId>org.moduliths</groupId>
  244. <artifactId>moduliths-test</artifactId>
  245. <version>${moduliths.version}</version>
  246. <scope>test</scope>
  247. </dependency>
  248. <dependency>
  249. <groupId>org.moduliths</groupId>
  250. <artifactId>moduliths-docs</artifactId>
  251. <version>${moduliths.version}</version>
  252. <scope>test</scope>
  253. </dependency>
  254. <dependency>
  255. <groupId>org.jmolecules</groupId>
  256. <artifactId>jmolecules-events</artifactId>
  257. <version>${jmolecules.version}</version>
  258. </dependency>
  259. <!-- Documentation -->
  260. <dependency>
  261. <groupId>io.spring.docresources</groupId>
  262. <artifactId>spring-doc-resources</artifactId>
  263. <version>0.2.2.RELEASE</version>
  264. <type>zip</type>
  265. <optional>true</optional>
  266. </dependency>
  267. </dependencies>
  268. <build>
  269. <extensions>
  270. <extension>
  271. <groupId>org.apache.maven.wagon</groupId>
  272. <artifactId>wagon-ssh</artifactId>
  273. <version>3.4.1</version>
  274. </extension>
  275. </extensions>
  276. <plugins>
  277. <plugin>
  278. <groupId>org.apache.maven.plugins</groupId>
  279. <artifactId>maven-enforcer-plugin</artifactId>
  280. <executions>
  281. <execution>
  282. <id>enforce-versions</id>
  283. <goals>
  284. <goal>enforce</goal>
  285. </goals>
  286. <configuration>
  287. <rules>
  288. <requireJavaVersion>
  289. <version>13</version>
  290. </requireJavaVersion>
  291. </rules>
  292. </configuration>
  293. </execution>
  294. </executions>
  295. </plugin>
  296. <plugin>
  297. <groupId>com.mysema.maven</groupId>
  298. <artifactId>apt-maven-plugin</artifactId>
  299. <version>1.1.3</version>
  300. <executions>
  301. <execution>
  302. <phase>generate-sources</phase>
  303. <goals>
  304. <goal>process</goal>
  305. </goals>
  306. <configuration>
  307. <outputDirectory>target/generated-sources/queries</outputDirectory>
  308. <processors>
  309. <processor>com.querydsl.apt.jpa.JPAAnnotationProcessor</processor>
  310. <processor>lombok.launch.AnnotationProcessorHider$AnnotationProcessor</processor>
  311. </processors>
  312. </configuration>
  313. </execution>
  314. </executions>
  315. <dependencies>
  316. <dependency>
  317. <groupId>com.querydsl</groupId>
  318. <artifactId>querydsl-apt</artifactId>
  319. <version>${querydsl.version}</version>
  320. </dependency>
  321. </dependencies>
  322. </plugin>
  323. <plugin>
  324. <groupId>org.apache.maven.plugins</groupId>
  325. <artifactId>maven-surefire-plugin</artifactId>
  326. <configuration>
  327. <excludes>
  328. <exclude>**/DocumentationTests.java</exclude>
  329. </excludes>
  330. </configuration>
  331. </plugin>
  332. <!-- Delombok sources to make sure generated methods can be picked up by JavaDoc -->
  333. <plugin>
  334. <groupId>org.projectlombok</groupId>
  335. <artifactId>lombok-maven-plugin</artifactId>
  336. <version>${lombok.version}.0</version>
  337. <configuration>
  338. <addOutputDirectory>false</addOutputDirectory>
  339. <sourceDirectory>${project.basedir}/src/main/java</sourceDirectory>
  340. </configuration>
  341. <executions>
  342. <execution>
  343. <phase>generate-sources</phase>
  344. <goals>
  345. <goal>delombok</goal>
  346. </goals>
  347. </execution>
  348. </executions>
  349. </plugin>
  350. <plugin>
  351. <groupId>org.apache.maven.plugins</groupId>
  352. <artifactId>maven-javadoc-plugin</artifactId>
  353. <executions>
  354. <execution>
  355. <id>package-javadoc</id>
  356. <goals>
  357. <goal>jar</goal>
  358. </goals>
  359. <phase>package</phase>
  360. </execution>
  361. </executions>
  362. <configuration>
  363. <doclint>none</doclint>
  364. <quiet>true</quiet>
  365. <outputDirectory>${project.build.directory}/site${dev}/api</outputDirectory>
  366. <sourcepath>target/generated-sources/delombok</sourcepath>
  367. <links>
  368. <link>https://docs.spring.io/spring-data/commons/docs/current/api</link>
  369. <link>https://docs.spring.io/spring-framework/docs/${spring-framework.version}/javadoc-api/</link>
  370. <!--
  371. Adding this breaks Javadoc generation
  372. - https://bugs.openjdk.java.net/browse/JDK-8240169 (fixed in JDK 15 but…)
  373. - https://github.com/rzwitserloot/lombok/issues/2586
  374. <link>https://javamoney.github.io/apidocs</link>
  375. <link>https://docs.oracle.com/javaee/7/api</link>
  376. -->
  377. </links>
  378. </configuration>
  379. </plugin>
  380. <plugin>
  381. <groupId>org.apache.maven.plugins</groupId>
  382. <artifactId>maven-release-plugin</artifactId>
  383. <version>2.5.3</version>
  384. <configuration>
  385. <pushChanges>false</pushChanges>
  386. <scmCommentPrefix />
  387. <tagNameFormat>${project.version}</tagNameFormat>
  388. <releaseProfiles>release</releaseProfiles>
  389. </configuration>
  390. </plugin>
  391. <plugin>
  392. <groupId>org.apache.maven.plugins</groupId>
  393. <artifactId>maven-source-plugin</artifactId>
  394. <executions>
  395. <execution>
  396. <id>attach-sources</id>
  397. <goals>
  398. <goal>jar-no-fork</goal>
  399. </goals>
  400. </execution>
  401. </executions>
  402. </plugin>
  403. </plugins>
  404. </build>
  405. <scm>
  406. <url>https://github.com/st-tu-dresden/salespoint</url>
  407. <connection>scm:git:https://github.com/st-tu-dresden/salespoint</connection>
  408. <tag>HEAD</tag>
  409. </scm>
  410. <distributionManagement>
  411. <repository>
  412. <id>salespoint</id>
  413. <url>sftp://st.inf.tu-dresden.de:44/home/salespnt/salespoint/repository</url>
  414. </repository>
  415. <site>
  416. <id>salespoint</id>
  417. <url>sftp://st.inf.tu-dresden.de:44/home/salespnt/salespoint</url>
  418. </site>
  419. </distributionManagement>
  420. <repositories>
  421. <repository>
  422. <id>spring-libs-snapshot</id>
  423. <url>https://repo.spring.io/libs-snapshot</url>
  424. </repository>
  425. <repository>
  426. <id>salespointframework</id>
  427. <url>https://www.st.inf.tu-dresden.de/SalesPoint/repository</url>
  428. </repository>
  429. </repositories>
  430. <pluginRepositories>
  431. <pluginRepository>
  432. <id>spring-libs-release</id>
  433. <url>https://repo.spring.io/libs-release</url>
  434. </pluginRepository>
  435. </pluginRepositories>
  436. </project>