From 909ad7500ba66e0c14bfb85e106070b04cabc01e Mon Sep 17 00:00:00 2001 From: Brett Porter Date: Tue, 29 Jul 2014 18:16:23 +1000 Subject: [PATCH] ensure archetype builds on a clean repository Need to line up several dependencies that got managed differently, and trim out things no longer needed. This could use a diet in general - there should not be very much of Archiva's API or dependencies needed to build and test a consumer. --- .../archiva-base/archiva-common/pom.xml | 1 - .../archiva-consumer-archetype/pom.xml | 70 ++--------------- .../META-INF/maven/archetype-metadata.xml | 24 ++++++ .../archetype-resources/pom.xml | 75 +++++++++++++++++-- .../projects/compile/archetype.properties | 12 +-- .../src/test/test-settings.xml | 28 +------ pom.xml | 10 ++- 7 files changed, 112 insertions(+), 108 deletions(-) diff --git a/archiva-modules/archiva-base/archiva-common/pom.xml b/archiva-modules/archiva-base/archiva-common/pom.xml index 56e50cfd1..39d4ec37d 100644 --- a/archiva-modules/archiva-base/archiva-common/pom.xml +++ b/archiva-modules/archiva-base/archiva-common/pom.xml @@ -49,7 +49,6 @@ org.eclipse.sisu org.eclipse.sisu.plexus - compile dom4j diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/pom.xml b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/pom.xml index e23ca95c9..630fb1b67 100644 --- a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/pom.xml +++ b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/pom.xml @@ -34,86 +34,26 @@ 2.2 + org.apache.archiva archiva-consumer-api + test org.apache.archiva archiva-configuration - - - org.apache.archiva - archiva-repository-layer - - - log4j - log4j - - - commons-logging - commons-logging-api - - - - - org.apache.archiva - archiva-indexer + test org.apache.archiva archiva-repository-admin-default - provided + test org.apache.archiva metadata-store-jcr - provided - - - org.apache.maven.wagon - wagon-http - test - - - org.apache.httpcomponents - httpcore - - - commons-logging - commons-logging - - - - - org.apache.maven.wagon - wagon-http-lightweight - test - - - xerces - xercesImpl - test - - - org.apache.derby - derby - test - - - commons-dbcp - commons-dbcp - 1.4 - test - - - commons-pool - commons-pool - runtime - - - org.jsoup - jsoup test 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 fa67d3d4d..f31f85663 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 @@ -49,5 +49,29 @@ ${jackrabbit.version} + + ${guava.version} + + + ${maven3x.version} + + + ${redback.registry.version} + + + ${redback.quartz.version} + + + ${commons-dbcp.version} + + + ${commons-pool.version} + + + ${lucene.version} + + + ${derbyVersion} + 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 321ddda41..dcb862b99 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 @@ -31,10 +31,18 @@ ${archivaVersion} - ${slf4jVersion} - ${log4jVersion} + ${slf4jVersion} + ${log4jVersion} ${jackrabbitVersion} ${springVersion} + ${guavaVersion} + ${maven3xVersion} + ${redbackRegistryVersion} + ${redbackQuartzVersion} + ${commonsDbcpVersion} + ${commonsPoolVersion} + ${luceneVersion} + ${derbyVersion} @@ -55,12 +63,18 @@ org.apache.archiva.redback.components.registry spring-registry-api - 2.3 + ${redback.registry.version} + + + commons-logging + commons-logging + + org.slf4j slf4j-api - ${slf4jVersion} + ${slf4j.version} javax.inject @@ -76,6 +90,12 @@ org.springframework spring-context ${spring.version} + + + commons-logging + commons-logging + + @@ -122,28 +142,67 @@ org.apache.archiva.redback.components spring-quartz - 2.1 + ${redback.quartz.version} test org.slf4j jcl-over-slf4j - ${slf4jVersion} + ${slf4j.version} test org.apache.logging.log4j log4j-slf4j-impl - ${log4jVersion} + ${log4j.version} test org.apache.logging.log4j log4j-core - ${log4jVersion} + ${log4j.version} test + + + + + + com.google.guava + guava + ${guava.version} + + + org.apache.maven + maven-model + ${maven3x.version} + + + commons-dbcp + commons-dbcp + ${commons.dbcp.version} + runtime + + + commons-pool + commons-pool + ${commons.pool.version} + runtime + + + org.apache.lucene + lucene-core + ${lucene.version} + + + org.apache.derby + derby + ${derby.version} + + + + 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 8741937ef..7b7766421 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 @@ -21,14 +21,16 @@ groupId=org.apache.archiva.consumer.its.compile artifactId=simple-consumer-compile version=1.0-SNAPSHOT package=org.apache.archiva.consumer.its -wagonVersion=${wagon.version} archivaVersion=${archivaVersion} log4jVersion=${log4j.version} slf4jVersion=${slf4j.version} jackrabbitVersion=${jackrabbit.version} springVersion=${spring.version} -redbackVersion=${redback.version} +guavaVersion=${guava.version} +maven3xVersion=${maven3x.version} +redbackRegistryVersion=${redback.registry.version} +redbackQuartzVersion=${redback.quartz.version} +commonsDbcpVersion=${commons-dbcp.version} +commonsPoolVersion=${commons-pool.version} +luceneVersion=${lucene.version} derbyVersion=${derbyVersion} -httpclientCoreVersion=${httpclient.core.version} -commons-poolVersion=${commons-pool.version} - diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/test/test-settings.xml b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/test/test-settings.xml index a2330a905..ed41e84d5 100644 --- a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/test/test-settings.xml +++ b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/test/test-settings.xml @@ -24,17 +24,11 @@ under the License. xmlns="http://maven.apache.org/SETTINGS/1.0.0"> - archiva.snapshots + external:* local-mirror local-mirror @localRepositoryUrl@ - - central - central-mirror - central-mirror - @localRepositoryUrl@ - @@ -66,26 +60,6 @@ under the License. true - - apache.snapshots - @localRepositoryUrl@ - - true - - - true - - - - archiva.snapshots - @localRepositoryUrl@ - - true - - - true - - diff --git a/pom.xml b/pom.xml index 9a511d8f2..9c7a6e9b5 100644 --- a/pom.xml +++ b/pom.xml @@ -57,6 +57,7 @@ 2.4 2.6 1.6 + 1.4 3.0.5 2.0.8 @@ -91,6 +92,7 @@ 4.3 1.4 8.1.14.v20131031 + 16.0.1 jdbc:derby:memory:users-test;create=true @@ -588,7 +590,7 @@ com.google.guava guava - 16.0.1 + ${guava.version} stax @@ -696,7 +698,7 @@ commons-dbcp commons-dbcp - 1.4 + ${commons-dbcp.version} runtime @@ -734,6 +736,10 @@ xom xom + + xerces + xercesImpl + -- 2.39.5