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

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