You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pom.xml 23KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657
  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"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>org.aspectj</groupId>
  6. <artifactId>aspectj-parent</artifactId>
  7. <version>1.9.23-SNAPSHOT</version>
  8. <packaging>pom</packaging>
  9. <name>AspectJ Parent Project</name>
  10. <properties>
  11. <!-- Basic build properties -->
  12. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  13. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  14. <!--
  15. Set fixed timestamp for reproducible builds,
  16. see https://maven.apache.org/guides/mini/guide-reproducible-builds.html
  17. -->
  18. <project.build.outputTimestamp>2024-01-01T00:00:00Z</project.build.outputTimestamp>
  19. <!-- By default, do not deploy artifacts - override for the ones which actually should be deployed -->
  20. <maven.deploy.skip>true</maven.deploy.skip>
  21. <!-- By default, do not create javadoc - override in release profile or manually -->
  22. <maven.javadoc.skip>true</maven.javadoc.skip>
  23. <!-- Dependency versions -->
  24. <jdt.core.version>1.9.22</jdt.core.version> <!-- AspectJ_JDK_Update -->
  25. <asm.version>9.6</asm.version> <!-- AspectJ_JDK_Update -->
  26. <commons.digester.version>3.2</commons.digester.version>
  27. <commons.logging.version>1.3.0</commons.logging.version>
  28. <lib.ant.version>1.6.3</lib.ant.version>
  29. <lib.ant.xerces.version>2.6.2</lib.ant.xerces.version>
  30. <lib.regexp.version>1.2</lib.regexp.version>
  31. </properties>
  32. <distributionManagement>
  33. <snapshotRepository>
  34. <id>ossrh</id>
  35. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  36. </snapshotRepository>
  37. <repository>
  38. <id>ossrh</id>
  39. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  40. </repository>
  41. <site>
  42. <id>aspectj-site-local</id>
  43. <!-- Use mvn site:deploy from root directory to create multi-module Maven site there -->
  44. <url>file://${user.dir}/aj-build/dist/site</url>
  45. </site>
  46. </distributionManagement>
  47. <repositories>
  48. <!--
  49. Repeat Central definition from super POM https://maven.apache.org/ref/3.6.3/maven-model-builder/super-pom.html.
  50. Define it as the first repository to search at, otherwise Maven would always search any other repositories defined
  51. in the POM or in settings.xml first, slowing down the build, because most artifacts reside at Maven Central. See
  52. https://maven.apache.org/guides/mini/guide-multiple-repositories.html#repository-order for more details.
  53. -->
  54. <repository>
  55. <id>central</id>
  56. <name>Central Repository</name>
  57. <url>https://repo.maven.apache.org/maven2</url>
  58. <layout>default</layout>
  59. <snapshots>
  60. <enabled>false</enabled>
  61. </snapshots>
  62. <releases>
  63. <enabled>true</enabled>
  64. <updatePolicy>never</updatePolicy>
  65. </releases>
  66. </repository>
  67. <repository>
  68. <id>ossrh-snapshots</id>
  69. <name>Sonatype OSSRH snapshots</name>
  70. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  71. <layout>default</layout>
  72. <snapshots>
  73. <enabled>true</enabled>
  74. <updatePolicy>always</updatePolicy>
  75. </snapshots>
  76. <releases>
  77. <enabled>true</enabled>
  78. <updatePolicy>never</updatePolicy>
  79. </releases>
  80. </repository>
  81. </repositories>
  82. <pluginRepositories>
  83. <!--
  84. Repeat Central definition from super POM https://maven.apache.org/ref/3.6.3/maven-model-builder/super-pom.html.
  85. Define it as the first repository to search at, otherwise Maven would always search any other repositories defined
  86. in the POM or in settings.xml first, slowing down the build, because most artifacts reside at Maven Central. See
  87. https://maven.apache.org/guides/mini/guide-multiple-repositories.html#repository-order for more details.
  88. -->
  89. <pluginRepository>
  90. <id>central</id>
  91. <name>Central Repository</name>
  92. <url>https://repo.maven.apache.org/maven2</url>
  93. <layout>default</layout>
  94. <snapshots>
  95. <enabled>false</enabled>
  96. </snapshots>
  97. <releases>
  98. <enabled>true</enabled>
  99. <updatePolicy>never</updatePolicy>
  100. </releases>
  101. </pluginRepository>
  102. <pluginRepository>
  103. <id>ossrh-snapshots</id>
  104. <name>Sonatype OSSRH snapshots</name>
  105. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  106. <layout>default</layout>
  107. <snapshots>
  108. <enabled>true</enabled>
  109. <updatePolicy>always</updatePolicy>
  110. </snapshots>
  111. <releases>
  112. <enabled>true</enabled>
  113. <updatePolicy>never</updatePolicy>
  114. </releases>
  115. </pluginRepository>
  116. </pluginRepositories>
  117. <modules>
  118. <module>lib</module>
  119. <module>util</module>
  120. <module>bridge</module>
  121. <module>testing-util</module>
  122. <module>org.aspectj.matcher</module>
  123. <module>asm</module>
  124. <module>testing-client</module>
  125. <module>runtime</module>
  126. <module>bcel-builder</module>
  127. <module>weaver</module>
  128. <module>loadtime</module>
  129. <module>org.aspectj.ajdt.core</module>
  130. <module>ajde.core</module>
  131. <module>ajde</module>
  132. <module>ajdoc</module>
  133. <module>taskdefs</module>
  134. <module>testing</module>
  135. <module>testing-drivers</module>
  136. <module>tests</module>
  137. <module>build</module>
  138. <module>run-all-junit-tests</module>
  139. <module>docs</module>
  140. <!-- create the important artifacts we care about -->
  141. <module>aspectjrt</module>
  142. <module>aspectjweaver</module>
  143. <module>aspectjtools</module>
  144. <module>aspectjmatcher</module>
  145. <!-- build the java -jar'able installer -->
  146. <module>installer</module>
  147. </modules>
  148. <!--
  149. Caveat: Automatic, JDK-based profile activation can *not* be inherited by child POMs defining
  150. the same profiles. Thus, we have to repeat activation conditions there.
  151. Note: We can check if automatic profile activation works via mvn help:active-profiles.
  152. -->
  153. <profiles>
  154. <profile>
  155. <id>jdk-8-to-15</id>
  156. <activation>
  157. <jdk>[1.8,16)</jdk>
  158. </activation>
  159. <properties>
  160. <jvm.arg.addOpens/>
  161. <jvm.arg.allowSecurityManager/>
  162. </properties>
  163. </profile>
  164. <profile>
  165. <id>jdk-16-to-xx</id>
  166. <activation>
  167. <jdk>[16,)</jdk>
  168. </activation>
  169. <properties>
  170. <jvm.arg.addOpens>--add-opens java.base/java.lang=ALL-UNNAMED</jvm.arg.addOpens>
  171. <jvm.arg.allowSecurityManager/>
  172. </properties>
  173. </profile>
  174. <profile>
  175. <id>jdk-18-to-xx</id>
  176. <activation>
  177. <jdk>[18,)</jdk>
  178. </activation>
  179. <properties>
  180. <!--
  181. JEP 411: Deprecate the Security Manager for Removal, see https://openjdk.java.net/jeps/411.
  182. As of Java 18, the new API for blocking System.exit is not available yet, see
  183. https://bugs.openjdk.java.net/browse/JDK-8199704.
  184. -->
  185. <jvm.arg.allowSecurityManager>-Djava.security.manager=allow</jvm.arg.allowSecurityManager>
  186. </properties>
  187. </profile>
  188. <profile>
  189. <id>release</id>
  190. <properties>
  191. <maven.javadoc.skip>false</maven.javadoc.skip>
  192. <maven.source.skip>false</maven.source.skip>
  193. </properties>
  194. <build>
  195. <plugins>
  196. <plugin>
  197. <groupId>org.apache.maven.plugins</groupId>
  198. <artifactId>maven-gpg-plugin</artifactId>
  199. </plugin>
  200. </plugins>
  201. </build>
  202. </profile>
  203. <profile>
  204. <id>fast-build</id>
  205. <properties>
  206. <!-- Do not compile tests (also skips execution) -->
  207. <maven.test.skip>true</maven.test.skip>
  208. <!-- Do not execute tests (redundant, but just to be sure) -->
  209. <skipTests>true</skipTests>
  210. <!-- Do not create documentation for AspectJ website -->
  211. <createDocs>false</createDocs>
  212. </properties>
  213. </profile>
  214. </profiles>
  215. <build>
  216. <pluginManagement>
  217. <plugins>
  218. <plugin>
  219. <groupId>org.apache.maven.plugins</groupId>
  220. <artifactId>maven-compiler-plugin</artifactId>
  221. <version>3.8.1</version>
  222. <configuration>
  223. <source>1.8</source>
  224. <target>1.8</target>
  225. </configuration>
  226. </plugin>
  227. <plugin>
  228. <groupId>org.apache.maven.plugins</groupId>
  229. <artifactId>maven-surefire-plugin</artifactId>
  230. <version>2.22.2</version>
  231. <configuration>
  232. <!--<testFailureIgnore>true</testFailureIgnore>-->
  233. <argLine>
  234. ${jvm.arg.addOpens}
  235. ${jvm.arg.allowSecurityManager}
  236. </argLine>
  237. <excludes>
  238. <exclude>**/*ModuleTests.java</exclude>
  239. </excludes>
  240. </configuration>
  241. </plugin>
  242. <plugin>
  243. <groupId>org.apache.maven.plugins</groupId>
  244. <artifactId>maven-help-plugin</artifactId>
  245. <version>3.2.0</version>
  246. </plugin>
  247. <plugin>
  248. <groupId>org.apache.maven.plugins</groupId>
  249. <artifactId>maven-source-plugin</artifactId>
  250. <version>3.2.0</version>
  251. <executions>
  252. <execution>
  253. <id>attach-sources</id>
  254. <phase>package</phase>
  255. <goals>
  256. <goal>jar-no-fork</goal>
  257. </goals>
  258. </execution>
  259. </executions>
  260. </plugin>
  261. <plugin>
  262. <groupId>org.apache.maven.plugins</groupId>
  263. <artifactId>maven-jar-plugin</artifactId>
  264. <version>3.2.0</version>
  265. <configuration>
  266. <archive>
  267. <addMavenDescriptor>false</addMavenDescriptor>
  268. </archive>
  269. </configuration>
  270. <executions>
  271. <execution>
  272. <id>test-jar</id>
  273. <goals>
  274. <goal>test-jar</goal>
  275. </goals>
  276. </execution>
  277. </executions>
  278. </plugin>
  279. <plugin>
  280. <groupId>org.apache.maven.plugins</groupId>
  281. <artifactId>maven-shade-plugin</artifactId>
  282. <version>3.3.0</version>
  283. <configuration>
  284. <createSourcesJar>true</createSourcesJar>
  285. <createDependencyReducedPom>false</createDependencyReducedPom>
  286. <shadedArtifactAttached>false</shadedArtifactAttached>
  287. </configuration>
  288. </plugin>
  289. <plugin>
  290. <groupId>org.apache.maven.plugins</groupId>
  291. <artifactId>maven-install-plugin</artifactId>
  292. <version>2.5.2</version>
  293. </plugin>
  294. <plugin>
  295. <groupId>org.apache.maven.plugins</groupId>
  296. <artifactId>maven-resources-plugin</artifactId>
  297. <version>3.3.1</version>
  298. </plugin>
  299. <plugin>
  300. <groupId>org.apache.maven.plugins</groupId>
  301. <artifactId>maven-enforcer-plugin</artifactId>
  302. <version>3.0.0-M3</version>
  303. </plugin>
  304. <plugin>
  305. <groupId>org.codehaus.mojo</groupId>
  306. <artifactId>build-helper-maven-plugin</artifactId>
  307. <version>3.2.0</version>
  308. </plugin>
  309. <plugin>
  310. <groupId>org.apache.maven.plugins</groupId>
  311. <artifactId>maven-clean-plugin</artifactId>
  312. <version>3.1.0</version>
  313. </plugin>
  314. <plugin>
  315. <groupId>org.apache.maven.plugins</groupId>
  316. <artifactId>maven-dependency-plugin</artifactId>
  317. <version>3.1.2</version>
  318. </plugin>
  319. <plugin>
  320. <groupId>org.apache.maven.plugins</groupId>
  321. <artifactId>maven-assembly-plugin</artifactId>
  322. <version>3.1.1</version>
  323. </plugin>
  324. <!--
  325. TODO: MSHADE-36 is in Maven Shade 3.3.0 -> it should be possible to include the dependency-reduced POM there
  326. directly. So maybe, we can rid of Flatten Maven Plugin.
  327. -->
  328. <plugin>
  329. <groupId>org.codehaus.mojo</groupId>
  330. <artifactId>flatten-maven-plugin</artifactId>
  331. <version>1.2.2</version>
  332. </plugin>
  333. <plugin>
  334. <groupId>org.apache.maven.plugins</groupId>
  335. <artifactId>maven-gpg-plugin</artifactId>
  336. <version>1.6</version>
  337. <executions>
  338. <execution>
  339. <id>sign-artifacts</id>
  340. <phase>verify</phase>
  341. <goals>
  342. <goal>sign</goal>
  343. </goals>
  344. <configuration>
  345. <!-- Only sign artifacts which are also meant to be deployed -->
  346. <!--suppress UnresolvedMavenProperty -->
  347. <skip>${maven.gpg.skip}</skip>
  348. </configuration>
  349. </execution>
  350. </executions>
  351. </plugin>
  352. <plugin>
  353. <artifactId>maven-deploy-plugin</artifactId>
  354. <version>2.8.2</version>
  355. <executions>
  356. <execution>
  357. <id>default-deploy</id>
  358. <phase>deploy</phase>
  359. <goals>
  360. <goal>deploy</goal>
  361. </goals>
  362. </execution>
  363. </executions>
  364. <configuration>
  365. <!-- Deploy at the end of a multi-module build -->
  366. <deployAtEnd>true</deployAtEnd>
  367. </configuration>
  368. </plugin>
  369. <plugin>
  370. <!--
  371. Other than Maven Deploy, this plugin cannot just be added to the 'build/plugins' section of the parent POM
  372. once and (de-)activated with a simple property like 'maven.deploy.skip' on a per-module basis. See also
  373. https://issues.sonatype.org/browse/OSSRH-68966. Consequently, we do not add it to the parent but separately
  374. to each module meant to be published.
  375. -->
  376. <groupId>org.sonatype.plugins</groupId>
  377. <artifactId>nexus-staging-maven-plugin</artifactId>
  378. <version>1.6.8</version>
  379. <extensions>true</extensions>
  380. <configuration>
  381. <serverId>ossrh</serverId>
  382. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  383. <!-- Activate in order to directly release to Maven Central after successful staging -->
  384. <autoReleaseAfterClose>false</autoReleaseAfterClose>
  385. </configuration>
  386. <dependencies>
  387. <!--
  388. Plugin version 1.6.8 does not work on JDK 16+ without special MAVEN_OPTS opening certain modules,
  389. because the XStream version used needs it. One workaround is to use a more recent XStream version.
  390. Attention: Do *not* upgrade to e.g. 1.4.18, because it causes exceptions during deployment.
  391. TODO: remove plugin dependency after OSSRH-66257, NEXUS-26993 are fixed.
  392. -->
  393. <dependency>
  394. <groupId>com.thoughtworks.xstream</groupId>
  395. <artifactId>xstream</artifactId>
  396. <version>1.4.15</version>
  397. </dependency>
  398. </dependencies>
  399. </plugin>
  400. <plugin>
  401. <groupId>org.codehaus.mojo</groupId>
  402. <artifactId>truezip-maven-plugin</artifactId>
  403. <version>1.2</version>
  404. </plugin>
  405. <plugin>
  406. <groupId>org.apache.maven.plugins</groupId>
  407. <artifactId>maven-javadoc-plugin</artifactId>
  408. <version>3.6.3</version>
  409. <!--
  410. FIXME: This configuration works with JDK 16, but throws errors on other JDK versions, e.g. 14. It looks as
  411. if the Maven Javadoc plugin does not do a particularly good job applying the plugin settings in a way
  412. making it work with different JDK javadoc tool versions. I am saying that, because when using the tool
  413. directly on the console, it works with basic settings and the correct classpath.
  414. -->
  415. <configuration>
  416. <!-- TODO: Include 'aj' package for ASM-renamed contained in aspectjtools? -->
  417. <subpackages>org.aspectj</subpackages>
  418. <!-- Deactivate doclint checks in order to suppress errors -->
  419. <doclint>none</doclint>
  420. <!-- Generate class use xref, making javadocs considerably bigger, but also more informative -->
  421. <use>true</use>
  422. <!-- FIXME: Why does it fail without this parameter? -->
  423. <javadocVersion>8</javadocVersion>
  424. <!--
  425. Avoid non-English javadoc generation. Due to https://bugs.openjdk.org/browse/JDK-8222793 reoccurring at
  426. least in JDKs 19-21 and also being broken in some older JDKs, we cannot rely on just setting the locale
  427. parameter, but also need the 'user.language' and 'user.country' parameters in 'additionalJOptions' as a
  428. workaround.
  429. -->
  430. <locale>en</locale>
  431. <additionalJOptions>
  432. <additionalJOption>-J-Dfile.encoding=UTF-8</additionalJOption>
  433. <additionalJOption>-J-Duser.language=en</additionalJOption>
  434. <additionalJOption>-J-Duser.country=US</additionalJOption>
  435. </additionalJOptions>
  436. <!--
  437. Options for reproducible build artifacts and smaller diffs when committing changes to the website,
  438. avoiding timestamps, changing current copyright years, artifact versions
  439. -->
  440. <notimestamp>true</notimestamp>
  441. <bottom>Copyright © 1997 to present AspectJ contributors. All rights reserved.</bottom>
  442. <doctitle>${project.name} API</doctitle>
  443. <windowtitle>${project.name} API</windowtitle>
  444. </configuration>
  445. </plugin>
  446. <plugin>
  447. <groupId>org.apache.maven.plugins</groupId>
  448. <artifactId>maven-antrun-plugin</artifactId>
  449. <version>3.1.0</version>
  450. <executions>
  451. <!--
  452. Remove javadoc version number from HTML comment to keep website diffs small.
  453. - In JDKs 8 to 9, the javadoc version was not added to the comment string at all,
  454. see com.sun.tools.doclets.formats.html.markup.HtmlDocWriter::getGeneratedBy.
  455. - In JDKs 10 to 15, the version number was suppressed together with the timestamp in '-notimestamp'
  456. mode, see jdk.javadoc.internal.doclets.formats.html.markup.Head::getGeneratedBy.
  457. - Since JDK 16, the version is generated into the comment string without regard of the timestamp
  458. setting. :-/
  459. Attention: This has no effect on javadocs generated by the 'jar' goal, because they are archived while
  460. Maven Javadoc runs, i.e. before this plugin execution kicks in. However, it cleans the javadocs before
  461. Maven Resources copies them to aj-build/dist/docs/doc. I.e., they will be clean on the website, if copied
  462. from that folder, and also in the installer.
  463. TODO: In the future, maybe this execution or the whole Antrun plugin can go away, after
  464. https://bugs.openjdk.org/browse/JDK-8326483 has been implemented and back-ported into all JDK
  465. versions we support for javadoc generation. But if that ever happens, it might take a while.
  466. -->
  467. <execution>
  468. <id>filter-javadocs</id>
  469. <phase>package</phase>
  470. <goals>
  471. <goal>run</goal>
  472. </goals>
  473. <configuration>
  474. <!-- Override in modules which need to filter javadocs -->
  475. <skip>true</skip>
  476. <target>
  477. <!-- See https://ant.apache.org/manual/Tasks/replaceregexp.html -->
  478. <replaceregexp byline="true">
  479. <regexp pattern="^(&lt;!-- Generated by javadoc ).* (--&gt;)$"/>
  480. <substitution expression="\1\2"/>
  481. <fileset dir="${project.build.directory}/apidocs">
  482. <include name="**/*.html"/>
  483. </fileset>
  484. </replaceregexp>
  485. </target>
  486. </configuration>
  487. </execution>
  488. </executions>
  489. </plugin>
  490. <plugin>
  491. <groupId>org.asciidoctor</groupId>
  492. <artifactId>asciidoctor-maven-plugin</artifactId>
  493. <version>2.2.5</version>
  494. <configuration>
  495. <attributes>
  496. <source-highlighter>coderay</source-highlighter>
  497. <toc>left</toc>
  498. <toclevels>5</toclevels>
  499. <icons>font</icons>
  500. <!--
  501. Create separate CSS files, rather than embedding CSS into each HTML file
  502. TODO:
  503. There still is one set of CSS files per subdirectory due to the way the docs directories are
  504. organised. It would be better to have them just once. But to achieve that, the ADOC-to-HTML conversion
  505. would have to be changed, e.g. using one central directory for images and reorganisation of the
  506. overall directory structure and build options.
  507. See https://github.com/asciidoctor/asciidoctor-maven-plugin/issues/729.
  508. -->
  509. <linkcss>true</linkcss>
  510. </attributes>
  511. </configuration>
  512. <dependencies>
  513. <dependency>
  514. <groupId>org.asciidoctor</groupId>
  515. <artifactId>asciidoctorj-pdf</artifactId>
  516. <version>2.3.10</version>
  517. </dependency>
  518. </dependencies>
  519. </plugin>
  520. </plugins>
  521. </pluginManagement>
  522. <plugins>
  523. <plugin>
  524. <groupId>org.apache.maven.plugins</groupId>
  525. <artifactId>maven-jar-plugin</artifactId>
  526. </plugin>
  527. <plugin>
  528. <groupId>org.apache.maven.plugins</groupId>
  529. <artifactId>maven-clean-plugin</artifactId>
  530. <configuration>
  531. <filesets>
  532. <fileset>
  533. <directory>.</directory>
  534. <includes>
  535. <!-- AspectJ core dumps -->
  536. <include>**/ajcore.*.txt</include>
  537. <!-- Test temp-dirs in 'weaver' module, see AsynchronousFileCacheBackingTestSupport.getCacheDir -->
  538. <include>**/dir-0.*/**</include>
  539. </includes>
  540. <followSymlinks>false</followSymlinks>
  541. </fileset>
  542. <fileset>
  543. <directory>aj-build</directory>
  544. <followSymlinks>false</followSymlinks>
  545. </fileset>
  546. </filesets>
  547. </configuration>
  548. </plugin>
  549. <!--
  550. This plugin is nice to have in the POM, because then it is easy to double-click a goal such as 'effective-pom',
  551. 'active-profiles', 'effective-settings' or 'evaluate' from a modern IDE in order to get quick information about
  552. the current build configuration for any given module.
  553. -->
  554. <plugin>
  555. <groupId>org.apache.maven.plugins</groupId>
  556. <artifactId>maven-help-plugin</artifactId>
  557. </plugin>
  558. <!--
  559. This plugin is nice to have in the POM, because then it is easy to double-click a goal such as 'analyze' or
  560. 'tree' from a modern IDE in order to inspect dependency management in the project.
  561. Tip: If you want a quick overview, run this from the project from the project root directory:
  562. mvn -P \!create-docs dependency:analyze | grep -E '\[(WARNING|INFO\] -+< .+:.+ >-+)' > dependency-analyze.txt
  563. But be careful that all modules are actually listed - usually 'org.aspectj:installer' is the last one in the
  564. list. You can make sure by running the command without 'grep' first, then you see if there are any compile
  565. problems which 'grep' would filter out.
  566. -->
  567. <plugin>
  568. <groupId>org.apache.maven.plugins</groupId>
  569. <artifactId>maven-dependency-plugin</artifactId>
  570. <configuration>
  571. <ignoredUnusedDeclaredDependencies>
  572. <!-- Declared in parent POM for convenience, but not used in every module -->
  573. <ignoredUnusedDeclaredDependency>junit:junit:jar</ignoredUnusedDeclaredDependency>
  574. <ignoredUnusedDeclaredDependency>org.aspectj:lib:jar</ignoredUnusedDeclaredDependency>
  575. </ignoredUnusedDeclaredDependencies>
  576. </configuration>
  577. </plugin>
  578. </plugins>
  579. </build>
  580. <dependencyManagement>
  581. <dependencies>
  582. <dependency>
  583. <groupId>org.junit</groupId>
  584. <artifactId>junit-bom</artifactId>
  585. <version>5.7.1</version>
  586. <type>pom</type>
  587. <scope>import</scope>
  588. </dependency>
  589. <dependency>
  590. <groupId>junit</groupId>
  591. <artifactId>junit</artifactId>
  592. <version>4.13.2</version>
  593. <scope>test</scope>
  594. </dependency>
  595. <dependency>
  596. <groupId>org.aspectj</groupId>
  597. <artifactId>org.eclipse.jdt.core</artifactId>
  598. <version>${jdt.core.version}</version>
  599. </dependency>
  600. <dependency>
  601. <groupId>org.ow2.asm</groupId>
  602. <artifactId>asm</artifactId>
  603. <version>${asm.version}</version>
  604. </dependency>
  605. <dependency>
  606. <groupId>org.ow2.asm</groupId>
  607. <artifactId>asm-commons</artifactId>
  608. <version>${asm.version}</version>
  609. </dependency>
  610. <dependency>
  611. <!-- All modules referencing files inside 'lib' need this dependency -->
  612. <groupId>org.aspectj</groupId>
  613. <artifactId>lib</artifactId>
  614. <version>${project.version}</version>
  615. </dependency>
  616. </dependencies>
  617. </dependencyManagement>
  618. <dependencies>
  619. <!--
  620. Actually, it would be cleaner to only define JUnit only it modules which actually use it. But since this comprises
  621. the majority, we can afford to be a little bit unclean here with regard to dependency management.
  622. -->
  623. <dependency>
  624. <groupId>junit</groupId>
  625. <artifactId>junit</artifactId>
  626. <scope>test</scope>
  627. </dependency>
  628. </dependencies>
  629. </project>