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

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