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 18KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574
  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.8.RC2</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. <!-- By default, do not deploy artifacts - override for the ones which actually should be deployed -->
  15. <maven.deploy.skip>true</maven.deploy.skip>
  16. <!-- By default, do not create javadoc - override in release profile or manually -->
  17. <maven.javadoc.skip>true</maven.javadoc.skip>
  18. <!-- Dependency versions -->
  19. <jdt.core.version>1.9.8.RC2</jdt.core.version>
  20. <asm.version>9.2</asm.version>
  21. <lib.ant.version>1.6.3</lib.ant.version>
  22. <lib.ant.xerces.version>2.6.2</lib.ant.xerces.version>
  23. <lib.regexp.version>1.2</lib.regexp.version>
  24. <lib.commons.beanutils.version>1.4</lib.commons.beanutils.version>
  25. <lib.commons.beanutils.tag>BEANUTILS_1_4</lib.commons.beanutils.tag>
  26. <lib.commons.collections.version>2.0</lib.commons.collections.version>
  27. <lib.commons.collections.tag>collections-2.0</lib.commons.collections.tag>
  28. <lib.commons.digester.version>1.3</lib.commons.digester.version>
  29. <lib.commons.digester.tag>DIGESTER_1_3</lib.commons.digester.tag>
  30. <lib.commons.logging.version>1.0.1</lib.commons.logging.version>
  31. <lib.commons.logging.tag>LOGGING_1_0_1</lib.commons.logging.tag>
  32. </properties>
  33. <distributionManagement>
  34. <snapshotRepository>
  35. <id>ossrh</id>
  36. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  37. </snapshotRepository>
  38. <repository>
  39. <id>ossrh</id>
  40. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  41. </repository>
  42. </distributionManagement>
  43. <repositories>
  44. <!--
  45. Repeat Central definition from super POM https://maven.apache.org/ref/3.6.3/maven-model-builder/super-pom.html.
  46. Define it as the first repository to search at, otherwise Maven would always search any other repositories defined
  47. in the POM or in settings.xml first, slowing down the build, because most artifacts reside at Maven Central. See
  48. https://maven.apache.org/guides/mini/guide-multiple-repositories.html#repository-order for more details.
  49. -->
  50. <repository>
  51. <id>central</id>
  52. <name>Central Repository</name>
  53. <url>https://repo.maven.apache.org/maven2</url>
  54. <layout>default</layout>
  55. <snapshots>
  56. <enabled>false</enabled>
  57. </snapshots>
  58. <releases>
  59. <enabled>true</enabled>
  60. <updatePolicy>never</updatePolicy>
  61. </releases>
  62. </repository>
  63. <repository>
  64. <id>aspectj-dev</id>
  65. <name>AspectJ artifacts on aspectj.dev</name>
  66. <url>https://aspectj.dev/maven</url>
  67. <layout>default</layout>
  68. <snapshots>
  69. <enabled>true</enabled>
  70. <updatePolicy>always</updatePolicy>
  71. </snapshots>
  72. <releases>
  73. <enabled>true</enabled>
  74. <updatePolicy>never</updatePolicy>
  75. </releases>
  76. </repository>
  77. <repository>
  78. <id>ossrh-snapshots-classic</id>
  79. <name>Sonatype OSSRH snapshots classic</name>
  80. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  81. <layout>default</layout>
  82. <snapshots>
  83. <enabled>true</enabled>
  84. <updatePolicy>always</updatePolicy>
  85. </snapshots>
  86. <releases>
  87. <enabled>true</enabled>
  88. <updatePolicy>never</updatePolicy>
  89. </releases>
  90. </repository>
  91. <repository>
  92. <id>ossrh-snapshots-new</id>
  93. <name>Sonatype OSSRH snapshots new</name>
  94. <url> https://s01.oss.sonatype.org/content/repositories/snapshots</url>
  95. <layout>default</layout>
  96. <snapshots>
  97. <enabled>true</enabled>
  98. <updatePolicy>always</updatePolicy>
  99. </snapshots>
  100. <releases>
  101. <enabled>true</enabled>
  102. <updatePolicy>never</updatePolicy>
  103. </releases>
  104. </repository>
  105. <repository>
  106. <id>ossrh-snapshots</id>
  107. <name>Sonatype OSSRH snapshots</name>
  108. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  109. <layout>default</layout>
  110. <snapshots>
  111. <enabled>true</enabled>
  112. <updatePolicy>always</updatePolicy>
  113. </snapshots>
  114. <releases>
  115. <enabled>true</enabled>
  116. <updatePolicy>never</updatePolicy>
  117. </releases>
  118. </repository>
  119. </repositories>
  120. <pluginRepositories>
  121. <!--
  122. Repeat Central definition from super POM https://maven.apache.org/ref/3.6.3/maven-model-builder/super-pom.html.
  123. Define it as the first repository to search at, otherwise Maven would always search any other repositories defined
  124. in the POM or in settings.xml first, slowing down the build, because most artifacts reside at Maven Central. See
  125. https://maven.apache.org/guides/mini/guide-multiple-repositories.html#repository-order for more details.
  126. -->
  127. <pluginRepository>
  128. <id>central</id>
  129. <name>Central Repository</name>
  130. <url>https://repo.maven.apache.org/maven2</url>
  131. <layout>default</layout>
  132. <snapshots>
  133. <enabled>false</enabled>
  134. </snapshots>
  135. <releases>
  136. <enabled>true</enabled>
  137. <updatePolicy>never</updatePolicy>
  138. </releases>
  139. </pluginRepository>
  140. <pluginRepository>
  141. <id>ossrh-snapshots</id>
  142. <name>Sonatype OSSRH snapshots</name>
  143. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  144. <layout>default</layout>
  145. <snapshots>
  146. <enabled>true</enabled>
  147. <updatePolicy>always</updatePolicy>
  148. </snapshots>
  149. <releases>
  150. <enabled>true</enabled>
  151. <updatePolicy>never</updatePolicy>
  152. </releases>
  153. </pluginRepository>
  154. <pluginRepository>
  155. <id>aspectj-dev</id>
  156. <name>AspectJ artifacts on aspectj.dev</name>
  157. <url>https://aspectj.dev/maven</url>
  158. <layout>default</layout>
  159. <snapshots>
  160. <enabled>true</enabled>
  161. <updatePolicy>always</updatePolicy>
  162. </snapshots>
  163. <releases>
  164. <enabled>true</enabled>
  165. <updatePolicy>never</updatePolicy>
  166. </releases>
  167. </pluginRepository>
  168. </pluginRepositories>
  169. <modules>
  170. <module>lib</module>
  171. <module>util</module>
  172. <module>bridge</module>
  173. <module>testing-util</module>
  174. <module>org.aspectj.matcher</module>
  175. <module>asm</module>
  176. <module>testing-client</module>
  177. <module>ajbrowser</module>
  178. <module>runtime</module>
  179. <module>bcel-builder</module>
  180. <module>weaver</module>
  181. <module>loadtime</module>
  182. <module>org.aspectj.ajdt.core</module>
  183. <module>ajde.core</module>
  184. <module>ajde</module>
  185. <module>ajdoc</module>
  186. <module>taskdefs</module>
  187. <module>testing</module>
  188. <module>testing-drivers</module>
  189. <module>tests</module>
  190. <module>build</module>
  191. <module>run-all-junit-tests</module>
  192. <module>docs</module>
  193. <!-- create the important artifacts we care about -->
  194. <module>aspectjrt</module>
  195. <module>aspectjweaver</module>
  196. <module>aspectjtools</module>
  197. <module>aspectjmatcher</module>
  198. <!-- build the java -jar'able installer -->
  199. <module>installer</module>
  200. </modules>
  201. <!--
  202. Caveat: Automatic, JDK-based profile activation can *not* be inherited by child POMs defining
  203. the same profiles. Thus, we have to repeat activation conditions there.
  204. Note: We can check if automatic profile activation works via mvn help:active-profiles.
  205. -->
  206. <profiles>
  207. <profile>
  208. <id>jdk-8-to-15</id>
  209. <activation>
  210. <jdk>[1.8,16)</jdk>
  211. </activation>
  212. <properties>
  213. <jvm.arg.addOpens/>
  214. </properties>
  215. </profile>
  216. <profile>
  217. <id>jdk-16-to-xx</id>
  218. <activation>
  219. <jdk>[16,)</jdk>
  220. </activation>
  221. <properties>
  222. <jvm.arg.addOpens>--add-opens java.base/java.lang=ALL-UNNAMED</jvm.arg.addOpens>
  223. </properties>
  224. </profile>
  225. <profile>
  226. <id>release</id>
  227. <properties>
  228. <maven.javadoc.skip>false</maven.javadoc.skip>
  229. <maven.source.skip>false</maven.source.skip>
  230. </properties>
  231. <build>
  232. <plugins>
  233. <plugin>
  234. <groupId>org.apache.maven.plugins</groupId>
  235. <artifactId>maven-gpg-plugin</artifactId>
  236. </plugin>
  237. </plugins>
  238. </build>
  239. </profile>
  240. <profile>
  241. <id>fast-build</id>
  242. <properties>
  243. <!-- Do not compile tests (also skips execution) -->
  244. <maven.test.skip>true</maven.test.skip>
  245. <!-- Do not execute tests (redundant, but just to be sure) -->
  246. <skipTests>true</skipTests>
  247. <!-- Do not create documentation for AspectJ website -->
  248. <createDocs>false</createDocs>
  249. </properties>
  250. </profile>
  251. </profiles>
  252. <build>
  253. <pluginManagement>
  254. <plugins>
  255. <plugin>
  256. <groupId>org.apache.maven.plugins</groupId>
  257. <artifactId>maven-compiler-plugin</artifactId>
  258. <version>3.8.1</version>
  259. <configuration>
  260. <source>1.8</source>
  261. <target>1.8</target>
  262. </configuration>
  263. </plugin>
  264. <plugin>
  265. <groupId>org.apache.maven.plugins</groupId>
  266. <artifactId>maven-surefire-plugin</artifactId>
  267. <version>2.22.2</version>
  268. <configuration>
  269. <!--<testFailureIgnore>true</testFailureIgnore>-->
  270. <argLine>${jvm.arg.addOpens}</argLine>
  271. <excludes>
  272. <exclude>**/*ModuleTests.java</exclude>
  273. </excludes>
  274. </configuration>
  275. </plugin>
  276. <plugin>
  277. <groupId>org.apache.maven.plugins</groupId>
  278. <artifactId>maven-help-plugin</artifactId>
  279. <version>3.2.0</version>
  280. </plugin>
  281. <plugin>
  282. <groupId>org.apache.maven.plugins</groupId>
  283. <artifactId>maven-source-plugin</artifactId>
  284. <version>3.2.0</version>
  285. <executions>
  286. <execution>
  287. <id>attach-sources</id>
  288. <phase>package</phase>
  289. <goals>
  290. <goal>jar-no-fork</goal>
  291. </goals>
  292. </execution>
  293. </executions>
  294. </plugin>
  295. <plugin>
  296. <groupId>org.apache.maven.plugins</groupId>
  297. <artifactId>maven-jar-plugin</artifactId>
  298. <version>3.2.0</version>
  299. <configuration>
  300. <archive>
  301. <addMavenDescriptor>false</addMavenDescriptor>
  302. </archive>
  303. </configuration>
  304. <executions>
  305. <execution>
  306. <id>test-jar</id>
  307. <goals>
  308. <goal>test-jar</goal>
  309. </goals>
  310. </execution>
  311. </executions>
  312. </plugin>
  313. <plugin>
  314. <groupId>org.apache.maven.plugins</groupId>
  315. <artifactId>maven-shade-plugin</artifactId>
  316. <!--
  317. TODO: Replace by release in which
  318. - https://issues.apache.org/jira/browse/MSHADE-252,
  319. - https://issues.apache.org/jira/browse/MSHADE-391,
  320. - https://issues.apache.org/jira/browse/MSHADE-366 are fixed.
  321. -->
  322. <version>3.2.4.MSHADE-252-391</version>
  323. <configuration>
  324. <createSourcesJar>true</createSourcesJar>
  325. <createDependencyReducedPom>false</createDependencyReducedPom>
  326. <shadedArtifactAttached>false</shadedArtifactAttached>
  327. </configuration>
  328. </plugin>
  329. <plugin>
  330. <groupId>org.apache.maven.plugins</groupId>
  331. <artifactId>maven-install-plugin</artifactId>
  332. <version>2.5.2</version>
  333. </plugin>
  334. <plugin>
  335. <groupId>org.apache.maven.plugins</groupId>
  336. <artifactId>maven-enforcer-plugin</artifactId>
  337. <version>3.0.0-M3</version>
  338. </plugin>
  339. <plugin>
  340. <groupId>org.codehaus.mojo</groupId>
  341. <artifactId>build-helper-maven-plugin</artifactId>
  342. <version>3.2.0</version>
  343. </plugin>
  344. <plugin>
  345. <groupId>org.apache.maven.plugins</groupId>
  346. <artifactId>maven-clean-plugin</artifactId>
  347. <version>3.1.0</version>
  348. </plugin>
  349. <plugin>
  350. <groupId>org.apache.maven.plugins</groupId>
  351. <artifactId>maven-dependency-plugin</artifactId>
  352. <version>3.1.2</version>
  353. </plugin>
  354. <plugin>
  355. <groupId>org.apache.maven.plugins</groupId>
  356. <artifactId>maven-assembly-plugin</artifactId>
  357. <version>3.1.1</version>
  358. </plugin>
  359. <plugin>
  360. <groupId>org.codehaus.mojo</groupId>
  361. <artifactId>flatten-maven-plugin</artifactId>
  362. <version>1.2.2</version>
  363. </plugin>
  364. <plugin>
  365. <groupId>org.apache.maven.plugins</groupId>
  366. <artifactId>maven-gpg-plugin</artifactId>
  367. <version>1.6</version>
  368. <executions>
  369. <execution>
  370. <id>sign-artifacts</id>
  371. <phase>verify</phase>
  372. <goals>
  373. <goal>sign</goal>
  374. </goals>
  375. <configuration>
  376. <!-- Only sign artifacts which are also meant to be deployed -->
  377. <skip>${maven.gpg.skip}</skip>
  378. </configuration>
  379. </execution>
  380. </executions>
  381. </plugin>
  382. <plugin>
  383. <artifactId>maven-deploy-plugin</artifactId>
  384. <version>2.8.2</version>
  385. <executions>
  386. <execution>
  387. <id>default-deploy</id>
  388. <phase>deploy</phase>
  389. <goals>
  390. <goal>deploy</goal>
  391. </goals>
  392. </execution>
  393. </executions>
  394. <configuration>
  395. <!-- Deploy at the end of a multi-module build -->
  396. <deployAtEnd>true</deployAtEnd>
  397. </configuration>
  398. </plugin>
  399. <plugin>
  400. <!--
  401. Other than Maven Deploy, this plugin cannot just be added to the 'build/plugins' section of the parent POM
  402. once and (de-)activated with a simple property like 'maven.deploy.skip' on a per-module basis. See also
  403. https://issues.sonatype.org/browse/OSSRH-68966. Consequently, we do not add it to the parent but separately
  404. to each module meant to be published.
  405. -->
  406. <groupId>org.sonatype.plugins</groupId>
  407. <artifactId>nexus-staging-maven-plugin</artifactId>
  408. <version>1.6.8</version>
  409. <extensions>true</extensions>
  410. <configuration>
  411. <serverId>ossrh</serverId>
  412. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  413. <!-- Activate in order to directly release to Maven Central after successful staging -->
  414. <autoReleaseAfterClose>false</autoReleaseAfterClose>
  415. </configuration>
  416. <dependencies>
  417. <!--
  418. Plugin version 1.6.8 does not work on JDK 16+ without special MAVEN_OPTS opening certain modules,
  419. because the XStream version used needs it. One workaround is to use a more recent XStream version.
  420. Attention: Do *not* upgrade to e.g. 1.4.18, because it causes exceptions during deployment.
  421. TODO: remove plugin dependency after OSSRH-66257, NEXUS-26993 are fixed.
  422. -->
  423. <dependency>
  424. <groupId>com.thoughtworks.xstream</groupId>
  425. <artifactId>xstream</artifactId>
  426. <version>1.4.15</version>
  427. </dependency>
  428. </dependencies>
  429. </plugin>
  430. <plugin>
  431. <groupId>org.codehaus.mojo</groupId>
  432. <artifactId>truezip-maven-plugin</artifactId>
  433. <version>1.2</version>
  434. </plugin>
  435. <plugin>
  436. <groupId>org.apache.maven.plugins</groupId>
  437. <artifactId>maven-javadoc-plugin</artifactId>
  438. <version>3.2.0</version>
  439. </plugin>
  440. </plugins>
  441. </pluginManagement>
  442. <plugins>
  443. <plugin>
  444. <groupId>org.apache.maven.plugins</groupId>
  445. <artifactId>maven-jar-plugin</artifactId>
  446. </plugin>
  447. <plugin>
  448. <artifactId>maven-clean-plugin</artifactId>
  449. <configuration>
  450. <filesets>
  451. <fileset>
  452. <directory>.</directory>
  453. <includes>
  454. <!-- AspectJ core dumps -->
  455. <include>**/ajcore.*.txt</include>
  456. <!-- Test temp-dirs in 'weaver' module, see AsynchronousFileCacheBackingTestSupport.getCacheDir -->
  457. <include>**/dir-0.*/**</include>
  458. </includes>
  459. <followSymlinks>false</followSymlinks>
  460. </fileset>
  461. <fileset>
  462. <directory>aj-build</directory>
  463. <followSymlinks>false</followSymlinks>
  464. </fileset>
  465. </filesets>
  466. </configuration>
  467. </plugin>
  468. <!--
  469. This plugin is nice to have in the POM, because then it is easy to double-click a goal such as 'effective-pom',
  470. 'active-profiles', 'effective-settings' or 'evaluate' from a modern IDE in order to get quick information about
  471. the current build configuration for any given module.
  472. -->
  473. <plugin>
  474. <groupId>org.apache.maven.plugins</groupId>
  475. <artifactId>maven-help-plugin</artifactId>
  476. </plugin>
  477. <!--
  478. This plugin is nice to have in the POM, because then it is easy to double-click a goal such as 'analyze' or
  479. 'tree' from a modern IDE in order to inspect dependency management in the project.
  480. Tip: If you want a quick overview, run this from the project from the project root directory:
  481. mvn -P \!create-docs dependency:analyze | grep -E '\[(WARNING|INFO\] -+< .+:.+ >-+)' > dependency-analyze.txt
  482. But be careful that all modules are actually listed - usually 'org.aspectj:installer' is the last one in the
  483. list. You can make sure by running the command without 'grep' first, then you see if there are any compile
  484. problems which 'grep' would filter out.
  485. -->
  486. <plugin>
  487. <groupId>org.apache.maven.plugins</groupId>
  488. <artifactId>maven-dependency-plugin</artifactId>
  489. <configuration>
  490. <ignoredUnusedDeclaredDependencies>
  491. <!-- Declared in parent POM for convenience, but not used in every module -->
  492. <ignoredUnusedDeclaredDependency>junit:junit:jar</ignoredUnusedDeclaredDependency>
  493. <ignoredUnusedDeclaredDependency>org.aspectj:lib:jar</ignoredUnusedDeclaredDependency>
  494. </ignoredUnusedDeclaredDependencies>
  495. </configuration>
  496. </plugin>
  497. </plugins>
  498. </build>
  499. <dependencyManagement>
  500. <dependencies>
  501. <dependency>
  502. <groupId>org.junit</groupId>
  503. <artifactId>junit-bom</artifactId>
  504. <version>5.7.1</version>
  505. <type>pom</type>
  506. <scope>import</scope>
  507. </dependency>
  508. <dependency>
  509. <groupId>junit</groupId>
  510. <artifactId>junit</artifactId>
  511. <version>4.13.2</version>
  512. <scope>test</scope>
  513. </dependency>
  514. <dependency>
  515. <groupId>org.aspectj</groupId>
  516. <artifactId>org.eclipse.jdt.core</artifactId>
  517. <version>${jdt.core.version}</version>
  518. </dependency>
  519. <dependency>
  520. <!-- Because commons-digester:commons-digester:1.3 refers to version 1.4-dev -->
  521. <groupId>commons-beanutils</groupId>
  522. <artifactId>commons-beanutils</artifactId>
  523. <version>${lib.commons.beanutils.version}</version>
  524. </dependency>
  525. <dependency>
  526. <groupId>org.ow2.asm</groupId>
  527. <artifactId>asm</artifactId>
  528. <version>${asm.version}</version>
  529. </dependency>
  530. <dependency>
  531. <!-- All modules referencing files inside 'lib' need this dependency -->
  532. <groupId>org.aspectj</groupId>
  533. <artifactId>lib</artifactId>
  534. <version>${project.version}</version>
  535. </dependency>
  536. </dependencies>
  537. </dependencyManagement>
  538. <dependencies>
  539. <!--
  540. Actually, it would be cleaner to only define JUnit only it modules which actually use it. But since this comprises
  541. the majority, we can afford to be a little bit unclean here with regard to dependency management.
  542. -->
  543. <dependency>
  544. <groupId>junit</groupId>
  545. <artifactId>junit</artifactId>
  546. <scope>test</scope>
  547. </dependency>
  548. </dependencies>
  549. </project>