You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by br...@apache.org on 2007/08/29 04:43:59 UTC

svn commit: r570618 [10/14] - in /maven/sandbox/trunk/archetypeng: ./ archetype-common/ archetype-common/src/ archetype-common/src/main/ archetype-common/src/main/java/ archetype-common/src/main/java/org/ archetype-common/src/main/java/org/apache/ arch...

Added: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/fileset-1.0/archetype-resources/src/main/java/App.java
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/fileset-1.0/archetype-resources/src/main/java/App.java?rev=570618&view=auto
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/fileset-1.0/archetype-resources/src/main/java/App.java (added)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/fileset-1.0/archetype-resources/src/main/java/App.java Tue Aug 28 19:43:33 2007
@@ -0,0 +1,12 @@
+groupId=${groupId}
+artifactId=${artifactId}
+version=${version}
+package=${package}
+property-without-default-1=${property-without-default-1}
+property-without-default-2=${property-without-default-2}
+property-without-default-3=${property-without-default-3}
+property-without-default-4=${property-without-default-4}
+property-with-default-1=${property-with-default-1}
+property-with-default-2=${property-with-default-2}
+property-with-default-3=${property-with-default-3}
+property-with-default-4=${property-with-default-4}
\ No newline at end of file

Added: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/fileset-1.0/archetype-resources/src/main/java/App.ogg
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/fileset-1.0/archetype-resources/src/main/java/App.ogg?rev=570618&view=auto
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/fileset-1.0/archetype-resources/src/main/java/App.ogg (added)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/fileset-1.0/archetype-resources/src/main/java/App.ogg Tue Aug 28 19:43:33 2007
@@ -0,0 +1,12 @@
+groupId=${groupId}
+artifactId=${artifactId}
+version=${version}
+package=${package}
+property-without-default-1=${property-without-default-1}
+property-without-default-2=${property-without-default-2}
+property-without-default-3=${property-without-default-3}
+property-without-default-4=${property-without-default-4}
+property-with-default-1=${property-with-default-1}
+property-with-default-2=${property-with-default-2}
+property-with-default-3=${property-with-default-3}
+property-with-default-4=${property-with-default-4}
\ No newline at end of file

Added: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/fileset-1.0/archetype-resources/src/main/java/inner/package/App2.java
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/fileset-1.0/archetype-resources/src/main/java/inner/package/App2.java?rev=570618&view=auto
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/fileset-1.0/archetype-resources/src/main/java/inner/package/App2.java (added)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/fileset-1.0/archetype-resources/src/main/java/inner/package/App2.java Tue Aug 28 19:43:33 2007
@@ -0,0 +1,12 @@
+groupId=${groupId}
+artifactId=${artifactId}
+version=${version}
+package=${package}
+property-without-default-1=${property-without-default-1}
+property-without-default-2=${property-without-default-2}
+property-without-default-3=${property-without-default-3}
+property-without-default-4=${property-without-default-4}
+property-with-default-1=${property-with-default-1}
+property-with-default-2=${property-with-default-2}
+property-with-default-3=${property-with-default-3}
+property-with-default-4=${property-with-default-4}
\ No newline at end of file

Added: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/fileset-1.0/archetype-resources/src/main/resources/App.properties
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/fileset-1.0/archetype-resources/src/main/resources/App.properties?rev=570618&view=auto
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/fileset-1.0/archetype-resources/src/main/resources/App.properties (added)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/fileset-1.0/archetype-resources/src/main/resources/App.properties Tue Aug 28 19:43:33 2007
@@ -0,0 +1,12 @@
+groupId=${groupId}
+artifactId=${artifactId}
+version=${version}
+package=${package}
+property-without-default-1=${property-without-default-1}
+property-without-default-2=${property-without-default-2}
+property-without-default-3=${property-without-default-3}
+property-without-default-4=${property-without-default-4}
+property-with-default-1=${property-with-default-1}
+property-with-default-2=${property-with-default-2}
+property-with-default-3=${property-with-default-3}
+property-with-default-4=${property-with-default-4}
\ No newline at end of file

Added: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/fileset-1.0/archetype-resources/src/main/resources/some-dir/App.png
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/fileset-1.0/archetype-resources/src/main/resources/some-dir/App.png?rev=570618&view=auto
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/fileset-1.0/archetype-resources/src/main/resources/some-dir/App.png (added)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/fileset-1.0/archetype-resources/src/main/resources/some-dir/App.png Tue Aug 28 19:43:33 2007
@@ -0,0 +1,12 @@
+groupId=${groupId}
+artifactId=${artifactId}
+version=${version}
+package=${package}
+property-without-default-1=${property-without-default-1}
+property-without-default-2=${property-without-default-2}
+property-without-default-3=${property-without-default-3}
+property-without-default-4=${property-without-default-4}
+property-with-default-1=${property-with-default-1}
+property-with-default-2=${property-with-default-2}
+property-with-default-3=${property-with-default-3}
+property-with-default-4=${property-with-default-4}
\ No newline at end of file

Added: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/fileset-1.0/archetype-resources/src/site/apt/usage.apt
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/fileset-1.0/archetype-resources/src/site/apt/usage.apt?rev=570618&view=auto
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/fileset-1.0/archetype-resources/src/site/apt/usage.apt (added)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/fileset-1.0/archetype-resources/src/site/apt/usage.apt Tue Aug 28 19:43:33 2007
@@ -0,0 +1,12 @@
+groupId=${groupId}
+artifactId=${artifactId}
+version=${version}
+package=${package}
+property-without-default-1=${property-without-default-1}
+property-without-default-2=${property-without-default-2}
+property-without-default-3=${property-without-default-3}
+property-without-default-4=${property-without-default-4}
+property-with-default-1=${property-with-default-1}
+property-with-default-2=${property-with-default-2}
+property-with-default-3=${property-with-default-3}
+property-with-default-4=${property-with-default-4}
\ No newline at end of file

Added: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/fileset-1.0/archetype-resources/src/site/site.xml
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/fileset-1.0/archetype-resources/src/site/site.xml?rev=570618&view=auto
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/fileset-1.0/archetype-resources/src/site/site.xml (added)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/fileset-1.0/archetype-resources/src/site/site.xml Tue Aug 28 19:43:33 2007
@@ -0,0 +1,12 @@
+groupId=${groupId}
+artifactId=${artifactId}
+version=${version}
+package=${package}
+property-without-default-1=${property-without-default-1}
+property-without-default-2=${property-without-default-2}
+property-without-default-3=${property-without-default-3}
+property-without-default-4=${property-without-default-4}
+property-with-default-1=${property-with-default-1}
+property-with-default-2=${property-with-default-2}
+property-with-default-3=${property-with-default-3}
+property-with-default-4=${property-with-default-4}
\ No newline at end of file

