diff options
author | skygo <skygo@unknown> | 2014-03-07 18:45:42 +0000 |
---|---|---|
committer | skygo <skygo@unknown> | 2014-03-07 18:45:42 +0000 |
commit | a7489457107a9f9be6526988cebda2ddf46f7d36 (patch) | |
tree | 68be0431bc537a567e0559c91c1c3d8eb89f1859 /archiva-modules/archiva-base/archiva-consumers | |
parent | b9ee53a0cacab32d0de10f45c6d2be203adde1a7 (diff) | |
download | archiva-a7489457107a9f9be6526988cebda2ddf46f7d36.tar.gz archiva-a7489457107a9f9be6526988cebda2ddf46f7d36.zip |
-- archetype pom no more filtered
-- add needed dependencies version in metadata
-- archetype to jdk6
-- adapt IT
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1575365 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-base/archiva-consumers')
4 files changed, 372 insertions, 2 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 21c7f7459..d3dfec291 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 @@ -77,7 +77,17 @@ <directory>src/main/resources</directory> <filtering>true</filtering> </resource> - </resources> + <resource> + <directory>src/main/resourcesstatic</directory> + <filtering>false</filtering> + </resource> + </resources> + <testResources> + <testResource> + <directory>src/test/resources</directory> + <filtering>true</filtering> + </testResource> + </testResources> <extensions> <extension> <groupId>org.apache.maven.archetype</groupId> 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 3d1759e0f..4b1984fca 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 @@ -33,4 +33,30 @@ <directory>src/test/resources</directory> </fileSet> </fileSets> + <requiredProperties> + <requiredProperty key="wagonVersion"> + <defaultValue>${wagon.version}</defaultValue> + </requiredProperty> + <requiredProperty key="archivaVersion"> + <defaultValue>${archivaVersion}</defaultValue> + </requiredProperty> + <requiredProperty key="log4jVersion"> + <defaultValue>${log4j.version}</defaultValue> + </requiredProperty> + <requiredProperty key="slf4jVersion"> + <defaultValue>${slf4j.version}</defaultValue> + </requiredProperty> + <requiredProperty key="springVersion"> + <defaultValue>${spring.version}</defaultValue> + </requiredProperty> + <requiredProperty key="jackrabbitVersion"> + <defaultValue>${jackrabbit.version}</defaultValue> + </requiredProperty> + <requiredProperty key="redbackVersion"> + <defaultValue>${redback.version}</defaultValue> + </requiredProperty> + <requiredProperty key="derbyVersion"> + <defaultValue>${derbyVersion}</defaultValue> + </requiredProperty> + </requiredProperties> </archetype-descriptor>
\ No newline at end of file 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 new file mode 100644 index 000000000..7cbec0b59 --- /dev/null +++ b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resourcesstatic/archetype-resources/pom.xml @@ -0,0 +1,326 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + ~ Licensed to the Apache Software Foundation (ASF) under one + ~ or more contributor license agreements. See the NOTICE file + ~ distributed with this work for additional information + ~ regarding copyright ownership. The ASF licenses this file + ~ to you under the Apache License, Version 2.0 (the + ~ "License"); you may not use this file except in compliance + ~ with the License. You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, + ~ software distributed under the License is distributed on an + ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + ~ KIND, either express or implied. See the License for the + ~ specific language governing permissions and limitations + ~ under the License. + --> +<project xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + <groupId>${groupId}</groupId> + <artifactId>${artifactId}</artifactId> + <version>${version}</version> + <packaging>jar</packaging> + <name>Simple Archiva Consumer</name> + <url>http://archiva.apache.org</url> + <description> + This is a simple consumer component which demonstrates how a + component can be plugged in Archiva. + </description> + <properties> + <archiva.version>${archivaVersion}</archiva.version> + <wagonVersion>${wagonVersion}</wagonVersion> + <slf4jVersion>${slf4jVersion}</slf4jVersion> + <log4jVersion>${log4jVersion}</log4jVersion> + <jackrabbit.version>${jackrabbitVersion}</jackrabbit.version> + <spring.version>${springVersion}</spring.version> + <redback.version>${redbackVersion}</redback.version> + <derbyVersion>${derbyVersion}</derbyVersion> + </properties> + <dependencies> + <dependency> + <groupId>org.apache.archiva</groupId> + <artifactId>archiva-consumer-api</artifactId> + <version>${archiva.version}</version> + </dependency> + <dependency> + <groupId>org.apache.archiva</groupId> + <artifactId>archiva-configuration</artifactId> + <version>${archiva.version}</version> + </dependency> + <dependency> + <groupId>org.apache.archiva</groupId> + <artifactId>archiva-repository-layer</artifactId> + <version>${archiva.version}</version> + </dependency> + <dependency> + <groupId>org.apache.archiva</groupId> + <artifactId>archiva-indexer</artifactId> + <version>${archiva.version}</version> + </dependency> + <dependency> + <groupId>org.apache.archiva</groupId> + <artifactId>maven2-repository</artifactId> + <version>${archiva.version}</version> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.easymock</groupId> + <artifactId>easymock</artifactId> + <version>2.5.2</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>4.9</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.slf4j</groupId> + <artifactId>slf4j-api</artifactId> + <version>${slf4jVersion}</version> + </dependency> + + <dependency> + <groupId>org.apache.logging.log4j</groupId> + <artifactId>log4j-core</artifactId> + <version>${log4jVersion}</version> + <scope>runtime</scope> + </dependency> + <dependency> + <groupId>org.apache.logging.log4j</groupId> + <artifactId>log4j-1.2-api</artifactId> + <version>${log4jVersion}</version> + <scope>runtime</scope> + </dependency> + <dependency> + <groupId>org.apache.logging.log4j</groupId> + <artifactId>log4j-slf4j-impl</artifactId> + <version>${log4jVersion}</version> + <scope>runtime</scope> + </dependency> + <dependency> + <groupId>org.apache.logging.log4j</groupId> + <artifactId>log4j-jcl</artifactId> + <version>${log4jVersion}</version> + <scope>runtime</scope> + </dependency> + + <dependency> + <groupId>org.apache.archiva</groupId> + <artifactId>archiva-repository-admin-default</artifactId> + <version>${archiva.version}</version> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.apache.archiva</groupId> + <artifactId>metadata-store-jcr</artifactId> + <version>${archiva.version}</version> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.apache.jackrabbit</groupId> + <artifactId>jackrabbit-core</artifactId> + <version>${jackrabbit.version}</version> + <scope>provided</scope> + <exclusions> + <exclusion> + <groupId>commons-logging</groupId> + <artifactId>commons-logging</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>org.springframework</groupId> + <artifactId>spring-core</artifactId> + <version>${spring.version}</version> + <exclusions> + <exclusion> + <groupId>commons-logging</groupId> + <artifactId>commons-logging</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>org.springframework</groupId> + <artifactId>spring-beans</artifactId> + <version>${spring.version}</version> + <exclusions> + <exclusion> + <groupId>commons-logging</groupId> + <artifactId>commons-logging</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>org.springframework</groupId> + <artifactId>spring-expression</artifactId> + <version>${spring.version}</version> + <exclusions> + <exclusion> + <groupId>commons-logging</groupId> + <artifactId>commons-logging</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>org.springframework</groupId> + <artifactId>spring-test</artifactId> + <version>${spring.version}</version> + <exclusions> + <exclusion> + <groupId>commons-logging</groupId> + <artifactId>commons-logging</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>org.apache.archiva.redback</groupId> + <artifactId>redback-common-test-resources</artifactId> + <scope>test</scope> + <version>${redback.version}</version> + </dependency> + <dependency> + <groupId>org.apache.archiva.redback</groupId> + <artifactId>redback-rbac-memory</artifactId> + <scope>test</scope> + <version>${redback.version}</version> + </dependency> + <dependency> + <groupId>org.apache.archiva.redback</groupId> + <artifactId>redback-rbac-cached</artifactId> + <scope>test</scope> + <version>${redback.version}</version> + </dependency> + <dependency> + <groupId>org.apache.archiva.redback</groupId> + <artifactId>redback-rbac-role-manager</artifactId> + <scope>test</scope> + <version>${redback.version}</version> + </dependency> + <dependency> + <groupId>org.apache.maven.wagon</groupId> + <artifactId>wagon-http</artifactId> + <version>${wagonVersion}</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.apache.maven.wagon</groupId> + <artifactId>wagon-http-lightweight</artifactId> + <version>${wagonVersion}</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>xerces</groupId> + <artifactId>xercesImpl</artifactId> + <version>2.8.1</version> + </dependency> + <dependency> + <groupId>org.apache.derby</groupId> + <artifactId>derby</artifactId> + <version>${derbyVersion}</version> + </dependency> + <dependency> + <groupId>commons-dbcp</groupId> + <artifactId>commons-dbcp</artifactId> + <version>1.4</version> + <scope>test</scope> + </dependency> + </dependencies> + <build> + <pluginManagement> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-clean-plugin</artifactId> + <version>2.4.1</version> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <version>2.3.2</version> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-resources-plugin</artifactId> + <version>2.5</version> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jar-plugin</artifactId> + <version>2.3.2</version> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <version>2.11</version> + </plugin> + </plugins> + </pluginManagement> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-antrun-plugin</artifactId> + <version>1.6</version> + <executions> + <execution> + <id>package</id> + <phase>package</phase> + <configuration> + <tasks> + <echo> + Remember to add the the following to the knownconsumers section in your archiva.xml file + <knownContentConsumer>simple-artifact-consumer</knownContentConsumer> + </echo> + </tasks> + </configuration> + <goals> + <goal>run</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>1.6</source> + <target>1.6</target> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <version>2.12</version> + <configuration> + <systemPropertyVariables> + <appserver.base>${project.build.directory}/appserver-base</appserver.base> + <archiva.user.configFileName>${project.build.directory}/archiva.xml</archiva.user.configFileName> + <test.resources.path>${project.build.testOutputDirectory}</test.resources.path> + <redback.jdbc.url>jdbc:derby:memory:users-test;create=true</redback.jdbc.url> + <redback.jdbc.driver.name>org.apache.derby.jdbc.EmbeddedDriver</redback.jdbc.driver.name> + <java.io.tmpdir>${project.build.directory}/temp</java.io.tmpdir> + </systemPropertyVariables> + </configuration> + </plugin> + </plugins> + </build> + <!--repositories> + <repository> + <id>archiva.snapshots</id> + <name>Archiva VM Snapshots Repository</name> + <url>https://archiva-repository.apache.org/archiva/repository/snapshots</url> + <releases> + <enabled>false</enabled> + </releases> + <snapshots> + <enabled>true</enabled> + </snapshots> + </repository> + </repositories--> +</project> 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 6b0544b1a..05bf22a6f 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 @@ -20,4 +20,12 @@ groupId=org.apache.archiva.consumer.its.compile artifactId=simple-consumer-compile version=1.0-SNAPSHOT -package=org.apache.archiva.consumer.its
\ No newline at end of file +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} +derbyVersion=${derbyVersion} |