]> source.dussan.org Git - archiva.git/commitdiff
MRM-2051: Remove dom4j (#112)
authorPJ Fanning <pjfanning@users.noreply.github.com>
Sat, 6 Aug 2022 04:25:12 +0000 (05:25 +0100)
committerGitHub <noreply@github.com>
Sat, 6 Aug 2022 04:25:12 +0000 (14:25 +1000)
* remove unused dom4j dependency

* remove dom4j

* Update Maven2RepositoryMetadataResolverTest.java

* Update Maven2RepositoryMetadataResolverTest.java

fix MRM-2051

archiva-modules/archiva-base/archiva-repository-scanner/src/test/resources/repositories/default-repository/org/apache/maven/archiva/archiva-xml-tools/1.0-SNAPSHOT/archiva-xml-tools-1.0-SNAPSHOT.pom
archiva-modules/archiva-maven/archiva-maven-repository/src/test/java/org/apache/archiva/maven/repository/metadata/storage/Maven2RepositoryMetadataResolverTest.java
archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/default-repository/org/apache/maven/archiva/archiva-xml-tools/1.0-SNAPSHOT/archiva-xml-tools-1.0-SNAPSHOT.pom
archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/target-repo/org/apache/archiva/archiva/1.2.1/archiva-1.2.1.pom
archiva-modules/metadata/test-repository/src/main/resources/org/apache/archiva/archiva-common/1.2.1/archiva-common-1.2.1.pom
archiva-modules/metadata/test-repository/src/main/resources/org/apache/archiva/archiva/1.2.1/archiva-1.2.1.pom
archiva-modules/metadata/test-repository/src/main/resources/org/apache/archiva/archiva/1.2.2/archiva-1.2.2.pom
archiva-modules/metadata/test-repository/src/main/resources/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2.pom
pom.xml

index b45a5f3a52abe212673851ef31e643b8ffe33246..07bee6aa41c7afa975a6e4f347b7e0c99bd38b64 100644 (file)
       <groupId>org.apache.maven.archiva</groupId>
       <artifactId>archiva-common</artifactId>
     </dependency>
-    <dependency>
-      <groupId>org.dom4j</groupId>
-      <artifactId>dom4j</artifactId>
-      <version>${dom4j.version}</version>
-    </dependency>
     <dependency>
       <groupId>jaxen</groupId>
       <artifactId>jaxen</artifactId>
index ea46c624a47eb37a3b38a554cfbfccf816a2fc88..85110dc4a8dc78e9e543f8273629edf2b1b0ef9a 100644 (file)
@@ -218,17 +218,16 @@ public class Maven2RepositoryMetadataResolverTest
                            "http://www.nabble.com/Archiva---Issues-f29617.html" );
 
         List<Dependency> dependencies = metadata.getDependencies();
-        assertEquals( 10, dependencies.size() );
+        assertEquals( 9, dependencies.size() );
         assertDependency( dependencies.get( 0 ), "commons-lang", "commons-lang", "2.2" );
         assertDependency( dependencies.get( 1 ), "commons-io", "commons-io", "1.4" );
         assertDependency( dependencies.get( 2 ), "org.slf4j", "slf4j-api", "1.5.0" );
         assertDependency( dependencies.get( 3 ), "org.codehaus.plexus", "plexus-component-api", "1.0-alpha-22" );
         assertDependency( dependencies.get( 4 ), "org.codehaus.plexus", "plexus-spring", "1.2", "test" );
         assertDependency( dependencies.get( 5 ), "xalan", "xalan", "2.7.0" );
-        assertDependency( dependencies.get( 6 ), "org.dom4j", "dom4j", "${dom4j.version}", "test" );
-        assertDependency( dependencies.get( 7 ), "junit", "junit", "3.8.1", "test" );
-        assertDependency( dependencies.get( 8 ), "easymock", "easymock", "1.2_Java1.3", "test" );
-        assertDependency( dependencies.get( 9 ), "easymock", "easymockclassextension", "1.2", "test" );
+        assertDependency( dependencies.get( 6 ), "junit", "junit", "3.8.1", "test" );
+        assertDependency( dependencies.get( 7 ), "easymock", "easymock", "1.2_Java1.3", "test" );
+        assertDependency( dependencies.get( 8 ), "easymock", "easymockclassextension", "1.2", "test" );
 
         assertEquals( 8, metadata.getProperties().size() );
         assertEquals( "http://www.apache.org/images/asf_logo_wide.gif", metadata.getProperties().get("organization.logo") );