Added: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/fileset-1.0/archetype-resources/subproject/pom.xml
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/fileset-1.0/archetype-resources/subproject/pom.xml?rev=570618&view=auto
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/fileset-1.0/archetype-resources/subproject/pom.xml (added)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/fileset-1.0/archetype-resources/subproject/pom.xml Tue Aug 28 19:43:33 2007
@@ -0,0 +1,44 @@
+<?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>
+
+    <parent>
+        <groupId>${groupId}</groupId>
+        <artifactId>${parentArtifactId}</artifactId>
+        <version>${version}</version>
+    </parent>
+
+    <groupId>${groupId}</groupId>
+    <artifactId>${artifactId}</artifactId>
+    <version>${version}</version>
+
+    <name>Maven ArchetypeNG Test Subfolder</name>
+    <packaging>pom</packaging>
+
+    <modules>
+        <module>subsubproject</module>
+    </modules>
+
+</project>
\ No newline at end of file

Added: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/fileset-1.0/archetype-resources/subproject/src/main/java/App.java
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/fileset-1.0/archetype-resources/subproject/src/main/java/App.java?rev=570618&view=auto
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/fileset-1.0/archetype-resources/subproject/src/main/java/App.java (added)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/fileset-1.0/archetype-resources/subproject/src/main/java/App.java Tue Aug 28 19:43:33 2007
@@ -0,0 +1,12 @@
+groupId=${groupId}
+artifactId=${artifactId}
+version=${version}
+package=${package}
+property-without-default-1=${property-without-default-1}
+property-without-default-2=${property-without-default-2}
+property-without-default-3=${property-without-default-3}
+property-without-default-4=${property-without-default-4}
+property-with-default-1=${property-with-default-1}
+property-with-default-2=${property-with-default-2}
+property-with-default-3=${property-with-default-3}
+property-with-default-4=${property-with-default-4}
\ No newline at end of file

Added: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/fileset-1.0/archetype-resources/subproject/subsubproject/pom.xml
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/fileset-1.0/archetype-resources/subproject/subsubproject/pom.xml?rev=570618&view=auto
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/fileset-1.0/archetype-resources/subproject/subsubproject/pom.xml (added)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/fileset-1.0/archetype-resources/subproject/subsubproject/pom.xml Tue Aug 28 19:43:33 2007
@@ -0,0 +1,40 @@
+<?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>
+
+    <parent>
+        <groupId>${groupId}</groupId>
+        <artifactId>${parentArtifactId}</artifactId>
+        <version>${version}</version>
+    </parent>
+
+    <groupId>${groupId}</groupId>
+    <artifactId>${artifactId}</artifactId>
+    <version>${version}</version>
+
+    <name>Maven ArchetypeNG Test Subsubfolder</name>
+    <packaging>jar</packaging>
+
+</project>
\ No newline at end of file

Added: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/fileset-1.0/archetype-resources/subproject/subsubproject/src/main/java/App.java
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/fileset-1.0/archetype-resources/subproject/subsubproject/src/main/java/App.java?rev=570618&view=auto
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/fileset-1.0/archetype-resources/subproject/subsubproject/src/main/java/App.java (added)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/fileset-1.0/archetype-resources/subproject/subsubproject/src/main/java/App.java Tue Aug 28 19:43:33 2007
@@ -0,0 +1,12 @@
+groupId=${groupId}
+artifactId=${artifactId}
+version=${version}
+package=${package}
+property-without-default-1=${property-without-default-1}
+property-without-default-2=${property-without-default-2}
+property-without-default-3=${property-without-default-3}
+property-without-default-4=${property-without-default-4}
+property-with-default-1=${property-with-default-1}
+property-with-default-2=${property-with-default-2}
+property-with-default-3=${property-with-default-3}
+property-with-default-4=${property-with-default-4}
\ No newline at end of file

Added: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/old-1.0/META-INF/archetype.xml
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/old-1.0/META-INF/archetype.xml?rev=570618&view=auto
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/old-1.0/META-INF/archetype.xml (added)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/old-1.0/META-INF/archetype.xml Tue Aug 28 19:43:33 2007
@@ -0,0 +1,31 @@
+<?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>
+    <id>old</id>
+    <sources>
+        <source>src/main/java/App.java</source>
+    </sources>
+    <resources>
+        <resource>src/main/resources/App.properties</resource>
+    </resources>
+    <siteResources>
+        <resource>src/site/site.xml</resource>
+    </siteResources>
+</archetype>

Added: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/old-1.0/archetype-resources/pom.xml
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/old-1.0/archetype-resources/pom.xml?rev=570618&view=auto
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/old-1.0/archetype-resources/pom.xml (added)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/old-1.0/archetype-resources/pom.xml Tue Aug 28 19:43:33 2007
@@ -0,0 +1,34 @@
+<?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>
+
+    <name>Maven ArchetypeNG Test Old archetype</name>
+    <packaging>jar</packaging>
+
+</project>
\ No newline at end of file

Added: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/old-1.0/archetype-resources/src/main/java/App.java
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/old-1.0/archetype-resources/src/main/java/App.java?rev=570618&view=auto
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/old-1.0/archetype-resources/src/main/java/App.java (added)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/old-1.0/archetype-resources/src/main/java/App.java Tue Aug 28 19:43:33 2007
@@ -0,0 +1,4 @@
+groupId=${groupId}
+artifactId=${artifactId}
+version=${version}
+package=${package}
\ No newline at end of file

Added: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/old-1.0/archetype-resources/src/main/resources/App.properties
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/old-1.0/archetype-resources/src/main/resources/App.properties?rev=570618&view=auto
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/old-1.0/archetype-resources/src/main/resources/App.properties (added)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/old-1.0/archetype-resources/src/main/resources/App.properties Tue Aug 28 19:43:33 2007
@@ -0,0 +1,4 @@
+groupId=${groupId}
+artifactId=${artifactId}
+version=${version}
+package=${package}
\ No newline at end of file

