diff options
author | Brett Porter <brett@apache.org> | 2014-07-29 18:16:23 +1000 |
---|---|---|
committer | Brett Porter <brett@apache.org> | 2014-07-29 18:16:23 +1000 |
commit | 909ad7500ba66e0c14bfb85e106070b04cabc01e (patch) | |
tree | 33b54b9ec848fa207c1bd398b3e9d6353e43cfb8 /archiva-modules/archiva-base/archiva-consumers | |
parent | 9e0abd75f35f57a9882d669c5ff9e76298122928 (diff) | |
download | archiva-909ad7500ba66e0c14bfb85e106070b04cabc01e.tar.gz archiva-909ad7500ba66e0c14bfb85e106070b04cabc01e.zip |
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.
Diffstat (limited to 'archiva-modules/archiva-base/archiva-consumers')
5 files changed, 104 insertions, 105 deletions
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 @@ <archetypeVersion>2.2</archetypeVersion> </properties> <dependencies> + <!-- Used by the archetype, so needed to be built before integration + tests run and use them --> <dependency> <groupId>org.apache.archiva</groupId> <artifactId>archiva-consumer-api</artifactId> + <scope>test</scope> </dependency> <dependency> <groupId>org.apache.archiva</groupId> <artifactId>archiva-configuration</artifactId> - </dependency> - <dependency> - <groupId>org.apache.archiva</groupId> - <artifactId>archiva-repository-layer</artifactId> - <exclusions> - <exclusion> - <groupId>log4j</groupId> - <artifactId>log4j</artifactId> - </exclusion> - <exclusion> - <groupId>commons-logging</groupId> - <artifactId>commons-logging-api</artifactId> - </exclusion> - </exclusions> - </dependency> - <dependency> - <groupId>org.apache.archiva</groupId> - <artifactId>archiva-indexer</artifactId> + <scope>test</scope> </dependency> <dependency> <groupId>org.apache.archiva</groupId> <artifactId>archiva-repository-admin-default</artifactId> - <scope>provided</scope> + <scope>test</scope> </dependency> <dependency> <groupId>org.apache.archiva</groupId> <artifactId>metadata-store-jcr</artifactId> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>org.apache.maven.wagon</groupId> - <artifactId>wagon-http</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.apache.httpcomponents</groupId> - <artifactId>httpcore</artifactId> - <exclusions> - <exclusion> - <groupId>commons-logging</groupId> - <artifactId>commons-logging</artifactId> - </exclusion> - </exclusions> - </dependency> - <dependency> - <groupId>org.apache.maven.wagon</groupId> - <artifactId>wagon-http-lightweight</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>xerces</groupId> - <artifactId>xercesImpl</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.apache.derby</groupId> - <artifactId>derby</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>commons-dbcp</groupId> - <artifactId>commons-dbcp</artifactId> - <version>1.4</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>commons-pool</groupId> - <artifactId>commons-pool</artifactId> - <scope>runtime</scope> - </dependency> - <dependency> - <groupId>org.jsoup</groupId> - <artifactId>jsoup</artifactId> <scope>test</scope> </dependency> <dependency> 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 @@ <requiredProperty key="jackrabbitVersion"> <defaultValue>${jackrabbit.version}</defaultValue> </requiredProperty> + <requiredProperty key="guavaVersion"> + <defaultValue>${guava.version}</defaultValue> + </requiredProperty> + <requiredProperty key="maven3xVersion"> + <defaultValue>${maven3x.version}</defaultValue> + </requiredProperty> + <requiredProperty key="redbackRegistryVersion"> + <defaultValue>${redback.registry.version}</defaultValue> + </requiredProperty> + <requiredProperty key="redbackQuartzVersion"> + <defaultValue>${redback.quartz.version}</defaultValue> + </requiredProperty> + <requiredProperty key="commonsDbcpVersion"> + <defaultValue>${commons-dbcp.version}</defaultValue> + </requiredProperty> + <requiredProperty key="commonsPoolVersion"> + <defaultValue>${commons-pool.version}</defaultValue> + </requiredProperty> + <requiredProperty key="luceneVersion"> + <defaultValue>${lucene.version}</defaultValue> + </requiredProperty> + <requiredProperty key="derbyVersion"> + <defaultValue>${derbyVersion}</defaultValue> + </requiredProperty> </requiredProperties> </archetype-descriptor> 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 @@ </description> <properties> <archiva.version>${archivaVersion}</archiva.version> - <slf4jVersion>${slf4jVersion}</slf4jVersion> - <log4jVersion>${log4jVersion}</log4jVersion> + <slf4j.version>${slf4jVersion}</slf4j.version> + <log4j.version>${log4jVersion}</log4j.version> <jackrabbit.version>${jackrabbitVersion}</jackrabbit.version> <spring.version>${springVersion}</spring.version> + <guava.version>${guavaVersion}</guava.version> + <maven3x.version>${maven3xVersion}</maven3x.version> + <redback.registry.version>${redbackRegistryVersion}</redback.registry.version> + <redback.quartz.version>${redbackQuartzVersion}</redback.quartz.version> + <commons.dbcp.version>${commonsDbcpVersion}</commons.dbcp.version> + <commons.pool.version>${commonsPoolVersion}</commons.pool.version> + <lucene.version>${luceneVersion}</lucene.version> + <derby.version>${derbyVersion}</derby.version> </properties> <dependencies> <dependency> @@ -55,12 +63,18 @@ <dependency> <groupId>org.apache.archiva.redback.components.registry</groupId> <artifactId>spring-registry-api</artifactId> - <version>2.3</version> + <version>${redback.registry.version}</version> + <exclusions> + <exclusion> + <groupId>commons-logging</groupId> + <artifactId>commons-logging</artifactId> + </exclusion> + </exclusions> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> - <version>${slf4jVersion}</version> + <version>${slf4j.version}</version> </dependency> <dependency> <groupId>javax.inject</groupId> @@ -76,6 +90,12 @@ <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>${spring.version}</version> + <exclusions> + <exclusion> + <groupId>commons-logging</groupId> + <artifactId>commons-logging</artifactId> + </exclusion> + </exclusions> </dependency> <dependency> @@ -122,28 +142,67 @@ <dependency> <groupId>org.apache.archiva.redback.components</groupId> <artifactId>spring-quartz</artifactId> - <version>2.1</version> + <version>${redback.quartz.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>jcl-over-slf4j</artifactId> - <version>${slf4jVersion}</version> + <version>${slf4j.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-slf4j-impl</artifactId> - <version>${log4jVersion}</version> + <version>${log4j.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-core</artifactId> - <version>${log4jVersion}</version> + <version>${log4j.version}</version> <scope>test</scope> </dependency> </dependencies> + + <!-- match up with those used by Archiva --> + <dependencyManagement> + <dependencies> + <dependency> + <groupId>com.google.guava</groupId> + <artifactId>guava</artifactId> + <version>${guava.version}</version> + </dependency> + <dependency> + <groupId>org.apache.maven</groupId> + <artifactId>maven-model</artifactId> + <version>${maven3x.version}</version> + </dependency> + <dependency> + <groupId>commons-dbcp</groupId> + <artifactId>commons-dbcp</artifactId> + <version>${commons.dbcp.version}</version> + <scope>runtime</scope> + </dependency> + <dependency> + <groupId>commons-pool</groupId> + <artifactId>commons-pool</artifactId> + <version>${commons.pool.version}</version> + <scope>runtime</scope> + </dependency> + <dependency> + <groupId>org.apache.lucene</groupId> + <artifactId>lucene-core</artifactId> + <version>${lucene.version}</version> + </dependency> + <dependency> + <groupId>org.apache.derby</groupId> + <artifactId>derby</artifactId> + <version>${derby.version}</version> + </dependency> + </dependencies> + </dependencyManagement> + <build> <pluginManagement> <plugins> 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"> <mirrors> <mirror> - <mirrorOf>archiva.snapshots</mirrorOf> + <mirrorOf>external:*</mirrorOf> <id>local-mirror</id> <name>local-mirror</name> <url>@localRepositoryUrl@</url> </mirror> - <mirror> - <mirrorOf>central</mirrorOf> - <id>central-mirror</id> - <name>central-mirror</name> - <url>@localRepositoryUrl@</url> - </mirror> </mirrors> <profiles> <profile> @@ -66,26 +60,6 @@ under the License. <enabled>true</enabled> </snapshots> </repository> - <repository> - <id>apache.snapshots</id> - <url>@localRepositoryUrl@</url> - <releases> - <enabled>true</enabled> - </releases> - <snapshots> - <enabled>true</enabled> - </snapshots> - </repository> - <repository> - <id>archiva.snapshots</id> - <url>@localRepositoryUrl@</url> - <releases> - <enabled>true</enabled> - </releases> - <snapshots> - <enabled>true</enabled> - </snapshots> - </repository> </repositories> <pluginRepositories> <pluginRepository> |