pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436
  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>9.0.2-SNAPSHOT</version>
  6. <name>Salespoint</name>
  7. <parent>
  8. <groupId>org.springframework.boot</groupId>
  9. <artifactId>spring-boot-starter-parent</artifactId>
  10. <version>3.1.4</version>
  11. <relativePath />
  12. </parent>
  13. <properties>
  14. <dev>/dev</dev>
  15. <java.version>17</java.version>
  16. <jmolecules.version>2023.1.0</jmolecules.version>
  17. <spring-modulith.version>1.0.0</spring-modulith.version>
  18. <spring-asciidoctor-backends.version>0.0.7</spring-asciidoctor-backends.version>
  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. <plugin>
  41. <groupId>org.asciidoctor</groupId>
  42. <artifactId>asciidoctor-maven-plugin</artifactId>
  43. <version>2.2.4</version>
  44. <dependencies>
  45. <dependency>
  46. <groupId>org.asciidoctor</groupId>
  47. <artifactId>asciidoctorj</artifactId>
  48. <version>2.5.10</version>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.asciidoctor</groupId>
  52. <artifactId>asciidoctorj-diagram</artifactId>
  53. <version>2.2.11</version>
  54. </dependency>
  55. <dependency>
  56. <groupId>io.spring.asciidoctor.backends</groupId>
  57. <artifactId>spring-asciidoctor-backends</artifactId>
  58. <version>${spring-asciidoctor-backends.version}</version>
  59. </dependency>
  60. </dependencies>
  61. <executions>
  62. <execution>
  63. <id>website</id>
  64. <phase>package</phase>
  65. <goals>
  66. <goal>process-asciidoc</goal>
  67. </goals>
  68. <configuration>
  69. <sourceDirectory>src/main/asciidoc/site</sourceDirectory>
  70. <outputDirectory>${project.build.directory}/site</outputDirectory>
  71. </configuration>
  72. </execution>
  73. <execution>
  74. <id>reference</id>
  75. <phase>package</phase>
  76. <goals>
  77. <goal>process-asciidoc</goal>
  78. </goals>
  79. <configuration>
  80. <sourceDirectory>src/main/asciidoc</sourceDirectory>
  81. <sourceDocumentName>salespoint-reference.adoc</sourceDocumentName>
  82. <outputDirectory>${project.build.directory}/site${dev}</outputDirectory>
  83. <requires>
  84. <require>asciidoctor-diagram</require>
  85. </requires>
  86. </configuration>
  87. </execution>
  88. </executions>
  89. <configuration>
  90. <doctype>book</doctype>
  91. <backend>spring-html</backend>
  92. <resources>
  93. <!-- Copy our own resources first to make sure they trump the others -->
  94. </resources>
  95. <attributes>
  96. <dev>${dev}</dev>
  97. <highlightjsdir>js/highlight</highlightjsdir>
  98. <source-highlighter>highlight.js</source-highlighter>
  99. <stylesheet>salespoint.css</stylesheet>
  100. <toc>left</toc>
  101. <version>${project.version}</version>
  102. </attributes>
  103. </configuration>
  104. </plugin>
  105. <plugin>
  106. <groupId>org.apache.maven.plugins</groupId>
  107. <artifactId>maven-site-plugin</artifactId>
  108. <configuration>
  109. <chmod>false</chmod>
  110. </configuration>
  111. </plugin>
  112. </plugins>
  113. </build>
  114. </profile>
  115. </profiles>
  116. <dependencyManagement>
  117. <dependencies>
  118. <dependency>
  119. <groupId>org.jmolecules</groupId>
  120. <artifactId>jmolecules-bom</artifactId>
  121. <version>${jmolecules.version}</version>
  122. <scope>import</scope>
  123. <type>pom</type>
  124. </dependency>
  125. </dependencies>
  126. </dependencyManagement>
  127. <dependencies>
  128. <dependency>
  129. <groupId>org.springframework.boot</groupId>
  130. <artifactId>spring-boot-starter-data-jpa</artifactId>
  131. </dependency>
  132. <dependency>
  133. <groupId>com.querydsl</groupId>
  134. <artifactId>querydsl-jpa</artifactId>
  135. <classifier>jakarta</classifier>
  136. <version>${querydsl.version}</version>
  137. </dependency>
  138. <dependency>
  139. <groupId>org.springframework.boot</groupId>
  140. <artifactId>spring-boot-starter-web</artifactId>
  141. </dependency>
  142. <dependency>
  143. <groupId>org.springframework.boot</groupId>
  144. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  145. </dependency>
  146. <dependency>
  147. <groupId>org.springframework.boot</groupId>
  148. <artifactId>spring-boot-starter-mail</artifactId>
  149. </dependency>
  150. <dependency>
  151. <groupId>org.springframework.boot</groupId>
  152. <artifactId>spring-boot-starter-security</artifactId>
  153. </dependency>
  154. <dependency>
  155. <groupId>org.springframework.boot</groupId>
  156. <artifactId>spring-boot-configuration-processor</artifactId>
  157. <optional>true</optional>
  158. </dependency>
  159. <dependency>
  160. <groupId>org.thymeleaf.extras</groupId>
  161. <artifactId>thymeleaf-extras-springsecurity6</artifactId>
  162. </dependency>
  163. <!-- Fix "unknown enum constant javax.annotation.meta.When.MAYBE" warnings -->
  164. <dependency>
  165. <groupId>com.google.code.findbugs</groupId>
  166. <artifactId>jsr305</artifactId>
  167. <version>3.0.2</version>
  168. <scope>provided</scope>
  169. </dependency>
  170. <!-- Test -->
  171. <dependency>
  172. <groupId>org.springframework.boot</groupId>
  173. <artifactId>spring-boot-starter-test</artifactId>
  174. <scope>test</scope>
  175. </dependency>
  176. <dependency>
  177. <groupId>org.hamcrest</groupId>
  178. <artifactId>hamcrest-junit</artifactId>
  179. <version>2.0.0.0</version>
  180. <scope>test</scope>
  181. <exclusions>
  182. <exclusion>
  183. <groupId>junit</groupId>
  184. <artifactId>junit</artifactId>
  185. </exclusion>
  186. </exclusions>
  187. </dependency>
  188. <dependency>
  189. <groupId>com.h2database</groupId>
  190. <artifactId>h2</artifactId>
  191. <scope>test</scope>
  192. </dependency>
  193. <dependency>
  194. <groupId>org.javamoney.moneta</groupId>
  195. <artifactId>moneta-core</artifactId>
  196. <version>1.4.2</version>
  197. </dependency>
  198. <!-- For changelog creation -->
  199. <dependency>
  200. <groupId>org.apache.httpcomponents.client5</groupId>
  201. <artifactId>httpclient5</artifactId>
  202. <scope>test</scope>
  203. </dependency>
  204. <dependency>
  205. <groupId>org.projectlombok</groupId>
  206. <artifactId>lombok</artifactId>
  207. <scope>provided</scope>
  208. </dependency>
  209. <!-- Architecture -->
  210. <dependency>
  211. <groupId>org.springframework.modulith</groupId>
  212. <artifactId>spring-modulith-api</artifactId>
  213. <version>${spring-modulith.version}</version>
  214. </dependency>
  215. <dependency>
  216. <groupId>org.springframework.modulith</groupId>
  217. <artifactId>spring-modulith-starter-test</artifactId>
  218. <version>${spring-modulith.version}</version>
  219. <scope>test</scope>
  220. </dependency>
  221. <dependency>
  222. <groupId>org.jmolecules.integrations</groupId>
  223. <artifactId>jmolecules-starter-ddd</artifactId>
  224. </dependency>
  225. <dependency>
  226. <groupId>org.jmolecules.integrations</groupId>
  227. <artifactId>jmolecules-spring</artifactId>
  228. </dependency>
  229. </dependencies>
  230. <build>
  231. <defaultGoal>verify</defaultGoal>
  232. <extensions>
  233. <extension>
  234. <groupId>org.apache.maven.wagon</groupId>
  235. <artifactId>wagon-ssh</artifactId>
  236. <version>3.4.3</version>
  237. </extension>
  238. </extensions>
  239. <plugins>
  240. <plugin>
  241. <groupId>com.mysema.maven</groupId>
  242. <artifactId>apt-maven-plugin</artifactId>
  243. <version>1.1.3</version>
  244. <executions>
  245. <execution>
  246. <phase>generate-sources</phase>
  247. <goals>
  248. <goal>process</goal>
  249. </goals>
  250. <configuration>
  251. <outputDirectory>target/generated-sources/queries</outputDirectory>
  252. <processors>
  253. <processor>com.querydsl.apt.jpa.JPAAnnotationProcessor</processor>
  254. <processor>lombok.launch.AnnotationProcessorHider$AnnotationProcessor</processor>
  255. </processors>
  256. </configuration>
  257. </execution>
  258. </executions>
  259. <dependencies>
  260. <dependency>
  261. <groupId>com.querydsl</groupId>
  262. <artifactId>querydsl-apt</artifactId>
  263. <classifier>jakarta</classifier>
  264. <version>${querydsl.version}</version>
  265. </dependency>
  266. </dependencies>
  267. </plugin>
  268. <plugin>
  269. <groupId>org.apache.maven.plugins</groupId>
  270. <artifactId>maven-surefire-plugin</artifactId>
  271. <configuration>
  272. <excludes>
  273. <exclude>**/DocumentationTests.java</exclude>
  274. </excludes>
  275. </configuration>
  276. </plugin>
  277. <!-- Delombok sources to make sure generated methods can be picked up by JavaDoc -->
  278. <plugin>
  279. <groupId>org.projectlombok</groupId>
  280. <artifactId>lombok-maven-plugin</artifactId>
  281. <version>1.18.20.0</version>
  282. <configuration>
  283. <addOutputDirectory>false</addOutputDirectory>
  284. <sourceDirectory>${project.basedir}/src/main/java</sourceDirectory>
  285. </configuration>
  286. <executions>
  287. <execution>
  288. <phase>generate-sources</phase>
  289. <goals>
  290. <goal>delombok</goal>
  291. </goals>
  292. </execution>
  293. </executions>
  294. </plugin>
  295. <plugin>
  296. <groupId>org.apache.maven.plugins</groupId>
  297. <artifactId>maven-javadoc-plugin</artifactId>
  298. <executions>
  299. <execution>
  300. <id>package-javadoc</id>
  301. <goals>
  302. <goal>jar</goal>
  303. </goals>
  304. <phase>package</phase>
  305. </execution>
  306. </executions>
  307. <configuration>
  308. <doclint>all,-missing</doclint>
  309. <quiet>true</quiet>
  310. <failOnError>true</failOnError>
  311. <failOnWarnings>true</failOnWarnings>
  312. <tags>
  313. <!-- @soundtrack doctag can be used, but won't show up in generated docs -->
  314. <tag>
  315. <name>soundtrack</name>
  316. <placement>X</placement>
  317. </tag>
  318. </tags>
  319. <outputDirectory>${project.build.directory}/site${dev}/api</outputDirectory>
  320. <sourcepath>target/generated-sources/delombok</sourcepath>
  321. <links>
  322. <link>https://docs.spring.io/spring-data/commons/docs/current/api</link>
  323. <link>https://docs.spring.io/spring-framework/docs/${spring-framework.version}/javadoc-api/</link>
  324. <!--
  325. Adding this breaks Javadoc generation
  326. - https://bugs.openjdk.java.net/browse/JDK-8240169 (fixed in JDK 15 but…)
  327. - https://github.com/rzwitserloot/lombok/issues/2586
  328. <link>https://javamoney.github.io/apidocs</link>
  329. <link>https://docs.oracle.com/javaee/7/api</link>
  330. -->
  331. </links>
  332. </configuration>
  333. </plugin>
  334. <plugin>
  335. <groupId>org.apache.maven.plugins</groupId>
  336. <artifactId>maven-release-plugin</artifactId>
  337. <version>3.0.1</version>
  338. <configuration>
  339. <pushChanges>false</pushChanges>
  340. <scmCommentPrefix />
  341. <tagNameFormat>${project.version}</tagNameFormat>
  342. <releaseProfiles>release</releaseProfiles>
  343. </configuration>
  344. </plugin>
  345. <plugin>
  346. <groupId>org.apache.maven.plugins</groupId>
  347. <artifactId>maven-source-plugin</artifactId>
  348. <executions>
  349. <execution>
  350. <id>attach-sources</id>
  351. <goals>
  352. <goal>jar-no-fork</goal>
  353. </goals>
  354. </execution>
  355. </executions>
  356. </plugin>
  357. </plugins>
  358. </build>
  359. <scm>
  360. <url>https://github.com/st-tu-dresden/salespoint</url>
  361. <connection>scm:git:https://github.com/st-tu-dresden/salespoint</connection>
  362. <tag>HEAD</tag>
  363. </scm>
  364. <distributionManagement>
  365. <repository>
  366. <id>salespoint</id>
  367. <url>sftp://st.inf.tu-dresden.de:44/home/salespnt/salespoint/repository</url>
  368. </repository>
  369. <site>
  370. <id>salespoint</id>
  371. <url>sftp://st.inf.tu-dresden.de:44/home/salespnt/salespoint</url>
  372. </site>
  373. </distributionManagement>
  374. <repositories>
  375. <repository>
  376. <id>salespointframework</id>
  377. <url>https://www.st.inf.tu-dresden.de/SalesPoint/repository</url>
  378. <snapshots>
  379. <enabled>false</enabled>
  380. </snapshots>
  381. </repository>
  382. </repositories>
  383. </project>