From e9eb36e6ded14e63ccd981a6b7c0472bc7c40f2c Mon Sep 17 00:00:00 2001 From: Martin Stockhammer Date: Fri, 5 Jun 2020 20:09:53 +0200 Subject: [PATCH] Dependency cleanup for maven-proxy --- .../META-INF/maven/archetype-metadata.xml | 4 + .../archetype-resources/pom.xml | 21 ++- .../projects/compile/archetype.properties | 3 +- .../archiva-core-consumers/pom.xml | 15 ++ .../archiva-indexer-consumers/pom.xml | 10 ++ .../archiva-repository-admin-default/pom.xml | 11 ++ .../archiva-maven/archiva-maven-proxy/pom.xml | 158 +++++++++++------- .../archiva/proxy/HttpProxyTransferTest.java | 10 +- .../archiva-maven-repository/pom.xml | 4 + .../archiva-maven-scheduler/pom.xml | 4 + .../archiva-scheduler-repository/pom.xml | 10 ++ .../archiva-web/archiva-rss/pom.xml | 10 ++ .../plugins/problem-reports/pom.xml | 11 ++ status-dep.txt | 1 + 14 files changed, 193 insertions(+), 79 deletions(-) diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml index 98f379e30..c8170067b 100644 --- a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml +++ b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml @@ -61,5 +61,9 @@ ${httpclient.core.version} + + ${wagon.version} + + diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resourcesstatic/archetype-resources/pom.xml b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resourcesstatic/archetype-resources/pom.xml index 851d78914..00d8bf61c 100644 --- a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resourcesstatic/archetype-resources/pom.xml +++ b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resourcesstatic/archetype-resources/pom.xml @@ -40,6 +40,7 @@ ${httpcoreVersion} ${archivaCompVersion} ${beanUtilsVersion} + ${mavenWagonVersion} @@ -69,6 +70,18 @@ + + org.apache.maven.wagon + wagon-http + ${maven.wagon.version} + test + + + org.apache.maven.wagon + wagon-http-lightweight + ${maven.wagon.version} + test + org.apache.archiva repository-statistics @@ -223,14 +236,6 @@ test - diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/test/resources/projects/compile/archetype.properties b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/test/resources/projects/compile/archetype.properties index dbb350a5d..d9b8f3cc6 100644 --- a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/test/resources/projects/compile/archetype.properties +++ b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/test/resources/projects/compile/archetype.properties @@ -32,4 +32,5 @@ mockitoVersion=${mockito.version} httpclientVersion=${httpclient.version} httpcoreVersion=${httpclient.core.version} archivaCompVersion=${archiva.comp.version} -beanUtilsVersion=${commons.beanutils.version} \ No newline at end of file +beanUtilsVersion=${commons.beanutils.version} +mavenWagonVersion=${wagon.version} \ No newline at end of file diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/pom.xml b/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/pom.xml index f8ccd16de..9a4fe657f 100644 --- a/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/pom.xml +++ b/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/pom.xml @@ -130,6 +130,21 @@ javax.transaction-api test + + org.apache.logging.log4j + log4j-jcl + test + + + org.apache.maven.wagon + wagon-http + test + + + org.apache.maven.wagon + wagon-http-lightweight + test + org.springframework diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-indexer-consumers/pom.xml b/archiva-modules/archiva-base/archiva-consumers/archiva-indexer-consumers/pom.xml index 2a9678abe..4502c1d51 100644 --- a/archiva-modules/archiva-base/archiva-consumers/archiva-indexer-consumers/pom.xml +++ b/archiva-modules/archiva-base/archiva-consumers/archiva-indexer-consumers/pom.xml @@ -93,6 +93,16 @@ + + org.apache.maven.wagon + wagon-http + test + + + org.apache.maven.wagon + wagon-http-lightweight + test + org.apache.archiva repository-statistics diff --git a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/pom.xml b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/pom.xml index eaa26bb5b..405335f71 100644 --- a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/pom.xml +++ b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/pom.xml @@ -164,7 +164,18 @@ + + + org.apache.maven.wagon + wagon-http + test + + + org.apache.maven.wagon + wagon-http-lightweight + test + javax.persistence javax.persistence-api diff --git a/archiva-modules/archiva-maven/archiva-maven-proxy/pom.xml b/archiva-modules/archiva-maven/archiva-maven-proxy/pom.xml index bae0d27d2..d22e1d63b 100644 --- a/archiva-modules/archiva-maven/archiva-maven-proxy/pom.xml +++ b/archiva-modules/archiva-maven/archiva-maven-proxy/pom.xml @@ -39,20 +39,108 @@ org.apache.archiva - archiva-plexus-bridge + archiva-proxy + + + javax.servlet + javax.servlet-api org.apache.archiva - archiva-repository-admin-api + archiva-storage-api org.apache.archiva - archiva-proxy + archiva-storage-fs + + + org.apache.archiva + archiva-policies + + org.apache.archiva.components.registry + archiva-components-spring-registry-api + + + org.apache.archiva + archiva-repository-api + + + org.apache.archiva + archiva-repository-layer + + + org.apache.archiva + archiva-proxy-api + + + org.apache.archiva + archiva-model + + + org.apache.archiva + archiva-configuration + + + org.apache.archiva + archiva-scheduler-repository-api + + + org.apache.archiva + archiva-common + + + org.apache.archiva + metadata-model + + + org.apache.archiva + archiva-filelock + + + org.apache.archiva.components + archiva-components-spring-taskqueue + + org.apache.maven.wagon wagon-provider-api + + org.apache.commons + commons-lang3 + + + commons-io + commons-io + + + + javax.inject + javax.inject + + + javax.annotation + javax.annotation-api + + + + org.springframework + spring-context + + + org.springframework + spring-test + test + + + + net.sf.ehcache + ehcache + test + + + org.apache.maven.wagon wagon-file @@ -63,12 +151,12 @@ org.apache.maven.wagon wagon-http-lightweight - runtime + test org.apache.maven.wagon wagon-http - runtime + test commons-logging @@ -111,30 +199,11 @@ org.apache.archiva.redback redback-common-jpa - ${redback.version} - test - - - org.springframework - spring-tx - ${spring.version} - test - - - org.springframework - spring-orm - ${spring.version} test org.apache.openjpa openjpa - ${openjpaVersion} - test - - - org.ow2.asm - asm test @@ -142,52 +211,11 @@ jetty-server test - - org.apache.archiva.components.registry - archiva-components-spring-registry-commons - test - org.apache.archiva archiva-test-utils test - - org.apache.archiva - archiva-mock - test - - - org.assertj - assertj-core - test - - - org.hsqldb - hsqldb - test - - - org.apache.archiva.redback - redback-rbac-cached - test - - - org.apache.derby - derby - test - - - org.apache.archiva.redback - redback-common-test-resources - test - - - org.apache.logging.log4j - log4j-jcl - test - - diff --git a/archiva-modules/archiva-maven/archiva-maven-proxy/src/test/java/org/apache/archiva/proxy/HttpProxyTransferTest.java b/archiva-modules/archiva-maven/archiva-maven-proxy/src/test/java/org/apache/archiva/proxy/HttpProxyTransferTest.java index c48586fe6..2189614f9 100644 --- a/archiva-modules/archiva-maven/archiva-maven-proxy/src/test/java/org/apache/archiva/proxy/HttpProxyTransferTest.java +++ b/archiva-modules/archiva-maven/archiva-maven-proxy/src/test/java/org/apache/archiva/proxy/HttpProxyTransferTest.java @@ -36,9 +36,9 @@ import org.apache.archiva.repository.base.BasicManagedRepository; import org.apache.archiva.repository.storage.StorageAsset; import org.apache.archiva.test.utils.ArchivaSpringJUnit4ClassRunner; import org.apache.commons.io.FileUtils; +import org.apache.commons.lang3.StringUtils; import org.apache.maven.wagon.Wagon; import org.apache.maven.wagon.providers.http.HttpWagon; -import org.assertj.core.api.Assertions; import org.eclipse.jetty.server.Handler; import org.eclipse.jetty.server.HttpConnectionFactory; import org.eclipse.jetty.server.Request; @@ -209,8 +209,8 @@ public class HttpProxyTransferTest public void testGetOverHttpProxy() throws Exception { - Assertions.assertThat( System.getProperty( "http.proxyHost", "" ) ).isEmpty(); - Assertions.assertThat( System.getProperty( "http.proxyPort", "" ) ).isEmpty(); + assertTrue( StringUtils.isEmpty( System.getProperty( "http.proxyHost" , "" ) )); + assertTrue( StringUtils.isEmpty( System.getProperty( "http.proxyPort", "" ) ) ); String path = "org/apache/maven/test/get-default-layout/1.0/get-default-layout-1.0.jar"; @@ -239,8 +239,8 @@ public class HttpProxyTransferTest String actualContents = FileUtils.readFileToString( downloadedFile.getFilePath().toFile(), Charset.defaultCharset() ); assertEquals( "Check file contents.", expectedContents, actualContents ); - Assertions.assertThat( System.getProperty( "http.proxyHost" , "") ).isEmpty(); - Assertions.assertThat( System.getProperty( "http.proxyPort" , "") ).isEmpty(); + assertTrue( StringUtils.isEmpty( System.getProperty( "http.proxyHost", "" ) ) ); + assertTrue( StringUtils.isEmpty( System.getProperty( "http.proxyPort" , "") ) ); } private void addConnector() diff --git a/archiva-modules/archiva-maven/archiva-maven-repository/pom.xml b/archiva-modules/archiva-maven/archiva-maven-repository/pom.xml index 4f1ceb6e6..594727d41 100644 --- a/archiva-modules/archiva-maven/archiva-maven-repository/pom.xml +++ b/archiva-modules/archiva-maven/archiva-maven-repository/pom.xml @@ -108,6 +108,10 @@ org.apache.archiva.maven archiva-maven-proxy + + org.apache.archiva + archiva-repository-admin-api + diff --git a/archiva-modules/archiva-maven/archiva-maven-scheduler/pom.xml b/archiva-modules/archiva-maven/archiva-maven-scheduler/pom.xml index 059e6dd80..d08e854df 100644 --- a/archiva-modules/archiva-maven/archiva-maven-scheduler/pom.xml +++ b/archiva-modules/archiva-maven/archiva-maven-scheduler/pom.xml @@ -60,6 +60,10 @@ org.apache.archiva.maven archiva-maven-proxy + + org.apache.archiva + archiva-repository-admin-api + org.apache.maven.indexer diff --git a/archiva-modules/archiva-scheduler/archiva-scheduler-repository/pom.xml b/archiva-modules/archiva-scheduler/archiva-scheduler-repository/pom.xml index 6c8246ed8..a1069710a 100644 --- a/archiva-modules/archiva-scheduler/archiva-scheduler-repository/pom.xml +++ b/archiva-modules/archiva-scheduler/archiva-scheduler-repository/pom.xml @@ -125,6 +125,16 @@ + + org.apache.maven.wagon + wagon-http + test + + + org.apache.maven.wagon + wagon-http-lightweight + test + org.apache.archiva archiva-repository-admin-api diff --git a/archiva-modules/archiva-web/archiva-rss/pom.xml b/archiva-modules/archiva-web/archiva-rss/pom.xml index 17d580b51..4c84df156 100644 --- a/archiva-modules/archiva-web/archiva-rss/pom.xml +++ b/archiva-modules/archiva-web/archiva-rss/pom.xml @@ -55,6 +55,16 @@ + + org.apache.maven.wagon + wagon-http + test + + + org.apache.maven.wagon + wagon-http-lightweight + test + org.apache.archiva.maven archiva-maven-repository diff --git a/archiva-modules/plugins/problem-reports/pom.xml b/archiva-modules/plugins/problem-reports/pom.xml index 9a9d3eb55..cfea4e188 100644 --- a/archiva-modules/plugins/problem-reports/pom.xml +++ b/archiva-modules/plugins/problem-reports/pom.xml @@ -96,6 +96,17 @@ test + + org.apache.maven.wagon + wagon-http + test + + + org.apache.maven.wagon + wagon-http-lightweight + test + + diff --git a/status-dep.txt b/status-dep.txt index d49898b98..3170d6edc 100644 --- a/status-dep.txt +++ b/status-dep.txt @@ -43,6 +43,7 @@ archiva-modules archiva-maven-model archiva-maven-metadata archiva-maven-model + archiva-maven-proxy -- 2.39.5