From a7489457107a9f9be6526988cebda2ddf46f7d36 Mon Sep 17 00:00:00 2001 From: skygo Date: Fri, 7 Mar 2014 18:45:42 +0000 Subject: [PATCH] -- 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 --- .../archiva-consumer-archetype/pom.xml | 12 +- .../META-INF/maven/archetype-metadata.xml | 26 ++ .../archetype-resources/pom.xml | 326 ++++++++++++++++++ .../projects/compile/archetype.properties | 10 +- 4 files changed, 372 insertions(+), 2 deletions(-) create mode 100644 archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resourcesstatic/archetype-resources/pom.xml 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 @@ src/main/resources true - + + src/main/resourcesstatic + false + + + + + src/test/resources + true + + org.apache.maven.archetype 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 @@ src/test/resources + + + ${wagon.version} + + + ${archivaVersion} + + + ${log4j.version} + + + ${slf4j.version} + + + ${spring.version} + + + ${jackrabbit.version} + + + ${redback.version} + + + ${derbyVersion} + + \ 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 @@ + + + + 4.0.0 + ${groupId} + ${artifactId} + ${version} + jar + Simple Archiva Consumer + http://archiva.apache.org + + This is a simple consumer component which demonstrates how a + component can be plugged in Archiva. + + + ${archivaVersion} + ${wagonVersion} + ${slf4jVersion} + ${log4jVersion} + ${jackrabbitVersion} + ${springVersion} + ${redbackVersion} + ${derbyVersion} + + + + org.apache.archiva + archiva-consumer-api + ${archiva.version} + + + org.apache.archiva + archiva-configuration + ${archiva.version} + + + org.apache.archiva + archiva-repository-layer + ${archiva.version} + + + org.apache.archiva + archiva-indexer + ${archiva.version} + + + org.apache.archiva + maven2-repository + ${archiva.version} + provided + + + org.easymock + easymock + 2.5.2 + test + + + junit + junit + 4.9 + test + + + org.slf4j + slf4j-api + ${slf4jVersion} + + + + org.apache.logging.log4j + log4j-core + ${log4jVersion} + runtime + + + org.apache.logging.log4j + log4j-1.2-api + ${log4jVersion} + runtime + + + org.apache.logging.log4j + log4j-slf4j-impl + ${log4jVersion} + runtime + + + org.apache.logging.log4j + log4j-jcl + ${log4jVersion} + runtime + + + + org.apache.archiva + archiva-repository-admin-default + ${archiva.version} + provided + + + org.apache.archiva + metadata-store-jcr + ${archiva.version} + provided + + + org.apache.jackrabbit + jackrabbit-core + ${jackrabbit.version} + provided + + + commons-logging + commons-logging + + + + + org.springframework + spring-core + ${spring.version} + + + commons-logging + commons-logging + + + + + org.springframework + spring-beans + ${spring.version} + + + commons-logging + commons-logging + + + + + org.springframework + spring-expression + ${spring.version} + + + commons-logging + commons-logging + + + + + org.springframework + spring-test + ${spring.version} + + + commons-logging + commons-logging + + + + + org.apache.archiva.redback + redback-common-test-resources + test + ${redback.version} + + + org.apache.archiva.redback + redback-rbac-memory + test + ${redback.version} + + + org.apache.archiva.redback + redback-rbac-cached + test + ${redback.version} + + + org.apache.archiva.redback + redback-rbac-role-manager + test + ${redback.version} + + + org.apache.maven.wagon + wagon-http + ${wagonVersion} + test + + + org.apache.maven.wagon + wagon-http-lightweight + ${wagonVersion} + test + + + xerces + xercesImpl + 2.8.1 + + + org.apache.derby + derby + ${derbyVersion} + + + commons-dbcp + commons-dbcp + 1.4 + test + + + + + + + org.apache.maven.plugins + maven-clean-plugin + 2.4.1 + + + org.apache.maven.plugins + maven-compiler-plugin + 2.3.2 + + + org.apache.maven.plugins + maven-resources-plugin + 2.5 + + + org.apache.maven.plugins + maven-jar-plugin + 2.3.2 + + + org.apache.maven.plugins + maven-surefire-plugin + 2.11 + + + + + + org.apache.maven.plugins + maven-antrun-plugin + 1.6 + + + package + package + + + + Remember to add the the following to the knownconsumers section in your archiva.xml file + <knownContentConsumer>simple-artifact-consumer</knownContentConsumer> + + + + + run + + + + + + org.apache.maven.plugins + maven-compiler-plugin + + 1.6 + 1.6 + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.12 + + + ${project.build.directory}/appserver-base + ${project.build.directory}/archiva.xml + ${project.build.testOutputDirectory} + jdbc:derby:memory:users-test;create=true + org.apache.derby.jdbc.EmbeddedDriver + ${project.build.directory}/temp + + + + + + + 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}