]> source.dussan.org Git - aspectj.git/commitdiff
Replace Ant and Xerces system-scopes libraries by normal dependencies
authorAlexander Kriegisch <Alexander@Kriegisch.name>
Mon, 29 Mar 2021 02:57:56 +0000 (09:57 +0700)
committerAlexander Kriegisch <Alexander@Kriegisch.name>
Mon, 29 Mar 2021 06:52:01 +0000 (13:52 +0700)
Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
build/pom.xml
libx/pom.xml
loadtime/pom.xml
pom.xml
run-all-junit-tests/pom.xml
taskdefs/pom.xml
testing/pom.xml
tests/pom.xml

index 61610af7d05c31d2fd72ff142364c98b4687a8d3..fe6b41cb06442d2d8e6dca3e33999fc18880534f 100644 (file)
                </dependency>
 
                <dependency>
+                       <!-- Identical to lib/ant/lib/ant.jar, a former system-scoped dependency -->
                        <groupId>ant</groupId>
                        <artifactId>ant</artifactId>
-                       <version>1.0</version>
-                       <scope>system</scope>
-                       <systemPath>${project.basedir}/../lib/ant/lib/ant.jar</systemPath>
+                       <version>${lib.ant.version}</version>
                </dependency>
        </dependencies>
 
index 00b3a2eae8b8bd6cffd35c3cad02961c3805ebea..987ae1d11f952aabd89e804111c569c15337843c 100644 (file)
@@ -12,9 +12,8 @@
   <artifactId>libx</artifactId>
 
   <properties>
-    <ant.name>apache-ant</ant.name>
-    <ant.version>1.6.3</ant.version>
-    <ant.artifact>${ant.name}-${ant.version}</ant.artifact>
+    <lib.ant.name>apache-ant</lib.ant.name>
+    <lib.ant.artifact>${lib.ant.name}-${lib.ant.version}</lib.ant.artifact>
   </properties>
 
   <build>
@@ -32,7 +31,7 @@
               <goal>wget</goal>
             </goals>
             <configuration>
-              <url>https://archive.apache.org/dist/ant/binaries/${ant.artifact}-bin.zip</url>
+              <url>https://archive.apache.org/dist/ant/binaries/${lib.ant.artifact}-bin.zip</url>
               <outputDirectory>ant</outputDirectory>
               <sha1>3fa9f816a0c4c63249efad8e6225f2e83794f0c0</sha1>
             </configuration>
@@ -44,7 +43,7 @@
               <goal>wget</goal>
             </goals>
             <configuration>
-              <url>https://archive.apache.org/dist/ant/source/${ant.artifact}-src.zip</url>
+              <url>https://archive.apache.org/dist/ant/source/${lib.ant.artifact}-src.zip</url>
               <outputDirectory>ant</outputDirectory>
               <sha1>b9f3c8c31bb6c9069ad5b655059a17769af12f20</sha1>
             </configuration>
                   <!-- Binary is identical to committed version -->
                   <groupId>regexp</groupId>
                   <artifactId>regexp</artifactId>
-                  <version>1.2</version>
+                  <version>${lib.regexp.version}</version>
                   <type>jar</type>
                   <overWrite>false</overWrite>
                   <outputDirectory>regexp</outputDirectory>
                       This is why we use the TrueZIP plugin: It can seamlessly copy out of or into ZIP files as if they
                       were normal file system paths. No additional moves and deletes with Antrun are necessary.
                     -->
-                    <directory>ant/${ant.artifact}-bin.zip/${ant.artifact}</directory>
+                    <directory>ant/${lib.ant.artifact}-bin.zip/${lib.ant.artifact}</directory>
                     <outputDirectory>ant</outputDirectory>
                   </fileset>
                 </configuration>
                       This is why we use the TrueZIP plugin: It can seamlessly copy out of or into ZIP files as if they
                       were normal file system paths. No additional moves and deletes with Antrun are necessary.
                     -->
-                    <directory>ant/${ant.artifact}-src.zip/${ant.artifact}/src/main</directory>
+                    <directory>ant/${lib.ant.artifact}-src.zip/${lib.ant.artifact}/src/main</directory>
                     <outputDirectory>ant/ant-src.zip</outputDirectory>
                   </fileset>
                 </configuration>
index 91a850ef7e93455617e411ad84f48f74e774d5c3..5b19cb73c5ed92c77d02df286f46fc960b8bbac5 100644 (file)
                        <version>${project.version}</version>
                </dependency>
                <dependency>