Added: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/old-1.0/archetype-resources/src/site/site.xml
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/old-1.0/archetype-resources/src/site/site.xml?rev=570618&view=auto
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/old-1.0/archetype-resources/src/site/site.xml (added)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/old-1.0/archetype-resources/src/site/site.xml Tue Aug 28 19:43:33 2007
@@ -0,0 +1,4 @@
+groupId=${groupId}
+artifactId=${artifactId}
+version=${version}
+package=${package}

Added: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/partial-1.0/META-INF/maven/archetype-metadata.xml
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/partial-1.0/META-INF/maven/archetype-metadata.xml?rev=570618&view=auto
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/partial-1.0/META-INF/maven/archetype-metadata.xml (added)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/partial-1.0/META-INF/maven/archetype-metadata.xml Tue Aug 28 19:43:33 2007
@@ -0,0 +1,37 @@
+<?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 id="partial" partial="true" >
+
+    <fileSets>
+        <fileSet filtered="true" packaged="true" >
+            <directory>src/main/java</directory>
+            <includes>
+                <include>**/*.java</include>
+            </includes>
+        </fileSet>
+        <fileSet filtered="true" packaged="true" >
+            <directory>src/test/java</directory>
+            <includes>
+                <include>**/*.java</include>
+            </includes>
+        </fileSet>
+    </fileSets>
+
+</archetype-descriptor>

Added: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/partial-1.0/archetype-resources/pom.xml
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/partial-1.0/archetype-resources/pom.xml?rev=570618&view=auto
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/partial-1.0/archetype-resources/pom.xml (added)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/partial-1.0/archetype-resources/pom.xml Tue Aug 28 19:43:33 2007
@@ -0,0 +1,61 @@
+<?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>
+
+    <name>Maven ArchetypeNG Test partial</name>
+    <packaging>jar</packaging>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.maven</groupId>
+            <artifactId>maven-model</artifactId>
+            <version>2.0</version>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <version>2.0</version>
+            </plugin>
+        </plugins>
+    </build>
+
+    <reporting>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-info-reports-plugin</artifactId>
+                <version>2.0</version>
+            </plugin>
+        </plugins>
+    </reporting>
+</project>
\ No newline at end of file

Added: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/partial-1.0/archetype-resources/src/main/java/App.java
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/partial-1.0/archetype-resources/src/main/java/App.java?rev=570618&view=auto
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/partial-1.0/archetype-resources/src/main/java/App.java (added)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/partial-1.0/archetype-resources/src/main/java/App.java Tue Aug 28 19:43:33 2007
@@ -0,0 +1,4 @@
+groupId=${groupId}
+artifactId=${artifactId}
+version=${version}
+package=${package}
\ No newline at end of file

Added: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/partial-1.0/archetype-resources/src/test/java/AppTest.java
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/partial-1.0/archetype-resources/src/test/java/AppTest.java?rev=570618&view=auto
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/partial-1.0/archetype-resources/src/test/java/AppTest.java (added)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/partial-1.0/archetype-resources/src/test/java/AppTest.java Tue Aug 28 19:43:33 2007
@@ -0,0 +1,4 @@
+groupId=${groupId}
+artifactId=${artifactId}
+version=${version}
+package=${package}
\ No newline at end of file

Added: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/site-1.0/META-INF/maven/archetype-metadata.xml
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/site-1.0/META-INF/maven/archetype-metadata.xml?rev=570618&view=auto
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/site-1.0/META-INF/maven/archetype-metadata.xml (added)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/site-1.0/META-INF/maven/archetype-metadata.xml Tue Aug 28 19:43:33 2007
@@ -0,0 +1,55 @@
+<?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 id="site" >
+
+    <requiredProperties>
+        <requiredProperty key="property-with-default-1" >
+            <defaultValue>default-value</defaultValue>
+        </requiredProperty>
+        <requiredProperty key="property-with-default-2" >
+            <defaultValue>default-value</defaultValue>
+        </requiredProperty>
+        <requiredProperty key="property-with-default-3" >
+            <defaultValue>default-value</defaultValue>
+        </requiredProperty>
+        <requiredProperty key="property-with-default-4" >
+            <defaultValue>default-value</defaultValue>
+        </requiredProperty>
+        <requiredProperty key="property-without-default-1" >
+        </requiredProperty>
+        <requiredProperty key="property-without-default-2" >
+        </requiredProperty>
+        <requiredProperty key="property-without-default-3" >
+        </requiredProperty>
+        <requiredProperty key="property-without-default-4" >
+        </requiredProperty>
+    </requiredProperties>
+
+    <fileSets>
+        <fileSet filtered="true" packaged="false" >
+            <directory>src/site</directory>
+            <includes>
+                <include>**/*.xml</include>
+                <include>**/*.apt</include>
+            </includes>
+        </fileSet>
+    </fileSets>
+
+</archetype-descriptor>

Added: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/site-1.0/archetype-resources/pom.xml
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/site-1.0/archetype-resources/pom.xml?rev=570618&view=auto
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/site-1.0/archetype-resources/pom.xml (added)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/site-1.0/archetype-resources/pom.xml Tue Aug 28 19:43:33 2007
@@ -0,0 +1,33 @@
+<?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>
+
+    <name>Maven ArchetypeNG Test site</name>
+    <packaging>pom</packaging>
+</project>

Added: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/site-1.0/archetype-resources/src/site/apt/test.apt
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/site-1.0/archetype-resources/src/site/apt/test.apt?rev=570618&view=auto
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/site-1.0/archetype-resources/src/site/apt/test.apt (added)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/site-1.0/archetype-resources/src/site/apt/test.apt Tue Aug 28 19:43:33 2007
@@ -0,0 +1,12 @@
+groupId=${groupId}
+artifactId=${artifactId}
+version=${version}
+package=${package}
+property-without-default-1=${property-without-default-1}
+property-without-default-2=${property-without-default-2}
+property-without-default-3=${property-without-default-3}
+property-without-default-4=${property-without-default-4}
+property-with-default-1=${property-with-default-1}
+property-with-default-2=${property-with-default-2}
+property-with-default-3=${property-with-default-3}
+property-with-default-4=${property-with-default-4}
\ No newline at end of file