@@ -682,8 +681,8 @@ public class Maven2RepositoryMetadataResolverTest
 
         assertArtifact( artifacts.get( 0 ), "plexus-spring-1.2-sources.jar", 0, EMPTY_SHA1, EMPTY_MD5 );
         assertArtifact( artifacts.get( 1 ), "plexus-spring-1.2.jar", 0, EMPTY_SHA1, EMPTY_MD5 );
-        assertArtifact( artifacts.get( 2 ), "plexus-spring-1.2.pom", 7422, "28e86d3e2723e4894587e4b758231f76febce942",
-                        "9f663d8e7adf6adff4133653b59d1e28" );
+        assertArtifact( artifacts.get( 2 ), "plexus-spring-1.2.pom", 7273, "ac54312a724733a2eb7a9db1a5b8a0ec7671a814",
+                        "38aa7a946d1ee14fae9bf6a17c603eb8" );
     }
 
     @Test
index b45a5f3a52abe212673851ef31e643b8ffe33246..07bee6aa41c7afa975a6e4f347b7e0c99bd38b64 100644 (file)
       <groupId>org.apache.maven.archiva</groupId>
       <artifactId>archiva-common</artifactId>
     </dependency>
-    <dependency>
-      <groupId>org.dom4j</groupId>
-      <artifactId>dom4j</artifactId>
-      <version>${dom4j.version}</version>
-    </dependency>
     <dependency>
       <groupId>jaxen</groupId>
       <artifactId>jaxen</artifactId>
index 0bf4b0f6c8195886ac7775bfa7d48154ed595995..04a1dc4ac842b6360fe32c643e49d0d9f2409bb8 100755 (executable)
         <artifactId>derbytools</artifactId>
         <version>10.1.3.1</version>
       </dependency>
-      <dependency>
-        <groupId>org.dom4j</groupId>
-        <artifactId>dom4j</artifactId>
-        <version>${dom4j.version}</version>
-      </dependency>
       <dependency>
         <groupId>hsqldb</groupId>
         <artifactId>hsqldb</artifactId>
index 360cc46f91cac197a3ebfd305a58c6ef8b8c49bb..1ec340805981047354fad6a54844215c8f7737ab 100644 (file)
       <artifactId>xalan</artifactId>
       <version>2.7.0</version>
     </dependency>
-    <dependency>
-      <groupId>org.dom4j</groupId>
-      <artifactId>dom4j</artifactId>
-      <version>${dom4j.version}</version>
-      <scope>test</scope>
-    </dependency>
   </dependencies>
   <build>
     <plugins>
index 0bf4b0f6c8195886ac7775bfa7d48154ed595995..04a1dc4ac842b6360fe32c643e49d0d9f2409bb8 100644 (file)
         <artifactId>derbytools</artifactId>
         <version>10.1.3.1</version>
       </dependency>
-      <dependency>
-        <groupId>org.dom4j</groupId>
-        <artifactId>dom4j</artifactId>
-        <version>${dom4j.version}</version>
-      </dependency>
       <dependency>
         <groupId>hsqldb</groupId>
         <artifactId>hsqldb</artifactId>
index 0bf4b0f6c8195886ac7775bfa7d48154ed595995..04a1dc4ac842b6360fe32c643e49d0d9f2409bb8 100644 (file)
         <artifactId>derbytools</artifactId>
         <version>10.1.3.1</version>
       </dependency>
-      <dependency>
-        <groupId>org.dom4j</groupId>
-        <artifactId>dom4j</artifactId>
-        <version>${dom4j.version}</version>
-      </dependency>
       <dependency>
         <groupId>hsqldb</groupId>
         <artifactId>hsqldb</artifactId>
index cc7397558b6be103a3fac8bf52e9dc3e7d5727c7..d6b5956eb9149238ed04b6385c7d2851dfe74cf3 100644 (file)
       <artifactId>plexus-component-api</artifactId>
       <version>1.0-alpha-22</version>
     </dependency>
-    <dependency>
-      <groupId>org.dom4j</groupId>
-      <artifactId>dom4j</artifactId>
-      <version>${dom4j.version}</version>
-    </dependency>
     <dependency>
       <groupId>com.opensymphony</groupId>
       <artifactId>webwork</artifactId>
diff --git a/pom.xml b/pom.xml
index 9aec66e6845734ab4aef85f90d4bee07e208aedb..bf8b343be3966dcf3e530545b6368f07f688ab4f 100644 (file)
--- a/pom.xml
+++ b/pom.xml
     <jsoup.version>1.14.2</jsoup.version>
     <rome.version>1.16.0</rome.version>
     <cronutils.version>9.1.6</cronutils.version>
-    <dom4j.version>2.1.3</dom4j.version>
 
     <!-- JCR modules -->
     <javax.jcr.version>2.0</javax.jcr.version>