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

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