Added: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/site-1.0/archetype-resources/src/site/site.xml
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/site-1.0/archetype-resources/src/site/site.xml?rev=570618&view=auto
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/site-1.0/archetype-resources/src/site/site.xml (added)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/site-1.0/archetype-resources/src/site/site.xml Tue Aug 28 19:43:33 2007
@@ -0,0 +1,12 @@
+groupId=${groupId}
+artifactId=${artifactId}
+version=${version}
+package=${package}
+property-without-default-1=${property-without-default-1}
+property-without-default-2=${property-without-default-2}
+property-without-default-3=${property-without-default-3}
+property-without-default-4=${property-without-default-4}
+property-with-default-1=${property-with-default-1}
+property-with-default-2=${property-with-default-2}
+property-with-default-3=${property-with-default-3}
+property-with-default-4=${property-with-default-4}
\ No newline at end of file

Added: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/central-repository/basic/maven-metadata.xml
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/central-repository/basic/maven-metadata.xml?rev=570618&view=auto
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/central-repository/basic/maven-metadata.xml (added)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/central-repository/basic/maven-metadata.xml Tue Aug 28 19:43:33 2007
@@ -0,0 +1,31 @@
+<?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.
+-->
+<metadata>
+    <groupId>archetypes</groupId>
+    <artifactId>basic</artifactId>
+    <versioning>
+        <latest>1.0</latest>
+        <release>1.0</release>
+        <versions>
+            <version>1.0</version>
+        </versions>
+        <lastUpdated>20060220044115</lastUpdated>
+    </versioning>
+</metadata>
\ No newline at end of file

Added: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/central-repository/fileset/maven-metadata.xml
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/central-repository/fileset/maven-metadata.xml?rev=570618&view=auto
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/central-repository/fileset/maven-metadata.xml (added)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/central-repository/fileset/maven-metadata.xml Tue Aug 28 19:43:33 2007
@@ -0,0 +1,31 @@
+<?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.
+-->
+<metadata>
+    <groupId>archetypes</groupId>
+    <artifactId>fileset</artifactId>
+    <versioning>
+        <latest>1.0</latest>
+        <release>1.0</release>
+        <versions>
+            <version>1.0</version>
+        </versions>
+        <lastUpdated>20060220044115</lastUpdated>
+    </versioning>
+</metadata>
\ No newline at end of file

Added: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/central-repository/maven-metadata.xml
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/central-repository/maven-metadata.xml?rev=570618&view=auto
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/central-repository/maven-metadata.xml (added)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/central-repository/maven-metadata.xml Tue Aug 28 19:43:33 2007
@@ -0,0 +1,38 @@
+<?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.
+-->
+<metadata>
+    <plugins>
+        <plugin>
+            <name>Maven TEST Complete Plugin</name>
+            <prefix>archetypes</prefix>
+            <artifactId>basic</artifactId>
+        </plugin>
+        <plugin>
+            <name>Maven TEST Partial Plugin</name>
+            <prefix>archetypes</prefix>
+            <artifactId>partial</artifactId>
+        </plugin>
+        <plugin>
+            <name>Maven TEST Site Plugin</name>
+            <prefix>archetypes</prefix>
+            <artifactId>site</artifactId>
+        </plugin>
+    </plugins>
+</metadata>
\ No newline at end of file

Added: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/central-repository/old/maven-metadata.xml
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/central-repository/old/maven-metadata.xml?rev=570618&view=auto
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/central-repository/old/maven-metadata.xml (added)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/central-repository/old/maven-metadata.xml Tue Aug 28 19:43:33 2007
@@ -0,0 +1,31 @@
+<?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.
+-->
+<metadata>
+    <groupId>archetypes</groupId>
+    <artifactId>old</artifactId>
+    <versioning>
+        <latest>1.0</latest>
+        <release>1.0</release>
+        <versions>
+            <version>1.0</version>
+        </versions>
+        <lastUpdated>20060220044115</lastUpdated>
+    </versioning>
+</metadata>
\ No newline at end of file

Added: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/central-repository/partial/maven-metadata.xml
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/central-repository/partial/maven-metadata.xml?rev=570618&view=auto
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/central-repository/partial/maven-metadata.xml (added)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/central-repository/partial/maven-metadata.xml Tue Aug 28 19:43:33 2007
@@ -0,0 +1,31 @@
+<?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.
+-->
+<metadata>
+    <groupId>archetypes</groupId>
+    <artifactId>partial</artifactId>
+    <versioning>
+        <latest>1.0</latest>
+        <release>1.0</release>
+        <versions>
+            <version>1.0</version>
+        </versions>
+        <lastUpdated>20060220044115</lastUpdated>
+    </versioning>
+</metadata>
\ No newline at end of file

Added: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/central-repository/site/maven-metadata.xml
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/central-repository/site/maven-metadata.xml?rev=570618&view=auto
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/central-repository/site/maven-metadata.xml (added)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/central-repository/site/maven-metadata.xml Tue Aug 28 19:43:33 2007
@@ -0,0 +1,31 @@
+<?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.
+-->
+<metadata>
+    <groupId>archetypes</groupId>
+    <artifactId>site</artifactId>
+    <versioning>
+        <latest>1.0</latest>
+        <release>1.0</release>
+        <versions>
+            <version>1.0</version>
+        </versions>
+        <lastUpdated>20060220044115</lastUpdated>
+    </versioning>
+</metadata>
\ No newline at end of file

