Updated pom (correct packaging), updated metadata
git-svn-id: https://svn.apache.org/repos/asf/directory/samples/trunk@835535 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/apacheds-archetype-testcase/pom.xml b/apacheds-archetype-testcase/pom.xml
index bd73e7d..847ae32 100644
--- a/apacheds-archetype-testcase/pom.xml
+++ b/apacheds-archetype-testcase/pom.xml
@@ -1,13 +1,86 @@
-<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">
- <parent>
- <groupId>org.apache.directory.server</groupId>
- <artifactId>apacheds-parent</artifactId>
- <version>1.5.5</version>
- </parent>
+<?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>
- <artifactId>apacheds-testcase-archetype</artifactId>
- <packaging>jar</packaging>
- <name>ApacheDS Testcase Archetype</name>
+ <parent>
+ <groupId>org.apache.directory.project</groupId>
+ <artifactId>project</artifactId>
+ <version>15</version>
+ </parent>
+
+ <groupId>org.apache.directory.samples</groupId>
+ <artifactId>apacheds-archetype-testcase</artifactId>
+ <packaging>maven-archetype</packaging>
+ <name>ApacheDS Archetype Testcase</name>
+ <description>Archetype to generate a testcase for ApacheDS</description>
<version>1.5.5-SNAPSHOT</version>
+
+ <prerequisites>
+ <maven>2.0.9</maven>
+ </prerequisites>
+
+ <inceptionYear>2009</inceptionYear>
+
+ <issueManagement>
+ <system>JIRA</system>
+ <url>http://issues.apache.org/jira/browse/DIRSERVER</url>
+ </issueManagement>
+
+ <scm>
+ <connection>scm:svn:http://svn.apache.org/repos/asf/directory/samples/trunk/apacheds-archetype-testcase/</connection>
+ <developerConnection>scm:svn:https://svn.apache.org/repos/asf/directory/samples/trunk/apacheds-archetype-testcase/</developerConnection>
+ <url>http://svn.apache.org/viewvc/directory/samples/trunk/apacheds-archetype-testcase/</url>
+ </scm>
+
+ <distributionManagement>
+ <site>
+ <id>apache.directory.samples</id>
+ <url>${distMgmtSiteUrl}</url>
+ </site>
+ </distributionManagement>
+
+ <properties>
+ <distMgmtSiteUrl>scpexe://people.apache.org/www/directory.apache.org/samples/apacheds-archetype-testcase/gen-docs/${version}/</distMgmtSiteUrl>
+ <skin.version>1.0.0</skin.version>
+ </properties>
+
+ <build>
+ <extensions>
+ <extension>
+ <groupId>org.apache.maven.archetype</groupId>
+ <artifactId>archetype-packaging</artifactId>
+ <version>2.0-alpha-4</version>
+ </extension>
+ </extensions>
+ <plugins>
+ <plugin>
+ <artifactId>maven-archetype-plugin</artifactId>
+ <version>2.0-alpha-4</version>
+ <extensions>true</extensions>
+ </plugin>
+ </plugins>
+ </build>
+
+ <reporting>
+ <excludeDefaults>true</excludeDefaults>
+ </reporting>
</project>
diff --git a/apacheds-archetype-testcase/src/main/resources/META-INF/archetype.xml b/apacheds-archetype-testcase/src/main/resources/META-INF/archetype.xml
index 2be244b..a086ea0 100644
--- a/apacheds-archetype-testcase/src/main/resources/META-INF/archetype.xml
+++ b/apacheds-archetype-testcase/src/main/resources/META-INF/archetype.xml
@@ -1,5 +1,5 @@
<archetype>
- <id>apacheds-testcase-archetype</id>
+ <id>apacheds-archetype-testcase</id>
<sources>
<source>src/main/java/Dummy.java</source>
</sources>
diff --git a/apacheds-archetype-testcase/src/main/resources/META-INF/maven/archetype-metadata.xml b/apacheds-archetype-testcase/src/main/resources/META-INF/maven/archetype-metadata.xml
new file mode 100644
index 0000000..7465e16
--- /dev/null
+++ b/apacheds-archetype-testcase/src/main/resources/META-INF/maven/archetype-metadata.xml
@@ -0,0 +1,56 @@
+<?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.
+-->
+<archetype-descriptor name="apacheds-archetype-testcase">
+ <requiredProperties>
+ <requiredProperty key="groupId">
+ <defaultValue>org.example</defaultValue>
+ </requiredProperty>
+ <requiredProperty key="artifactId">
+ <defaultValue>myProject</defaultValue>
+ </requiredProperty>
+ <requiredProperty key="version">
+ <defaultValue>1.0.0-SNAPSHOT</defaultValue>
+ </requiredProperty>
+ <requiredProperty key="package">
+ <defaultValue>org.example</defaultValue>
+ </requiredProperty>
+ </requiredProperties>
+ <fileSets>
+ <fileSet filtered="true" packaged="true" encoding="UTF-8">
+ <directory>src/main/java</directory>
+ <includes>
+ <include>**/*.java</include>
+ </includes>
+ </fileSet>
+ <fileSet filtered="true" packaged="true" encoding="UTF-8">
+ <directory>src/test/java</directory>
+ <includes>
+ <include>**/*.java</include>
+ </includes>
+ </fileSet>
+ <fileSet filtered="false" encoding="UTF-8">
+ <directory>src/test/resources</directory>
+ <includes>
+ <include>**/*.properties</include>
+ <include>**/*.ldif</include>
+ </includes>
+ </fileSet>
+ </fileSets>
+</archetype-descriptor>