mirror of
https://github.com/apache/archiva.git
synced 2025-02-06 10:09:32 +00:00
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.
This commit is contained in:
parent
9e0abd75f3
commit
909ad7500b
@ -49,7 +49,6 @@
|
||||
<dependency>
|
||||
<groupId>org.eclipse.sisu</groupId>
|
||||
<artifactId>org.eclipse.sisu.plexus</artifactId>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>dom4j</groupId>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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}
|
||||
|
||||
|
@ -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>
|
||||
|
10
pom.xml
10
pom.xml
@ -57,6 +57,7 @@
|
||||
<commons-io.version>2.4</commons-io.version>
|
||||
<commons-lang.version>2.6</commons-lang.version>
|
||||
<commons-pool.version>1.6</commons-pool.version>
|
||||
<commons-dbcp.version>1.4</commons-dbcp.version>
|
||||
|
||||
<maven3x.version>3.0.5</maven3x.version>
|
||||
<maven.version>2.0.8</maven.version>
|
||||
@ -91,6 +92,7 @@
|
||||
<httpclient.core.version>4.3</httpclient.core.version>
|
||||
<javaxMailVersion>1.4</javaxMailVersion>
|
||||
<jettyVersion>8.1.14.v20131031</jettyVersion>
|
||||
<guava.version>16.0.1</guava.version>
|
||||
|
||||
<!-- restore when we will be able to use a derby in memory database -->
|
||||
<redbackTestJdbcUrl>jdbc:derby:memory:users-test;create=true</redbackTestJdbcUrl>
|
||||
@ -588,7 +590,7 @@
|
||||
<dependency>
|
||||
<groupId>com.google.guava</groupId>
|
||||
<artifactId>guava</artifactId>
|
||||
<version>16.0.1</version>
|
||||
<version>${guava.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>stax</groupId>
|
||||
@ -696,7 +698,7 @@
|
||||
<dependency>
|
||||
<groupId>commons-dbcp</groupId>
|
||||
<artifactId>commons-dbcp</artifactId>
|
||||
<version>1.4</version>
|
||||
<version>${commons-dbcp.version}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
@ -734,6 +736,10 @@
|
||||
<groupId>xom</groupId>
|
||||
<artifactId>xom</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>xerces</groupId>
|
||||
<artifactId>xercesImpl</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
Loading…
x
Reference in New Issue
Block a user