Added: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/java/org/apache/maven/archetype/generator/DefaultArchetypeGenerationConfiguratorTest.java
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/java/org/apache/maven/archetype/generator/DefaultArchetypeGenerationConfiguratorTest.java?rev=570618&view=auto
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/java/org/apache/maven/archetype/generator/DefaultArchetypeGenerationConfiguratorTest.java (added)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/java/org/apache/maven/archetype/generator/DefaultArchetypeGenerationConfiguratorTest.java Tue Aug 28 19:43:33 2007
@@ -0,0 +1,678 @@
+/*
+ * 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.
+ */
+
+package org.apache.maven.archetype.generator;
+
+import org.apache.maven.archetype.exception.ArchetypeNotConfigured;
+import org.apache.maven.artifact.repository.ArtifactRepository;
+import org.apache.maven.artifact.repository.DefaultArtifactRepository;
+import org.apache.maven.artifact.repository.layout.DefaultRepositoryLayout;
+import org.apache.maven.plugin.testing.AbstractMojoTestCase;
+
+import org.codehaus.plexus.util.IOUtil;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileNotFoundException;
+import java.io.FileReader;
+import java.io.FileWriter;
+import java.io.IOException;
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.Properties;
+
+public class DefaultArchetypeGenerationConfiguratorTest
+extends AbstractMojoTestCase
+{
+    ArtifactRepository localRepository;
+    List repositories;
+
+    public void testBatchModeArchetypeNotDefined ()
+    throws Exception
+    {
+        System.out.println ( "testBatchModeArchetypeNotDefined" );
+
+        String archetypeGroupId = null;
+        String archetypeArtifactId = null;
+        String archetypeVersion = null;
+
+        Boolean interactiveMode = Boolean.FALSE;
+
+        String project = "configure-1";
+        File propertyFile = getPropertiesFile ( project );
+        assertTrue ( !propertyFile.exists () || propertyFile.delete () );
+
+        DefaultArchetypeGenerationConfigurator instance =
+            (DefaultArchetypeGenerationConfigurator) lookup (
+                ArchetypeGenerationConfigurator.ROLE
+            );
+        instanceDefined ( instance );
+
+        assertFalse ( propertyFile.exists () );
+
+        try
+        {
+            instance.configureArchetype (
+                interactiveMode,
+                propertyFile,
+                System.getProperties (),
+                localRepository,
+                repositories
+            );
+
+            fail ( "Exception must be thrown" );
+        }
+        catch ( FileNotFoundException e )
+        {
+            assertFalse ( propertyFile.exists () );
+        }
+    }
+
+    public void testBatchModeOldArchetype ()
+    throws Exception
+    {
+        System.out.println ( "testBatchModeOldArchetype" );
+
+        String archetypeGroupId = null;
+        String archetypeArtifactId = null;
+        String archetypeVersion = null;
+
+        Boolean interactiveMode = Boolean.FALSE;
+
+        String project = "configure-7";
+        File propertyFile = getPropertiesFile ( project );
+        File propertyFileSample = getPropertiesSampleFile ( project );
+        copy ( propertyFileSample, propertyFile );
+
+        Properties systemProperties = new Properties ();
+        systemProperties.setProperty ( "groupId", "system-value" );
+        systemProperties.setProperty ( "artifactId", "system-value" );
+        systemProperties.setProperty ( "version", "system-value" );
+        systemProperties.setProperty ( "package", "system-value" );
+
+        DefaultArchetypeGenerationConfigurator instance =
+            (DefaultArchetypeGenerationConfigurator) lookup (
+                ArchetypeGenerationConfigurator.ROLE
+            );
+        instanceDefined ( instance );
+
+        assertTrue ( propertyFile.exists () );
+
+        instance.configureArchetype (
+            interactiveMode,
+            propertyFile,
+            systemProperties,
+            localRepository,
+            repositories
+        );
+
+        assertTrue ( propertyFile.exists () );
+
+        Properties properties = loadProperties ( propertyFile );
+        assertEquals ( "archetypes", properties.getProperty ( "archetype.groupId" ) );
+        assertEquals ( "old", properties.getProperty ( "archetype.artifactId" ) );
+        assertEquals ( "1.0", properties.getProperty ( "archetype.version" ) );
+
+        assertEquals ( "system-value", properties.getProperty ( "groupId" ) );
+        assertEquals ( "system-value", properties.getProperty ( "artifactId" ) );
+        assertEquals ( "system-value", properties.getProperty ( "version" ) );
+        assertEquals ( "system-value", properties.getProperty ( "package" ) );
+    }
+
+    public void testBatchModePropertiesDefinedInFile ()
+    throws Exception
+    {
+        System.out.println ( "testBatchModePropertiesDefinedInSytem" );
+
+        String archetypeGroupId = null;
+        String archetypeArtifactId = null;
+        String archetypeVersion = null;
+
+        Boolean interactiveMode = Boolean.FALSE;
+
+        String project = "configure-4";
+        File propertyFile = getPropertiesFile ( project );
+        File propertyFileSample = getPropertiesSampleFile ( project );
+        copy ( propertyFileSample, propertyFile );
+
+        DefaultArchetypeGenerationConfigurator instance =
+            (DefaultArchetypeGenerationConfigurator) lookup (
+                ArchetypeGenerationConfigurator.ROLE
+            );
+        instanceDefined ( instance );
+
+        assertTrue ( propertyFile.exists () );
+
+        instance.configureArchetype (
+            interactiveMode,
+            propertyFile,
+            System.getProperties (),
+            localRepository,
+            repositories
+        );
+
+        assertTrue ( propertyFile.exists () );
+
+        Properties properties = loadProperties ( propertyFile );
+        assertEquals ( "archetypes", properties.getProperty ( "archetype.groupId" ) );
+        assertEquals ( "basic", properties.getProperty ( "archetype.artifactId" ) );
+        assertEquals ( "1.0", properties.getProperty ( "archetype.version" ) );
+
+        assertEquals ( "file-value", properties.getProperty ( "groupId" ) );
+        assertEquals ( "file-value", properties.getProperty ( "artifactId" ) );
+        assertEquals ( "file-value", properties.getProperty ( "version" ) );
+        assertEquals ( "file-value", properties.getProperty ( "package" ) );
+        assertEquals ( "file-value", properties.getProperty ( "property-with-default-1" ) );
+        assertEquals ( "file-value", properties.getProperty ( "property-with-default-2" ) );
+        assertEquals ( "file-value", properties.getProperty ( "property-with-default-3" ) );
+        assertEquals ( "file-value", properties.getProperty ( "property-with-default-4" ) );
+        assertEquals ( "file-value", properties.getProperty ( "property-without-default-1" ) );
+        assertEquals ( "file-value", properties.getProperty ( "property-without-default-2" ) );
+        assertEquals ( "file-value", properties.getProperty ( "property-without-default-3" ) );
+        assertEquals ( "file-value", properties.getProperty ( "property-without-default-4" ) );
+    }
+
+    public void testBatchModePropertiesDefinedInSystem ()
+    throws Exception
+    {
+        System.out.println ( "testBatchModePropertiesDefinedInSystem" );
+
+        String archetypeGroupId = null;
+        String archetypeArtifactId = null;
+        String archetypeVersion = null;
+
+        Boolean interactiveMode = Boolean.FALSE;
+
+        String project = "configure-3";
+        File propertyFile = getPropertiesFile ( project );
+        File propertyFileSample = getPropertiesSampleFile ( project );
+        copy ( propertyFileSample, propertyFile );
+
+        Properties systemProperties = new Properties ();
+        systemProperties.setProperty ( "groupId", "system-value" );
+        systemProperties.setProperty ( "artifactId", "system-value" );
+        systemProperties.setProperty ( "version", "system-value" );
+        systemProperties.setProperty ( "package", "system-value" );
+        systemProperties.setProperty ( "property-with-default-1", "system-value" );
+        systemProperties.setProperty ( "property-with-default-2", "system-value" );
+        systemProperties.setProperty ( "property-with-default-3", "system-value" );
+        systemProperties.setProperty ( "property-with-default-4", "system-value" );
+        systemProperties.setProperty ( "property-without-default-1", "system-value" );
+        systemProperties.setProperty ( "property-without-default-2", "system-value" );
+        systemProperties.setProperty ( "property-without-default-3", "system-value" );
+        systemProperties.setProperty ( "property-without-default-4", "system-value" );
+
+        DefaultArchetypeGenerationConfigurator instance =
+            (DefaultArchetypeGenerationConfigurator) lookup (
+                ArchetypeGenerationConfigurator.ROLE
+            );
+        instanceDefined ( instance );
+
+        assertTrue ( propertyFile.exists () );
+
+        instance.configureArchetype (
+            interactiveMode,
+            propertyFile,
+            systemProperties,
+            localRepository,
+            repositories
+        );
+
+        assertTrue ( propertyFile.exists () );
+
+        Properties properties = loadProperties ( propertyFile );
+        assertEquals ( "archetypes", properties.getProperty ( "archetype.groupId" ) );
+        assertEquals ( "basic", properties.getProperty ( "archetype.artifactId" ) );
+        assertEquals ( "1.0", properties.getProperty ( "archetype.version" ) );
+
+        assertEquals ( "system-value", properties.getProperty ( "groupId" ) );
+        assertEquals ( "system-value", properties.getProperty ( "artifactId" ) );
+        assertEquals ( "system-value", properties.getProperty ( "version" ) );
+        assertEquals ( "system-value", properties.getProperty ( "package" ) );
+        assertEquals ( "system-value", properties.getProperty ( "property-with-default-1" ) );
+        assertEquals ( "system-value", properties.getProperty ( "property-with-default-2" ) );
+        assertEquals ( "system-value", properties.getProperty ( "property-with-default-3" ) );
+        assertEquals ( "system-value", properties.getProperty ( "property-with-default-4" ) );
+        assertEquals ( "system-value", properties.getProperty ( "property-without-default-1" ) );
+        assertEquals ( "system-value", properties.getProperty ( "property-without-default-2" ) );
+        assertEquals ( "system-value", properties.getProperty ( "property-without-default-3" ) );
+        assertEquals ( "system-value", properties.getProperty ( "property-without-default-4" ) );
+    }
+
+    public void testBatchModePropertiesNotDefined ()
+    throws Exception
+    {
+        System.out.println ( "testBatchModePropertiesNotDefined" );
+
+        String archetypeGroupId = "archetypes";
+        String archetypeArtifactId = "basic";
+        String archetypeVersion = "1.0";
+
+        Boolean interactiveMode = Boolean.FALSE;
+
+        String project = "configure-2";
+        File propertyFile = getPropertiesFile ( project );
+        File propertyFileSample = getPropertiesSampleFile ( project );
+        copy ( propertyFileSample, propertyFile );
+
+        DefaultArchetypeGenerationConfigurator instance =
+            (DefaultArchetypeGenerationConfigurator) lookup (
+                ArchetypeGenerationConfigurator.ROLE
+            );
+        instanceDefined ( instance );
+
+        assertTrue ( propertyFile.exists () );
+
+        try
+        {
+            instance.configureArchetype (
+                interactiveMode,
+                propertyFile,
+                System.getProperties (),
+                localRepository,
+                repositories
+            );
+
+            fail ( "Exception must be thrown" );
+        }
+        catch ( ArchetypeNotConfigured e )
+        {
+            assertEquals (
+                "Exception not correct",
+                "The archetype is not configurated",
+                e.getMessage ()
+            );
+        }
+    }
+
+    public void testInteractiveModeFileSetArchetype ()
+    throws Exception
+    {
+        System.out.println ( "testInteractiveModeFileSetArchetype" );
+
+        String archetypeGroupId = "archetypes";
+        String archetypeArtifactId = "fileset";
+        String archetypeVersion = "1.0";
+
+        Boolean interactiveMode = Boolean.TRUE;
+
+        String project = "configure-9";
+        File propertyFile = getPropertiesFile ( project );
+        File propertyFileSample = getPropertiesSampleFile ( project );
+        copy ( propertyFileSample, propertyFile );
+
+        DefaultArchetypeGenerationConfigurator instance =
+            (DefaultArchetypeGenerationConfigurator) lookup (
+                ArchetypeGenerationConfigurator.ROLE
+            );
+        instanceDefined ( instance );
+
+        MockPrompter prompter = new MockPrompter ();
+        prompter.addAnswer ( "user-value" );
+        prompter.addAnswer ( "user-value" );
+        prompter.addAnswer ( "user-value" );
+        prompter.addAnswer ( "user-value" );
+        prompter.addAnswer ( "user-value" );
+        prompter.addAnswer ( "user-value" );
+        prompter.addAnswer ( "user-value" );
+        prompter.addAnswer ( "user-value" );
+        prompter.addAnswer ( "N" );
+        prompter.addAnswer ( "user-value2" );
+        prompter.addAnswer ( "user-value2" );
+        prompter.addAnswer ( "user-value2" );
+        prompter.addAnswer ( "user-value2" );
+        prompter.addAnswer ( "user-value2" );
+        prompter.addAnswer ( "user-value2" );
+        prompter.addAnswer ( "user-value2" );
+        prompter.addAnswer ( "user-value2" );
+        prompter.addAnswer ( "user-value2" );
+        prompter.addAnswer ( "user-value2" );
+        prompter.addAnswer ( "user-value2" );
+        prompter.addAnswer ( "user-value2" );
+        prompter.addAnswer ( "Y" );
+        setVariableValueToObject (
+            getVariableValueFromObject ( instance, "archetypeGenerationQueryer" ),
+            "prompter",
+            prompter
+        );
+
+        assertTrue ( propertyFile.exists () );
+
+        instance.configureArchetype (
+            interactiveMode,
+            propertyFile,
+            System.getProperties (),
+            localRepository,
+            repositories
+        );
+
+        assertTrue ( propertyFile.exists () );
+
+        Properties properties = loadProperties ( propertyFile );
+        assertEquals ( "archetypes", properties.getProperty ( "archetype.groupId" ) );
+        assertEquals ( "fileset", properties.getProperty ( "archetype.artifactId" ) );
+        assertEquals ( "1.0", properties.getProperty ( "archetype.version" ) );
+
+        assertEquals ( "user-value2", properties.getProperty ( "groupId" ) );
+        assertEquals ( "user-value2", properties.getProperty ( "artifactId" ) );
+        assertEquals ( "user-value2", properties.getProperty ( "version" ) );
+        assertEquals ( "user-value2", properties.getProperty ( "package" ) );
+        assertEquals ( "user-value2", properties.getProperty ( "property-with-default-1" ) );
+        assertEquals ( "user-value2", properties.getProperty ( "property-with-default-2" ) );
+        assertEquals ( "user-value2", properties.getProperty ( "property-with-default-3" ) );
+        assertEquals ( "user-value2", properties.getProperty ( "property-with-default-4" ) );
+        assertEquals ( "user-value2", properties.getProperty ( "property-without-default-1" ) );
+        assertEquals ( "user-value2", properties.getProperty ( "property-without-default-2" ) );
+        assertEquals ( "user-value2", properties.getProperty ( "property-without-default-3" ) );
+        assertEquals ( "user-value2", properties.getProperty ( "property-without-default-4" ) );
+    }
+
+    public void testInteractiveModeOldArchetype ()
+    throws Exception
+    {
+        System.out.println ( "testInteractiveModePropertiesNotDefined" );
+
+        String archetypeGroupId = "archetypes";
+        String archetypeArtifactId = "old";
+        String archetypeVersion = "1.0";
+
+        Boolean interactiveMode = Boolean.TRUE;
+
+        String project = "configure-8";
+        File propertyFile = getPropertiesFile ( project );
+        File propertyFileSample = getPropertiesSampleFile ( project );
+        copy ( propertyFileSample, propertyFile );
+
+        DefaultArchetypeGenerationConfigurator instance =
+            (DefaultArchetypeGenerationConfigurator) lookup (
+                ArchetypeGenerationConfigurator.ROLE
+            );
+        instanceDefined ( instance );
+
+        MockPrompter prompter = new MockPrompter ();
+        prompter.addAnswer ( "user-value" );
+        prompter.addAnswer ( "user-value" );
+        prompter.addAnswer ( "user-value" );
+        prompter.addAnswer ( "user-value" );
+        prompter.addAnswer ( "Y" );
+        setVariableValueToObject (
+            getVariableValueFromObject ( instance, "archetypeGenerationQueryer" ),
+            "prompter",
+            prompter
+        );
+
+        assertTrue ( propertyFile.exists () );
+
+        instance.configureArchetype (
+            interactiveMode,
+            propertyFile,
+            System.getProperties (),
+            localRepository,
+            repositories
+        );
+
+        assertTrue ( propertyFile.exists () );
+
+        Properties properties = loadProperties ( propertyFile );
+        assertEquals ( "archetypes", properties.getProperty ( "archetype.groupId" ) );
+        assertEquals ( "old", properties.getProperty ( "archetype.artifactId" ) );
+        assertEquals ( "1.0", properties.getProperty ( "archetype.version" ) );
+
+        assertEquals ( "user-value", properties.getProperty ( "groupId" ) );
+        assertEquals ( "user-value", properties.getProperty ( "artifactId" ) );
+        assertEquals ( "user-value", properties.getProperty ( "version" ) );
+        assertEquals ( "user-value", properties.getProperty ( "package" ) );
+    }
+
+    public void testInteractiveModePropertiesNotDefined ()
+    throws Exception
+    {
+        System.out.println ( "testInteractiveModePropertiesNotDefined" );
+
+        String archetypeGroupId = "archetypes";
+        String archetypeArtifactId = "basic";
+        String archetypeVersion = "1.0";
+
+        Boolean interactiveMode = Boolean.TRUE;
+
+        String project = "configure-5";
+        File propertyFile = getPropertiesFile ( project );
+        File propertyFileSample = getPropertiesSampleFile ( project );
+        copy ( propertyFileSample, propertyFile );
+
+        DefaultArchetypeGenerationConfigurator instance =
+            (DefaultArchetypeGenerationConfigurator) lookup (
+                ArchetypeGenerationConfigurator.ROLE
+            );
+        instanceDefined ( instance );
+
+        MockPrompter prompter = new MockPrompter ();
+        prompter.addAnswer ( "user-value" );
+        prompter.addAnswer ( "user-value" );
+        prompter.addAnswer ( "user-value" );
+        prompter.addAnswer ( "user-value" );
+        prompter.addAnswer ( "user-value" );
+        prompter.addAnswer ( "user-value" );
+        prompter.addAnswer ( "user-value" );
+        prompter.addAnswer ( "user-value" );
+        prompter.addAnswer ( "N" );
+        prompter.addAnswer ( "user-value2" );
+        prompter.addAnswer ( "user-value2" );
+        prompter.addAnswer ( "user-value2" );
+        prompter.addAnswer ( "user-value2" );
+        prompter.addAnswer ( "user-value2" );
+        prompter.addAnswer ( "user-value2" );
+        prompter.addAnswer ( "user-value2" );
+        prompter.addAnswer ( "user-value2" );
+        prompter.addAnswer ( "user-value2" );
+        prompter.addAnswer ( "user-value2" );
+        prompter.addAnswer ( "user-value2" );
+        prompter.addAnswer ( "user-value2" );
+        prompter.addAnswer ( "Y" );
+        setVariableValueToObject (
+            getVariableValueFromObject ( instance, "archetypeGenerationQueryer" ),
+            "prompter",
+            prompter
+        );
+
+        assertTrue ( propertyFile.exists () );
+
+        instance.configureArchetype (
+            interactiveMode,
+            propertyFile,
+            System.getProperties (),
+            localRepository,
+            repositories
+        );
+
+        assertTrue ( propertyFile.exists () );
+
+        Properties properties = loadProperties ( propertyFile );
+        assertEquals ( "archetypes", properties.getProperty ( "archetype.groupId" ) );
+        assertEquals ( "basic", properties.getProperty ( "archetype.artifactId" ) );
+        assertEquals ( "1.0", properties.getProperty ( "archetype.version" ) );
+
+        assertEquals ( "user-value2", properties.getProperty ( "groupId" ) );
+        assertEquals ( "user-value2", properties.getProperty ( "artifactId" ) );
+        assertEquals ( "user-value2", properties.getProperty ( "version" ) );
+        assertEquals ( "user-value2", properties.getProperty ( "package" ) );
+        assertEquals ( "user-value2", properties.getProperty ( "property-with-default-1" ) );
+        assertEquals ( "user-value2", properties.getProperty ( "property-with-default-2" ) );
+        assertEquals ( "user-value2", properties.getProperty ( "property-with-default-3" ) );
+        assertEquals ( "user-value2", properties.getProperty ( "property-with-default-4" ) );
+        assertEquals ( "user-value2", properties.getProperty ( "property-without-default-1" ) );
+        assertEquals ( "user-value2", properties.getProperty ( "property-without-default-2" ) );
+        assertEquals ( "user-value2", properties.getProperty ( "property-without-default-3" ) );
+        assertEquals ( "user-value2", properties.getProperty ( "property-without-default-4" ) );
+    }
+
+    public void testInteractiveModePropertiesOverrided ()
+    throws Exception
+    {
+        System.out.println ( "testInteractiveModePropertiesOverrided" );
+
+        String archetypeGroupId = "archetypes";
+        String archetypeArtifactId = "basic";
+        String archetypeVersion = "1.0";
+
+        Boolean interactiveMode = Boolean.TRUE;
+
+        String project = "configure-6";
+        File propertyFile = getPropertiesFile ( project );
+        File propertyFileSample = getPropertiesSampleFile ( project );
+        copy ( propertyFileSample, propertyFile );
+
+        DefaultArchetypeGenerationConfigurator instance =
+            (DefaultArchetypeGenerationConfigurator) lookup (
+                ArchetypeGenerationConfigurator.ROLE
+            );
+        instanceDefined ( instance );
+
+        MockPrompter prompter = new MockPrompter ();
+        prompter.addAnswer ( "user-value" );
+        prompter.addAnswer ( "user-value" );
+        prompter.addAnswer ( "Y" );
+        setVariableValueToObject (
+            getVariableValueFromObject ( instance, "archetypeGenerationQueryer" ),
+            "prompter",
+            prompter
+        );
+
+        Properties systemProperties = new Properties ();
+        systemProperties.setProperty ( "groupId", "system-value" );
+        systemProperties.setProperty ( "version", "system-value" );
+        systemProperties.setProperty ( "property-with-default-1", "system-value" );
+        systemProperties.setProperty ( "property-with-default-3", "system-value" );
+        systemProperties.setProperty ( "property-without-default-1", "system-value" );
+        systemProperties.setProperty ( "property-without-default-3", "system-value" );
+
+        assertTrue ( propertyFile.exists () );
+
+        instance.configureArchetype (
+            interactiveMode,
+            propertyFile,
+            systemProperties,
+            localRepository,
+            repositories
+        );
+
+        assertTrue ( propertyFile.exists () );
+
+        Properties properties = loadProperties ( propertyFile );
+        assertEquals ( "archetypes", properties.getProperty ( "archetype.groupId" ) );
+        assertEquals ( "basic", properties.getProperty ( "archetype.artifactId" ) );
+        assertEquals ( "1.0", properties.getProperty ( "archetype.version" ) );
+
+        assertEquals ( "system-value", properties.getProperty ( "groupId" ) );
+        assertEquals ( "file-value", properties.getProperty ( "artifactId" ) );
+        assertEquals ( "system-value", properties.getProperty ( "version" ) );
+        assertEquals ( "user-value", properties.getProperty ( "package" ) );
+
+        assertEquals ( "system-value", properties.getProperty ( "property-with-default-1" ) );
+        assertEquals ( "file-value", properties.getProperty ( "property-with-default-2" ) );
+        assertEquals ( "system-value", properties.getProperty ( "property-with-default-3" ) );
+        assertEquals ( "default-value", properties.getProperty ( "property-with-default-4" ) );
+
+        assertEquals ( "system-value", properties.getProperty ( "property-without-default-1" ) );
+        assertEquals ( "file-value", properties.getProperty ( "property-without-default-2" ) );
+        assertEquals ( "system-value", properties.getProperty ( "property-without-default-3" ) );
+        assertEquals ( "user-value", properties.getProperty ( "property-without-default-4" ) );
+    }
+
+    protected void tearDown ()
+    throws Exception
+    {
+        super.tearDown ();
+    }
+
+    protected void setUp ()
+    throws Exception
+    {
+        super.setUp ();
+
+        localRepository =
+            new DefaultArtifactRepository (
+                "local",
+                new File ( getBasedir (), "target/test-classes/repositories/local" ).toURI ()
+                .toString (),
+                new DefaultRepositoryLayout ()
+            );
+
+        repositories =
+            Arrays.asList (
+                new ArtifactRepository[]
+                {
+                    new DefaultArtifactRepository (
+                        "central",
+                        new File ( getBasedir (), "target/test-classes/repositories/central" )
+                        .toURI ().toString (),
+                        new DefaultRepositoryLayout ()
+                    )
+                }
+            );
+    }
+
+    private void copy ( final File in, final File out )
+    throws IOException, FileNotFoundException
+    {
+        assertTrue ( !out.exists () || out.delete () );
+        assertFalse ( out.exists () );
+        IOUtil.copy ( new FileReader ( in ), new FileWriter ( out ) );
+        assertTrue ( out.exists () );
+        assertTrue ( in.exists () );
+    }
+
+    private void instanceDefined ( DefaultArchetypeGenerationConfigurator instance )
+    throws IllegalAccessException
+    {
+        assertNotNull ( instance );
+        assertNotNull ( getVariableValueFromObject ( instance, "archetypeArtifactManager" ) );
+        assertNotNull ( getVariableValueFromObject ( instance, "archetypeFactory" ) );
+        assertNotNull ( getVariableValueFromObject ( instance, "archetypeGenerationQueryer" ) );
+        assertNotNull ( getVariableValueFromObject ( instance, "archetypePropertiesManager" ) );
+    }
+
+    private Properties loadProperties ( File propertyFile )
+    throws IOException, FileNotFoundException
+    {
+        Properties properties = new Properties ();
+        properties.load ( new FileInputStream ( propertyFile ) );
+        return properties;
+    }
+
+    private File getPropertiesFile ( String project )
+    {
+        return
+            new File (
+                getBasedir (),
+                "target/test-classes/projects/" + project + "/archetype.properties"
+            );
+    }
+
+    private File getPropertiesSampleFile ( final String project )
+    {
+        File propertyFileSample =
+            new File (
+                getBasedir (),
+                "target/test-classes/projects/" + project + "/archetype.properties.sample"
+            );
+        return propertyFileSample;
+    }
+}