-                       <groupId>xml-apis</groupId>
-                       <artifactId>xml-apis</artifactId>
-                       <version>1.0</version>
-                       <scope>system</scope>
-                       <systemPath>${project.basedir}/../lib/ant/lib/xml-apis.jar</systemPath>
+                       <!-- Identical to lib/ant/lib/xml-apis.jar, a former system-scoped dependency -->
+                       <groupId>xerces</groupId>
+                       <artifactId>xmlParserAPIs</artifactId>
+                       <version>${lib.ant.xerces.version}</version>
                </dependency>
                <dependency>
-                       <groupId>xercesImpl</groupId>
+                       <!-- Identical to lib/ant/lib/xercesImpl.jar, a former system-scoped dependency -->
+                       <groupId>xerces</groupId>
                        <artifactId>xercesImpl</artifactId>
-                       <version>1.0</version>
-                       <scope>system</scope>
-                       <systemPath>${project.basedir}/../lib/ant/lib/xercesImpl.jar</systemPath>
+                       <version>${lib.ant.xerces.version}</version>
                </dependency>
                <dependency>
                        <groupId>jrockit</groupId>
                        <scope>system</scope>
                        <systemPath>${project.basedir}/../lib/ext/jrockit/jrockit.jar</systemPath>
                </dependency>
-               
+
     <dependency>
-      <groupId>ant</groupId>
+                       <!-- Identical to lib/ant/lib/ant.jar, a former system-scoped dependency -->
+                       <groupId>ant</groupId>
       <artifactId>ant</artifactId>
-      <version>1.0</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/../lib/ant/lib/ant.jar</systemPath>
+                       <version>${lib.ant.version}</version>
     </dependency>
        </dependencies>
 
-<!-- 
+<!--
        <build>
                <plugins>
                        <plugin>
diff --git a/pom.xml b/pom.xml
index 06e84edd3878d99587f301a6fa461e91c3704b01..56ffa2ff78f10f30bce5f628f81c5df54b2d72a9 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -4,17 +4,20 @@
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
        <modelVersion>4.0.0</modelVersion>
 
-       <properties>
-               <revision>1.9.7.BUILD-SNAPSHOT</revision>
-               <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-       </properties>
-
        <groupId>org.aspectj</groupId>
        <artifactId>aspectj-parent</artifactId>
        <packaging>pom</packaging>
        <version>1.9.7.BUILD-SNAPSHOT</version>
        <name>AspectJ Parent Project</name>
 
+       <properties>
+               <revision>1.9.7.BUILD-SNAPSHOT</revision>
+               <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+               <lib.ant.version>1.6.3</lib.ant.version>
+               <lib.ant.xerces.version>2.6.2</lib.ant.xerces.version>
+               <lib.regexp.version>1.2</lib.regexp.version>
+       </properties>
+
        <modules>
                <module>util</module>
                <module>bridge</module>
index 03c33151e54c3348123cbd8461ce659d855736a7..a6407370d326edff18a1d9d15b8601761776472d 100644 (file)
                        <systemPath>${project.basedir}/../lib/commons/commons.jar</systemPath>
                </dependency>
                <dependency>
+                       <!-- Identical to lib/ant/lib/ant.jar, a former system-scoped dependency -->
                        <groupId>ant</groupId>
                        <artifactId>ant</artifactId>
-                       <version>1.0</version>
-                       <scope>system</scope>
-                       <systemPath>${project.basedir}/../lib/ant/lib/ant.jar</systemPath>
+                       <version>${lib.ant.version}</version>
                </dependency>
     <dependency>
       <groupId>org.aspectj</groupId>
                        <systemPath>${project.basedir}/../lib/jdiff/jdiff.jar</systemPath>
                </dependency>
                <dependency>
+                       <!-- Identical to lib/ant/lib/ant-launcher.jar, a former system-scoped dependency -->
                        <groupId>ant</groupId>
                        <artifactId>ant-launcher</artifactId>
-                       <version>1.0</version>
-                       <scope>system</scope>
-                       <systemPath>${project.basedir}/../lib/ant/lib/ant-launcher.jar</systemPath>
+                       <version>${lib.ant.version}</version>
                </dependency>
        </dependencies>
 
index b686fa663e763503ee258f7b3e0b42d283150273..74abf20a65f028bc3da4b5eb4f93d38a2dd38c66 100644 (file)
       <version>${project.version}</version>
     </dependency>
     <dependency>
