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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373
  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. <revision>1.9.7.BUILD-SNAPSHOT</revision>
  13. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  14. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  15. <jdt.core.version>3.25.0-SNAPSHOT</jdt.core.version>
  16. <lib.ant.version>1.6.3</lib.ant.version>
  17. <lib.ant.xerces.version>2.6.2</lib.ant.xerces.version>
  18. <lib.regexp.version>1.2</lib.regexp.version>
  19. <lib.commons.beanutils.version>1.4</lib.commons.beanutils.version>
  20. <lib.commons.beanutils.tag>BEANUTILS_1_4</lib.commons.beanutils.tag>
  21. <lib.commons.collections.version>2.0</lib.commons.collections.version>
  22. <lib.commons.collections.tag>collections-2.0</lib.commons.collections.tag>
  23. <lib.commons.digester.version>1.3</lib.commons.digester.version>
  24. <lib.commons.digester.tag>DIGESTER_1_3</lib.commons.digester.tag>
  25. <lib.commons.logging.version>1.0.1</lib.commons.logging.version>
  26. <lib.commons.logging.tag>LOGGING_1_0_1</lib.commons.logging.tag>
  27. <asm.version>9.1</asm.version>
  28. <lib.directory>${maven.multiModuleProjectDirectory}/lib</lib.directory>
  29. </properties>
  30. <repositories>
  31. <!--
  32. Separately built dependencies unavailable on Maven Central, e.g.:
  33. - org.aspectj:asm-renamed
  34. - org.aspectj:org.eclipse.jdt.core
  35. -->
  36. <repository>
  37. <id>github</id>
  38. <name>GitHub Packages</name>
  39. <url>https://maven.pkg.github.com/kriegaex/aspectj-packages</url>
  40. <snapshots>
  41. <enabled>true</enabled>
  42. </snapshots>
  43. </repository>
  44. </repositories>
  45. <modules>
  46. <module>util</module>
  47. <module>bridge</module>
  48. <module>testing-util</module>
  49. <module>org.aspectj.matcher</module>
  50. <module>asm</module>
  51. <module>testing-client</module>
  52. <module>ajbrowser</module>
  53. <module>runtime</module>
  54. <module>bcel-builder</module>
  55. <module>weaver</module>
  56. <module>loadtime</module>
  57. <module>org.aspectj.ajdt.core</module>
  58. <module>ajde.core</module>
  59. <module>ajde</module>
  60. <module>ajdoc</module>
  61. <module>taskdefs</module>
  62. <module>testing</module>
  63. <module>testing-drivers</module>
  64. <module>tests</module>
  65. <module>build</module>
  66. <module>run-all-junit-tests</module>
  67. <module>docs</module>
  68. <!-- FYI: These are NOT meant to be sub-modules but a stand-alone projects built and deployed independently. -->
  69. <!--
  70. <module>asm-renamed</module>
  71. <module>lib</module>
  72. -->
  73. <!-- create the important artifacts we care about -->
  74. <module>aspectjrt</module>
  75. <module>aspectjweaver</module>
  76. <module>aspectjtools</module>
  77. <module>aspectjmatcher</module>
  78. <!-- build the java -jar'able installer -->
  79. <module>installer</module>
  80. </modules>
  81. <!--
  82. Caveat: Automatic, JDK-based profile activation can *not* be inherited by child POMs defining
  83. the same profiles. Thus, we have to repeat activation conditions there.
  84. Note: We can check if automatic profile activation works via mvn help:active-profiles.
  85. -->
  86. <profiles>
  87. <profile>
  88. <id>jdk-8-to-15</id>
  89. <activation>
  90. <jdk>[1.8,16)</jdk>
  91. </activation>
  92. <properties>
  93. <jvm.arg.addOpens/>
  94. </properties>
  95. </profile>
  96. <profile>
  97. <id>jdk-16-to-xx</id>
  98. <activation>
  99. <jdk>[16,)</jdk>
  100. </activation>
  101. <properties>
  102. <jvm.arg.addOpens>--add-opens java.base/java.lang=ALL-UNNAMED</jvm.arg.addOpens>
  103. </properties>
  104. </profile>
  105. </profiles>
  106. <build>
  107. <pluginManagement>
  108. <plugins>
  109. <plugin>
  110. <groupId>org.apache.maven.plugins</groupId>
  111. <artifactId>maven-compiler-plugin</artifactId>
  112. <version>3.8.1</version>
  113. <configuration>
  114. <source>1.8</source>
  115. <target>1.8</target>
  116. </configuration>
  117. </plugin>
  118. <plugin>
  119. <groupId>org.apache.maven.plugins</groupId>
  120. <artifactId>maven-surefire-plugin</artifactId>
  121. <version>2.22.2</version>
  122. <configuration>
  123. <!--<testFailureIgnore>true</testFailureIgnore>-->
  124. <argLine>${jvm.arg.addOpens}</argLine>
  125. <excludes>
  126. <exclude>**/*ModuleTests.java</exclude>
  127. </excludes>
  128. </configuration>
  129. </plugin>
  130. <plugin>
  131. <groupId>org.apache.maven.plugins</groupId>
  132. <artifactId>maven-help-plugin</artifactId>
  133. <version>3.2.0</version>
  134. </plugin>
  135. <plugin>
  136. <groupId>org.apache.maven.plugins</groupId>
  137. <artifactId>maven-source-plugin</artifactId>
  138. <version>3.2.0</version>
  139. <executions>
  140. <execution>
  141. <id>attach-sources</id>
  142. <phase>package</phase>
  143. <goals>
  144. <goal>jar-no-fork</goal>
  145. </goals>
  146. </execution>
  147. </executions>
  148. </plugin>
  149. <plugin>
  150. <groupId>org.apache.maven.plugins</groupId>
  151. <artifactId>maven-jar-plugin</artifactId>
  152. <version>3.2.0</version>
  153. <configuration>
  154. <archive>
  155. <addMavenDescriptor>false</addMavenDescriptor>
  156. </archive>
  157. </configuration>
  158. <executions>
  159. <execution>
  160. <id>test-jar</id>
  161. <goals>
  162. <goal>test-jar</goal>
  163. </goals>
  164. </execution>
  165. </executions>
  166. </plugin>
  167. <plugin>
  168. <groupId>org.apache.maven.plugins</groupId>
  169. <artifactId>maven-shade-plugin</artifactId>
  170. <!-- TODO: upgrade after https://issues.apache.org/jira/browse/MSHADE-366 is fixed -->
  171. <version>3.2.4</version>
  172. <configuration>
  173. <createSourcesJar>true</createSourcesJar>
  174. <createDependencyReducedPom>false</createDependencyReducedPom>
  175. <shadedArtifactAttached>false</shadedArtifactAttached>
  176. </configuration>
  177. </plugin>
  178. <plugin>
  179. <groupId>org.apache.maven.plugins</groupId>
  180. <artifactId>maven-install-plugin</artifactId>
  181. <version>2.5.2</version>
  182. </plugin>
  183. <plugin>
  184. <groupId>org.apache.maven.plugins</groupId>
  185. <artifactId>maven-enforcer-plugin</artifactId>
  186. <version>3.0.0-M3</version>
  187. </plugin>
  188. <plugin>
  189. <groupId>org.codehaus.mojo</groupId>
  190. <artifactId>build-helper-maven-plugin</artifactId>
  191. <version>3.2.0</version>
  192. </plugin>
  193. <plugin>
  194. <groupId>org.apache.maven.plugins</groupId>
  195. <artifactId>maven-clean-plugin</artifactId>
  196. <version>3.1.0</version>
  197. </plugin>
  198. <plugin>
  199. <groupId>org.apache.maven.plugins</groupId>
  200. <artifactId>maven-dependency-plugin</artifactId>
  201. <version>3.1.2</version>
  202. </plugin>
  203. </plugins>
  204. </pluginManagement>
  205. <plugins>
  206. <plugin>
  207. <groupId>org.apache.maven.plugins</groupId>
  208. <artifactId>maven-jar-plugin</artifactId>
  209. </plugin>
  210. <plugin>
  211. <artifactId>maven-clean-plugin</artifactId>
  212. <configuration>
  213. <filesets>
  214. <fileset>
  215. <directory>.</directory>
  216. <includes>
  217. <!-- AspectJ core dumps -->
  218. <include>**/ajcore.*.txt</include>
  219. <!-- Test temp-dirs in 'weaver' module, see AsynchronousFileCacheBackingTestSupport.getCacheDir -->
  220. <include>**/dir-0.*/**</include>
  221. </includes>
  222. <followSymlinks>false</followSymlinks>
  223. </fileset>
  224. <fileset>
  225. <directory>aj-build</directory>
  226. <followSymlinks>false</followSymlinks>
  227. </fileset>
  228. </filesets>
  229. </configuration>
  230. </plugin>
  231. <!--
  232. This plugin is nice to have in the POM, because then it is easy to double-click a goal such as 'effective-pom',
  233. 'active-profiles', 'effective-settings' or 'evaluate' from a modern IDE in order to get quick information about
  234. the current build configuration for any given module.
  235. -->
  236. <plugin>
  237. <groupId>org.apache.maven.plugins</groupId>
  238. <artifactId>maven-help-plugin</artifactId>
  239. </plugin>
  240. <!--
  241. This plugin is nice to have in the POM, because then it is easy to double-click a goal such as 'analyze' or
  242. 'tree' from a modern IDE in order to inspect dependency management in the project.
  243. Tip: If you want a quick overview, run this from the project from the project root directory:
  244. mvn -P \!create-docs dependency:analyze | grep -E '\[(WARNING|INFO\] -+< .+:.+ >-+)' > dependency-analyze.txt
  245. But be careful that all modules are actually listed - usually 'org.aspectj:installer' is the last one in the
  246. list. You can make sure by running the command without 'grep' first, then you see if there are any compile
  247. problems which 'grep' would filter out.
  248. -->
  249. <plugin>
  250. <groupId>org.apache.maven.plugins</groupId>
  251. <artifactId>maven-dependency-plugin</artifactId>
  252. <configuration>
  253. <ignoredUnusedDeclaredDependencies>
  254. <!-- Declared in parent POM for convenience, but not used in every module -->
  255. <ignoredUnusedDeclaredDependency>junit:junit:jar</ignoredUnusedDeclaredDependency>
  256. </ignoredUnusedDeclaredDependencies>
  257. </configuration>
  258. </plugin>
  259. <plugin>
  260. <groupId>org.apache.maven.plugins</groupId>
  261. <artifactId>maven-enforcer-plugin</artifactId>
  262. <executions>
  263. <execution>
  264. <id>enforce-libraries-exist</id>
  265. <goals>
  266. <goal>enforce</goal>
  267. </goals>
  268. <configuration>
  269. <rules>
  270. <requireFilesExist>
  271. <!--
  272. Do NOT insert any line breaks + indentation inside the message, keep it on a single line.
  273. Maven Enforcer does not strip any whitespace or unindent, which looks quite ugly on the console.
  274. -->
  275. <message>
  276. Please go to module subdirectory 'lib' and run 'mvn compile' there. This should take care of downloading all necessary libraries to that directory, where some tests expect them to be.
  277. </message>
  278. <files>
  279. <file>${lib.directory}/ant/bin/ant.bat</file>
  280. <file>${lib.directory}/ant/lib/junit.jar</file>
  281. <file>${lib.directory}/asm/asm-${asm.version}.renamed.jar</file>
  282. <file>${lib.directory}/commons/commons.jar</file>
  283. <file>${lib.directory}/docbook/docbook-dtd/docbookx.dtd</file>
  284. <file>${lib.directory}/docbook/docbook-xsl/html/chunk.xsl</file>
  285. <file>${lib.directory}/docbook/fop.jar</file>
  286. <file>${lib.directory}/docbook/batik.jar</file>
  287. <file>${lib.directory}/jarjar/jarjar-1.3.jar</file>
  288. <file>${lib.directory}/jdtcore-aj/jdtcore-for-aspectj.jar</file>
  289. <file>${lib.directory}/junit/junit.jar</file>
  290. <file>${lib.directory}/regexp/jakarta-regexp-1.2.jar</file>
  291. <file>${lib.directory}/saxon/saxon.jar</file>
  292. </files>
  293. </requireFilesExist>
  294. </rules>
  295. <fail>true</fail>
  296. </configuration>
  297. </execution>
  298. </executions>
  299. </plugin>
  300. </plugins>
  301. </build>
  302. <dependencyManagement>
  303. <dependencies>
  304. <dependency>
  305. <groupId>org.junit</groupId>
  306. <artifactId>junit-bom</artifactId>
  307. <version>5.7.1</version>
  308. <type>pom</type>
  309. <scope>import</scope>
  310. </dependency>
  311. <dependency>
  312. <groupId>junit</groupId>
  313. <artifactId>junit</artifactId>
  314. <version>4.13.2</version>
  315. <scope>test</scope>
  316. </dependency>
  317. <dependency>
  318. <groupId>org.aspectj</groupId>
  319. <artifactId>org.eclipse.jdt.core</artifactId>
  320. <version>${jdt.core.version}</version>
  321. </dependency>
  322. <dependency>
  323. <!-- Because commons-digester:commons-digester:1.3 refers to version 1.4-dev -->
  324. <groupId>commons-beanutils</groupId>
  325. <artifactId>commons-beanutils</artifactId>
  326. <version>${lib.commons.beanutils.version}</version>
  327. </dependency>
  328. <dependency>
  329. <groupId>org.ow2.asm</groupId>
  330. <artifactId>asm</artifactId>
  331. <version>${asm.version}</version>
  332. </dependency>
  333. <dependency>
  334. <groupId>org.aspectj</groupId>
  335. <artifactId>asm-renamed</artifactId>
  336. <version>${asm.version}</version>
  337. </dependency>
  338. </dependencies>
  339. </dependencyManagement>
  340. <dependencies>
  341. <!--
  342. Actually, it would be cleaner to only define JUnit only it modules which actually use it. But since this comprises
  343. the majority, we can afford to be a little bit unclean here with regard to dependency management.
  344. -->
  345. <dependency>
  346. <groupId>junit</groupId>
  347. <artifactId>junit</artifactId>
  348. <scope>test</scope>
  349. </dependency>
  350. </dependencies>
  351. </project>