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

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