diff options
author | PJ Fanning <pjfanning@users.noreply.github.com> | 2022-08-06 05:25:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-06 14:25:12 +1000 |
commit | c9c0fca8d4bc780018a3b2546b19d5ceb60dfaef (patch) | |
tree | 6328763405fafc647407f2219bf75e14c7e3d71f /archiva-modules | |
parent | 30273c43c55bea0664ef39e99596809a08e614a1 (diff) | |
download | archiva-c9c0fca8d4bc780018a3b2546b19d5ceb60dfaef.tar.gz archiva-c9c0fca8d4bc780018a3b2546b19d5ceb60dfaef.zip |
MRM-2051: Remove dom4j (#112)
* remove unused dom4j dependency
* remove dom4j
* Update Maven2RepositoryMetadataResolverTest.java
* Update Maven2RepositoryMetadataResolverTest.java
fix MRM-2051
Diffstat (limited to 'archiva-modules')
8 files changed, 6 insertions, 43 deletions
diff --git a/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 b/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 index b45a5f3a5..07bee6aa4 100644 --- a/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 +++ b/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 @@ -34,11 +34,6 @@ <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> <version>1.1</version> diff --git a/archiva-modules/archiva-maven/archiva-maven-repository/src/test/java/org/apache/archiva/maven/repository/metadata/storage/Maven2RepositoryMetadataResolverTest.java b/archiva-modules/archiva-maven/archiva-maven-repository/src/test/java/org/apache/archiva/maven/repository/metadata/storage/Maven2RepositoryMetadataResolverTest.java index ea46c624a..85110dc4a 100644 --- a/archiva-modules/archiva-maven/archiva-maven-repository/src/test/java/org/apache/archiva/maven/repository/metadata/storage/Maven2RepositoryMetadataResolverTest.java +++ b/archiva-modules/archiva-maven/archiva-maven-repository/src/test/java/org/apache/archiva/maven/repository/metadata/storage/Maven2RepositoryMetadataResolverTest.java @@ -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 diff --git a/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 b/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 index b45a5f3a5..07bee6aa4 100644 --- a/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 +++ b/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 @@ -34,11 +34,6 @@ <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> <version>1.1</version> diff --git a/archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/target-repo/org/apache/archiva/archiva/1.2.1/archiva-1.2.1.pom b/archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/target-repo/org/apache/archiva/archiva/1.2.1/archiva-1.2.1.pom index 0bf4b0f6c..04a1dc4ac 100755 --- a/archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/target-repo/org/apache/archiva/archiva/1.2.1/archiva-1.2.1.pom +++ b/archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/target-repo/org/apache/archiva/archiva/1.2.1/archiva-1.2.1.pom @@ -501,11 +501,6 @@ <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> <version>1.8.0.7</version> diff --git a/archiva-modules/metadata/test-repository/src/main/resources/org/apache/archiva/archiva-common/1.2.1/archiva-common-1.2.1.pom b/archiva-modules/metadata/test-repository/src/main/resources/org/apache/archiva/archiva-common/1.2.1/archiva-common-1.2.1.pom index 360cc46f9..1ec340805 100644 --- a/archiva-modules/metadata/test-repository/src/main/resources/org/apache/archiva/archiva-common/1.2.1/archiva-common-1.2.1.pom +++ b/archiva-modules/metadata/test-repository/src/main/resources/org/apache/archiva/archiva-common/1.2.1/archiva-common-1.2.1.pom @@ -60,12 +60,6 @@ <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> diff --git a/archiva-modules/metadata/test-repository/src/main/resources/org/apache/archiva/archiva/1.2.1/archiva-1.2.1.pom b/archiva-modules/metadata/test-repository/src/main/resources/org/apache/archiva/archiva/1.2.1/archiva-1.2.1.pom index 0bf4b0f6c..04a1dc4ac 100644 --- a/archiva-modules/metadata/test-repository/src/main/resources/org/apache/archiva/archiva/1.2.1/archiva-1.2.1.pom +++ b/archiva-modules/metadata/test-repository/src/main/resources/org/apache/archiva/archiva/1.2.1/archiva-1.2.1.pom @@ -501,11 +501,6 @@ <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> <version>1.8.0.7</version> diff --git a/archiva-modules/metadata/test-repository/src/main/resources/org/apache/archiva/archiva/1.2.2/archiva-1.2.2.pom b/archiva-modules/metadata/test-repository/src/main/resources/org/apache/archiva/archiva/1.2.2/archiva-1.2.2.pom index 0bf4b0f6c..04a1dc4ac 100644 --- a/archiva-modules/metadata/test-repository/src/main/resources/org/apache/archiva/archiva/1.2.2/archiva-1.2.2.pom +++ b/archiva-modules/metadata/test-repository/src/main/resources/org/apache/archiva/archiva/1.2.2/archiva-1.2.2.pom @@ -501,11 +501,6 @@ <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> <version>1.8.0.7</version> diff --git a/archiva-modules/metadata/test-repository/src/main/resources/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2.pom b/archiva-modules/metadata/test-repository/src/main/resources/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2.pom index cc7397558..d6b5956eb 100644 --- a/archiva-modules/metadata/test-repository/src/main/resources/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2.pom +++ b/archiva-modules/metadata/test-repository/src/main/resources/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2.pom @@ -57,11 +57,6 @@ <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> <version>2.2.6</version> |