-      <groupId>xml-apis</groupId>
-      <artifactId>xml-apis</artifactId>
-      <version>1.0</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/../lib/ant/lib/xml-apis.jar</systemPath>
+      <!-- Identical to lib/ant/lib/xml-apis.jar, a former system-scoped dependency -->
+      <groupId>xerces</groupId>
+      <artifactId>xmlParserAPIs</artifactId>
+      <version>${lib.ant.xerces.version}</version>
     </dependency>
     <dependency>
-      <groupId>xercesImpl</groupId>
+      <!-- Identical to lib/ant/lib/xercesImpl.jar, a former system-scoped dependency -->
+      <groupId>xerces</groupId>
       <artifactId>xercesImpl</artifactId>
-      <version>1.0</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/../lib/ant/lib/xercesImpl.jar</systemPath>
+      <version>${lib.ant.xerces.version}</version>
     </dependency>
     <dependency>
+      <!-- Identical to lib/ant/lib/ant.jar, a former system-scoped dependency -->
       <groupId>ant</groupId>
       <artifactId>ant</artifactId>
-      <version>1.0</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/../lib/ant/lib/ant.jar</systemPath>
+      <version>${lib.ant.version}</version>
     </dependency>
   </dependencies>
 </project>
index d0c20be2471dd8f45b8005e91fb42fa01e5a7238..bbbe673194fa45f927574c24ff4fb74bba6dfe51 100644 (file)
       <systemPath>${project.basedir}/../lib/jdiff/jdiff.jar</systemPath>
     </dependency>
     <dependency>
+      <!-- Identical to lib/ant/lib/ant.jar, a former system-scoped dependency -->
       <groupId>ant</groupId>
       <artifactId>ant</artifactId>
-      <version>1.0</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/../lib/ant/lib/ant.jar</systemPath>
+      <version>${lib.ant.version}</version>
     </dependency>
     <dependency>
-      <groupId>jakarta-regexp</groupId>
-      <artifactId>jakarta-regexp</artifactId>
-      <version>1.0</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/../lib/regexp/jakarta-regexp-1.2.jar</systemPath>
+      <!-- Identical to lib/regexp/jakarta-regexp-1.2.jar, a former system-scoped dependency -->
+      <groupId>regexp</groupId>
+      <artifactId>regexp</artifactId>
+      <version>${lib.regexp.version}</version>
     </dependency>
     <dependency>
       <groupId>org.aspectj</groupId>
       <type>test-jar</type>
     </dependency>
     <dependency>
-      <groupId>xercesImpl</groupId>
-      <artifactId>xercesImpl</artifactId>
-      <version>1.0</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/../lib/ant/lib/xercesImpl.jar</systemPath>
+      <!-- Identical to lib/ant/lib/xml-apis.jar, a former system-scoped dependency -->
+      <groupId>xerces</groupId>
+      <artifactId>xmlParserAPIs</artifactId>
+      <version>${lib.ant.xerces.version}</version>
     </dependency>
     <dependency>
-      <groupId>xml-apis</groupId>
-      <artifactId>xml-apis</artifactId>
-      <version>1.0</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/../lib/ant/lib/xml-apis.jar</systemPath>
+      <!-- Identical to lib/ant/lib/xercesImpl.jar, a former system-scoped dependency -->
+      <groupId>xerces</groupId>
+      <artifactId>xercesImpl</artifactId>
+      <version>${lib.ant.xerces.version}</version>
     </dependency>
     <dependency>
       <groupId>junit</groupId>
index 01a890f369f4edaae1d709e30183ffea06fae731..f325b7bd27e1a3e04dcfb038395dc4b289f5aad3 100644 (file)
                        <type>test-jar</type>
                </dependency>
                <dependency>
+                       <!-- Identical to lib/ant/lib/ant.jar, a former system-scoped dependency -->
                        <groupId>ant</groupId>
                        <artifactId>ant</artifactId>
-                       <version>1.0</version>
-                       <scope>system</scope>
-                       <systemPath>${project.basedir}/../lib/ant/lib/ant.jar</systemPath>
+                       <version>${lib.ant.version}</version>
                </dependency>
                <dependency>
                        <groupId>org.aspectj</groupId>
                        <version>${project.version}</version>
                </dependency>
                <dependency>
+                       <!-- Identical to lib/ant/lib/ant-launcher.jar, a former system-scoped dependency -->
                        <groupId>ant</groupId>
                        <artifactId>ant-launcher</artifactId>
-                       <version>1.0</version>
-                       <scope>system</scope>
-                       <systemPath>${project.basedir}/../lib/ant/lib/ant-launcher.jar</systemPath>
+                       <version>${lib.ant.version}</version>
                </dependency>
                <dependency>
                        <groupId>commons</groupId>