pom.xml 13 KB

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