You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by jv...@apache.org on 2007/09/20 04:17:18 UTC

svn commit: r577504 [14/14] - in /maven/sandbox/trunk/archetypeng: ./ archetype-common/ archetype-common/src/main/java/org/apache/maven/archetype/common/ archetype-common/src/main/java/org/apache/maven/archetype/common/util/ archetype-common/src/main/j...

Modified: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/java/org/apache/maven/archetype/generator/DefaultArchetypeSelectorTest.java
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/java/org/apache/maven/archetype/generator/DefaultArchetypeSelectorTest.java?rev=577504&r1=577503&r2=577504&view=diff
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/java/org/apache/maven/archetype/generator/DefaultArchetypeSelectorTest.java (original)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/java/org/apache/maven/archetype/generator/DefaultArchetypeSelectorTest.java Wed Sep 19 19:17:13 2007
@@ -38,15 +38,16 @@
 import java.util.Properties;
 
 public class DefaultArchetypeSelectorTest
-extends AbstractMojoTestCase
+    extends AbstractMojoTestCase
 {
     ArtifactRepository localRepository;
     List repositories;
 
-    public void testBatchModeNoPropertyDefined ()
-    throws Exception
+    public void testBatchModeNoPropertyDefined()
+        throws
+        Exception
     {
-        System.out.println ( "testBatchModeNoPropertyDefined" );
+        System.out.println( "testBatchModeNoPropertyDefined" );
 
         String archetypeGroupId = null;
         String archetypeArtifactId = null;
@@ -54,20 +55,20 @@
 
         Boolean interactiveMode = Boolean.FALSE;
         String project = "select-1";
-        File propertyFile = getPropertiesFile ( project );
-        assertTrue ( !propertyFile.exists () || propertyFile.delete () );
+        File propertyFile = getPropertiesFile( project );
+        assertTrue( !propertyFile.exists() || propertyFile.delete() );
 
-        File archetypeRegistryFile = getRegistryFile ( project );
+        File archetypeRegistryFile = getRegistryFile( project );
 
         DefaultArchetypeSelector instance =
-            (DefaultArchetypeSelector) lookup ( ArchetypeSelector.ROLE );
-        instanceDefined ( instance );
+            (DefaultArchetypeSelector) lookup( ArchetypeSelector.ROLE );
+        instanceDefined( instance );
 
-        assertFalse ( propertyFile.exists () );
+        assertFalse( propertyFile.exists() );
 
         try
         {
-            instance.selectArchetype (
+            instance.selectArchetype(
                 archetypeGroupId,
                 archetypeArtifactId,
                 archetypeVersion,
@@ -78,23 +79,24 @@
                 repositories
             );
 
-            fail ( "Exception must be thrown" );
+            fail( "Exception must be thrown" );
         }
         catch ( Exception e )
         {
-            assertEquals (
+            assertEquals(
                 "Exception not correct",
                 "The archetype is not defined",
-                e.getMessage ()
+                e.getMessage()
             );
-            assertFalse ( propertyFile.exists () );
+            assertFalse( propertyFile.exists() );
         }
     }
 
-    public void testBatchModePropertiesDefinedInFile ()
-    throws Exception
+    public void testBatchModePropertiesDefinedInFile()
+        throws
+        Exception
     {
-        System.out.println ( "testBatchModePropertiesDefinedInFile" );
+        System.out.println( "testBatchModePropertiesDefinedInFile" );
 
         String archetypeGroupId = null;
         String archetypeArtifactId = null;
@@ -103,20 +105,20 @@
         Boolean interactiveMode = Boolean.FALSE;
 
         String project = "select-2";
-        File propertyFile = getPropertiesFile ( project );
-        File propertyFileSample = getPropertiesSampleFile ( project );
-        copy ( propertyFileSample, propertyFile );
+        File propertyFile = getPropertiesFile( project );
+        File propertyFileSample = getPropertiesSampleFile( project );
+        copy( propertyFileSample, propertyFile );
 
-        File archetypeRegistryFile = getRegistryFile ( project );
+        File archetypeRegistryFile = getRegistryFile( project );
 
         DefaultArchetypeSelector instance =
-            (DefaultArchetypeSelector) lookup ( ArchetypeSelector.ROLE );
+            (DefaultArchetypeSelector) lookup( ArchetypeSelector.ROLE );
 
-        instanceDefined ( instance );
+        instanceDefined( instance );
 
-        assertTrue ( propertyFile.exists () );
+        assertTrue( propertyFile.exists() );
 
-        instance.selectArchetype (
+        instance.selectArchetype(
             archetypeGroupId,
             archetypeArtifactId,
             archetypeVersion,
@@ -127,18 +129,19 @@
             repositories
         );
 
-        assertTrue ( propertyFile.exists () );
+        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" ) );
+        Properties properties = loadProperties( propertyFile );
+        assertEquals( "archetypes", properties.getProperty( "archetype.groupId" ) );
+        assertEquals( "basic", properties.getProperty( "archetype.artifactId" ) );
+        assertEquals( "1.0", properties.getProperty( "archetype.version" ) );
     }
 
-    public void testBatchModePropertiesDefinedInSystem ()
-    throws Exception
+    public void testBatchModePropertiesDefinedInSystem()
+        throws
+        Exception
     {
-        System.out.println ( "testBatchModePropertiesDefinedInSystem" );
+        System.out.println( "testBatchModePropertiesDefinedInSystem" );
 
         String archetypeGroupId = "archetypes";
         String archetypeArtifactId = "basic";
@@ -147,19 +150,19 @@
         Boolean interactiveMode = Boolean.FALSE;
 
         String project = "select-3";
-        File propertyFile = getPropertiesFile ( project );
-        assertTrue ( !propertyFile.exists () || propertyFile.delete () );
+        File propertyFile = getPropertiesFile( project );
+        assertTrue( !propertyFile.exists() || propertyFile.delete() );
 
-        File archetypeRegistryFile = getRegistryFile ( project );
+        File archetypeRegistryFile = getRegistryFile( project );
 
         DefaultArchetypeSelector instance =
-            (DefaultArchetypeSelector) lookup ( ArchetypeSelector.ROLE );
+            (DefaultArchetypeSelector) lookup( ArchetypeSelector.ROLE );
 
-        instanceDefined ( instance );
+        instanceDefined( instance );
 
-        assertFalse ( propertyFile.exists () );
+        assertFalse( propertyFile.exists() );
 
-        instance.selectArchetype (
+        instance.selectArchetype(
             archetypeGroupId,
             archetypeArtifactId,
             archetypeVersion,
@@ -170,18 +173,19 @@
             repositories
         );
 
-        assertTrue ( propertyFile.exists () );
+        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" ) );
+        Properties properties = loadProperties( propertyFile );
+        assertEquals( "archetypes", properties.getProperty( "archetype.groupId" ) );
+        assertEquals( "basic", properties.getProperty( "archetype.artifactId" ) );
+        assertEquals( "1.0", properties.getProperty( "archetype.version" ) );
     }
 
-    public void testBatchModePropertiesOverrided ()
-    throws Exception
+    public void testBatchModePropertiesOverrided()
+        throws
+        Exception
     {
-        System.out.println ( "testBatchModePropertiesOverrided" );
+        System.out.println( "testBatchModePropertiesOverrided" );
 
         String archetypeGroupId = "archetypes";
         String archetypeArtifactId = "dont-exist";
@@ -190,22 +194,22 @@
         Boolean interactiveMode = Boolean.FALSE;
 
         String project = "select-4";
-        File propertyFile = getPropertiesFile ( project );
-        File propertyFileSample = getPropertiesSampleFile ( project );
-        copy ( propertyFileSample, propertyFile );
+        File propertyFile = getPropertiesFile( project );
+        File propertyFileSample = getPropertiesSampleFile( project );
+        copy( propertyFileSample, propertyFile );
 
-        File archetypeRegistryFile = getRegistryFile ( project );
+        File archetypeRegistryFile = getRegistryFile( project );
 
         DefaultArchetypeSelector instance =
-            (DefaultArchetypeSelector) lookup ( ArchetypeSelector.ROLE );
+            (DefaultArchetypeSelector) lookup( ArchetypeSelector.ROLE );
 
-        instanceDefined ( instance );
+        instanceDefined( instance );
 
-        assertTrue ( propertyFile.exists () );
+        assertTrue( propertyFile.exists() );
 
         try
         {
-            instance.selectArchetype (
+            instance.selectArchetype(
                 archetypeGroupId,
                 archetypeArtifactId,
                 archetypeVersion,
@@ -216,29 +220,30 @@
                 repositories
             );
 
-            fail ( "Exception must be thrown" );
+            fail( "Exception must be thrown" );
         }
         catch ( Exception e )
         {
-            assertEquals (
+            assertEquals(
                 "Exception not correct",
                 "The desired archetype does not exist (" + archetypeGroupId + ":"
-                + archetypeArtifactId + ":" + archetypeVersion + ")",
-                e.getMessage ()
+                    + archetypeArtifactId + ":" + archetypeVersion + ")",
+                e.getMessage()
             );
-            assertTrue ( propertyFile.exists () );
+            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" ) );
+            Properties properties = loadProperties( propertyFile );
+            assertEquals( "archetypes", properties.getProperty( "archetype.groupId" ) );
+            assertEquals( "basic", properties.getProperty( "archetype.artifactId" ) );
+            assertEquals( "1.0", properties.getProperty( "archetype.version" ) );
         }
     }
 
-    public void testInteractiveModePropertiesDefinedInFileAndAskedWithoutConfirmation ()
-    throws Exception
+    public void testInteractiveModePropertiesDefinedInFileAndAskedWithoutConfirmation()
+        throws
+        Exception
     {
-        System.out.println (
+        System.out.println(
             "testInteractiveModePropertiesDefinedInFileAndAskedWithoutConfirmation"
         );
 
@@ -249,32 +254,32 @@
         Boolean interactiveMode = Boolean.TRUE;
 
         String project = "select-8";
-        File propertyFile = getPropertiesFile ( project );
-        File propertyFileSample = getPropertiesSampleFile ( project );
-        copy ( propertyFileSample, propertyFile );
+        File propertyFile = getPropertiesFile( project );
+        File propertyFileSample = getPropertiesSampleFile( project );
+        copy( propertyFileSample, propertyFile );
 
-        File archetypeRegistryFile = getRegistryFile ( project );
+        File archetypeRegistryFile = getRegistryFile( project );
 
         DefaultArchetypeSelector instance =
-            (DefaultArchetypeSelector) lookup ( ArchetypeSelector.ROLE );
+            (DefaultArchetypeSelector) lookup( ArchetypeSelector.ROLE );
 
-        instanceDefined ( instance );
+        instanceDefined( instance );
 
-        assertTrue ( propertyFile.exists () );
+        assertTrue( propertyFile.exists() );
 
-        MockPrompter prompter = new MockPrompter ();
-        prompter.addAnswer ( "1" );
-        prompter.addAnswer ( "N" );
-        prompter.addAnswer ( "1" );
-        prompter.addAnswer ( "1" );
-        prompter.addAnswer ( "Y" );
-        setVariableValueToObject (
-            getVariableValueFromObject ( instance, "archetypeSelectionQueryer" ),
+        MockPrompter prompter = new MockPrompter();
+        prompter.addAnswer( "1" );
+        prompter.addAnswer( "N" );
+        prompter.addAnswer( "1" );
+        prompter.addAnswer( "1" );
+        prompter.addAnswer( "Y" );
+        setVariableValueToObject(
+            getVariableValueFromObject( instance, "archetypeSelectionQueryer" ),
             "prompter",
             prompter
         );
 
-        instance.selectArchetype (
+        instance.selectArchetype(
             archetypeGroupId,
             archetypeArtifactId,
             archetypeVersion,
@@ -285,18 +290,19 @@
             repositories
         );
 
-        assertTrue ( propertyFile.exists () );
+        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" ) );
+        Properties properties = loadProperties( propertyFile );
+        assertEquals( "archetypes", properties.getProperty( "archetype.groupId" ) );
+        assertEquals( "basic", properties.getProperty( "archetype.artifactId" ) );
+        assertEquals( "1.0", properties.getProperty( "archetype.version" ) );
     }
 
-    public void testInteractiveModePropertiesDefinedInFileWithoutConfirmation ()
-    throws Exception
+    public void testInteractiveModePropertiesDefinedInFileWithoutConfirmation()
+        throws
+        Exception
     {
-        System.out.println ( "testInteractiveModePropertiesDefinedInFileWithoutConfirmation" );
+        System.out.println( "testInteractiveModePropertiesDefinedInFileWithoutConfirmation" );
 
         String archetypeGroupId = "archetypes";
         String archetypeArtifactId = "basic";
@@ -305,31 +311,31 @@
         Boolean interactiveMode = Boolean.TRUE;
 
         String project = "select-7";
-        File propertyFile = getPropertiesFile ( project );
-        File propertyFileSample = getPropertiesSampleFile ( project );
-        copy ( propertyFileSample, propertyFile );
+        File propertyFile = getPropertiesFile( project );
+        File propertyFileSample = getPropertiesSampleFile( project );
+        copy( propertyFileSample, propertyFile );
 
-        File archetypeRegistryFile = getRegistryFile ( project );
+        File archetypeRegistryFile = getRegistryFile( project );
 
         DefaultArchetypeSelector instance =
-            (DefaultArchetypeSelector) lookup ( ArchetypeSelector.ROLE );
+            (DefaultArchetypeSelector) lookup( ArchetypeSelector.ROLE );
 
-        instanceDefined ( instance );
+        instanceDefined( instance );
 
-        assertTrue ( propertyFile.exists () );
+        assertTrue( propertyFile.exists() );
 
-        MockPrompter prompter = new MockPrompter ();
-        prompter.addAnswer ( "N" );
-        prompter.addAnswer ( "1" );
-        prompter.addAnswer ( "1" );
-        prompter.addAnswer ( "Y" );
-        setVariableValueToObject (
-            getVariableValueFromObject ( instance, "archetypeSelectionQueryer" ),
+        MockPrompter prompter = new MockPrompter();
+        prompter.addAnswer( "N" );
+        prompter.addAnswer( "1" );
+        prompter.addAnswer( "1" );
+        prompter.addAnswer( "Y" );
+        setVariableValueToObject(
+            getVariableValueFromObject( instance, "archetypeSelectionQueryer" ),
             "prompter",
             prompter
         );
 
-        instance.selectArchetype (
+        instance.selectArchetype(
             archetypeGroupId,
             archetypeArtifactId,
             archetypeVersion,
@@ -340,18 +346,19 @@
             repositories
         );
 
-        assertTrue ( propertyFile.exists () );
+        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" ) );
+        Properties properties = loadProperties( propertyFile );
+        assertEquals( "archetypes", properties.getProperty( "archetype.groupId" ) );
+        assertEquals( "basic", properties.getProperty( "archetype.artifactId" ) );
+        assertEquals( "1.0", properties.getProperty( "archetype.version" ) );
     }
 
-    public void testInteractiveModePropertiesDefinedInSystemAndAskedMissing ()
-    throws Exception
+    public void testInteractiveModePropertiesDefinedInSystemAndAskedMissing()
+        throws
+        Exception
     {
-        System.out.println ( "testInteractiveModePropertiesDefinedInSystemAndAskedMissing" );
+        System.out.println( "testInteractiveModePropertiesDefinedInSystemAndAskedMissing" );
 
         String archetypeGroupId = "archetypes";
         String archetypeArtifactId = "basic";
@@ -360,28 +367,28 @@
         Boolean interactiveMode = Boolean.TRUE;
 
         String project = "select-6";
-        File propertyFile = getPropertiesFile ( project );
-        assertTrue ( !propertyFile.exists () || propertyFile.delete () );
+        File propertyFile = getPropertiesFile( project );
+        assertTrue( !propertyFile.exists() || propertyFile.delete() );
 
-        File archetypeRegistryFile = getRegistryFile ( project );
+        File archetypeRegistryFile = getRegistryFile( project );
 
         DefaultArchetypeSelector instance =
-            (DefaultArchetypeSelector) lookup ( ArchetypeSelector.ROLE );
+            (DefaultArchetypeSelector) lookup( ArchetypeSelector.ROLE );
 
-        instanceDefined ( instance );
+        instanceDefined( instance );
 
-        assertFalse ( propertyFile.exists () );
+        assertFalse( propertyFile.exists() );
 
-        MockPrompter prompter = new MockPrompter ();
-        prompter.addAnswer ( "1" );
-        prompter.addAnswer ( "Y" );
-        setVariableValueToObject (
-            getVariableValueFromObject ( instance, "archetypeSelectionQueryer" ),
+        MockPrompter prompter = new MockPrompter();
+        prompter.addAnswer( "1" );
+        prompter.addAnswer( "Y" );
+        setVariableValueToObject(
+            getVariableValueFromObject( instance, "archetypeSelectionQueryer" ),
             "prompter",
             prompter
         );
 
-        instance.selectArchetype (
+        instance.selectArchetype(
             archetypeGroupId,
             archetypeArtifactId,
             archetypeVersion,
@@ -392,18 +399,19 @@
             repositories
         );
 
-        assertTrue ( propertyFile.exists () );
+        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" ) );
+        Properties properties = loadProperties( propertyFile );
+        assertEquals( "archetypes", properties.getProperty( "archetype.groupId" ) );
+        assertEquals( "basic", properties.getProperty( "archetype.artifactId" ) );
+        assertEquals( "1.0", properties.getProperty( "archetype.version" ) );
     }
 
-    public void testInteractiveModePropertiesNotDefined ()
-    throws Exception
+    public void testInteractiveModePropertiesNotDefined()
+        throws
+        Exception
     {
-        System.out.println ( "testInteractiveModePropertiesNotDefined" );
+        System.out.println( "testInteractiveModePropertiesNotDefined" );
 
         String archetypeGroupId = null;
         String archetypeArtifactId = null;
@@ -412,30 +420,30 @@
         Boolean interactiveMode = Boolean.TRUE;
 
         String project = "select-5";
-        File propertyFile = getPropertiesFile ( project );
-        assertTrue ( !propertyFile.exists () || propertyFile.delete () );
+        File propertyFile = getPropertiesFile( project );
+        assertTrue( !propertyFile.exists() || propertyFile.delete() );
 
-        File archetypeRegistryFile = getRegistryFile ( project );
+        File archetypeRegistryFile = getRegistryFile( project );
 
         DefaultArchetypeSelector instance =
-            (DefaultArchetypeSelector) lookup ( ArchetypeSelector.ROLE );
+            (DefaultArchetypeSelector) lookup( ArchetypeSelector.ROLE );
 
-        instanceDefined ( instance );
+        instanceDefined( instance );
 
-        assertFalse ( propertyFile.exists () );
+        assertFalse( propertyFile.exists() );
 
-        MockPrompter prompter = new MockPrompter ();
-        prompter.addAnswer ( "2" );
-        prompter.addAnswer ( "1" );
-        prompter.addAnswer ( "1" );
-        prompter.addAnswer ( "Y" );
-        setVariableValueToObject (
-            getVariableValueFromObject ( instance, "archetypeSelectionQueryer" ),
+        MockPrompter prompter = new MockPrompter();
+        prompter.addAnswer( "2" );
+        prompter.addAnswer( "1" );
+        prompter.addAnswer( "1" );
+        prompter.addAnswer( "Y" );
+        setVariableValueToObject(
+            getVariableValueFromObject( instance, "archetypeSelectionQueryer" ),
             "prompter",
             prompter
         );
 
-        instance.selectArchetype (
+        instance.selectArchetype(
             archetypeGroupId,
             archetypeArtifactId,
             archetypeVersion,
@@ -446,19 +454,20 @@
             repositories
         );
 
-        assertTrue ( propertyFile.exists () );
+        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" ) );
-    }
-    
-    
-    public void testInteractiveModeUnknownGroup ()
-    throws Exception
+        Properties properties = loadProperties( propertyFile );
+        assertEquals( "archetypes", properties.getProperty( "archetype.groupId" ) );
+        assertEquals( "basic", properties.getProperty( "archetype.artifactId" ) );
+        assertEquals( "1.0", properties.getProperty( "archetype.version" ) );
+    }
+
+
+    public void testInteractiveModeUnknownGroup()
+        throws
+        Exception
     {
-        System.out.println ( "testInteractiveModeUnknownGroup" );
+        System.out.println( "testInteractiveModeUnknownGroup" );
 
         String archetypeGroupId = null;
         String archetypeArtifactId = null;
@@ -467,31 +476,31 @@
         Boolean interactiveMode = Boolean.TRUE;
 
         String project = "select-9";
-        File propertyFile = getPropertiesFile ( project );
-        assertTrue ( !propertyFile.exists () || propertyFile.delete () );
+        File propertyFile = getPropertiesFile( project );
+        assertTrue( !propertyFile.exists() || propertyFile.delete() );
 
-        File archetypeRegistryFile = getRegistryFile ( project );
+        File archetypeRegistryFile = getRegistryFile( project );
 
         DefaultArchetypeSelector instance =
-            (DefaultArchetypeSelector) lookup ( ArchetypeSelector.ROLE );
+            (DefaultArchetypeSelector) lookup( ArchetypeSelector.ROLE );
 
-        instanceDefined ( instance );
+        instanceDefined( instance );
 
-        assertFalse ( propertyFile.exists () );
+        assertFalse( propertyFile.exists() );
 
-        MockPrompter prompter = new MockPrompter ();
-        prompter.addAnswer ( "1" );
-        prompter.addAnswer ( "1" );
-        prompter.addAnswer ( "1" );
-        prompter.addAnswer ( "1" );
-        prompter.addAnswer ( "Y" );
-        setVariableValueToObject (
-            getVariableValueFromObject ( instance, "archetypeSelectionQueryer" ),
+        MockPrompter prompter = new MockPrompter();
+        prompter.addAnswer( "1" );
+        prompter.addAnswer( "1" );
+        prompter.addAnswer( "1" );
+        prompter.addAnswer( "1" );
+        prompter.addAnswer( "Y" );
+        setVariableValueToObject(
+            getVariableValueFromObject( instance, "archetypeSelectionQueryer" ),
             "prompter",
             prompter
         );
 
-        instance.selectArchetype (
+        instance.selectArchetype(
             archetypeGroupId,
             archetypeArtifactId,
             archetypeVersion,
@@ -502,18 +511,19 @@
             repositories
         );
 
-        assertTrue ( propertyFile.exists () );
+        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" ) );
-    }
-    
-    public void testInteractiveModeUnknownGroups ()
-    throws Exception
+        Properties properties = loadProperties( propertyFile );
+        assertEquals( "archetypes", properties.getProperty( "archetype.groupId" ) );
+        assertEquals( "basic", properties.getProperty( "archetype.artifactId" ) );
+        assertEquals( "1.0", properties.getProperty( "archetype.version" ) );
+    }
+
+    public void testInteractiveModeUnknownGroups()
+        throws
+        Exception
     {
-        System.out.println ( "testInteractiveModeUnknownGroups" );
+        System.out.println( "testInteractiveModeUnknownGroups" );
 
         String archetypeGroupId = null;
         String archetypeArtifactId = null;
@@ -522,31 +532,31 @@
         Boolean interactiveMode = Boolean.TRUE;
 
         String project = "select-10";
-        File propertyFile = getPropertiesFile ( project );
-        assertTrue ( !propertyFile.exists () || propertyFile.delete () );
+        File propertyFile = getPropertiesFile( project );
+        assertTrue( !propertyFile.exists() || propertyFile.delete() );
 
-        File archetypeRegistryFile = getRegistryFile ( project );
+        File archetypeRegistryFile = getRegistryFile( project );
 
         DefaultArchetypeSelector instance =
-            (DefaultArchetypeSelector) lookup ( ArchetypeSelector.ROLE );
+            (DefaultArchetypeSelector) lookup( ArchetypeSelector.ROLE );
 
-        instanceDefined ( instance );
+        instanceDefined( instance );
 
-        assertFalse ( propertyFile.exists () );
+        assertFalse( propertyFile.exists() );
 
-        MockPrompter prompter = new MockPrompter ();
-        prompter.addAnswer ( "1" );
-        prompter.addAnswer ( "1" );
-        prompter.addAnswer ( "1" );
-        setVariableValueToObject (
-            getVariableValueFromObject ( instance, "archetypeSelectionQueryer" ),
+        MockPrompter prompter = new MockPrompter();
+        prompter.addAnswer( "1" );
+        prompter.addAnswer( "1" );
+        prompter.addAnswer( "1" );
+        setVariableValueToObject(
+            getVariableValueFromObject( instance, "archetypeSelectionQueryer" ),
             "prompter",
             prompter
         );
 
         try
         {
-            instance.selectArchetype (
+            instance.selectArchetype(
                 archetypeGroupId,
                 archetypeArtifactId,
                 archetypeVersion,
@@ -557,105 +567,113 @@
                 repositories
             );
 
-            fail ( "Exception must be thrown" );
+            fail( "Exception must be thrown" );
         }
         catch ( Exception e )
         {
-            assertEquals (
+            assertEquals(
                 "Exception not correct",
                 "No registered group contain an archetype",
-                e.getMessage ()
+                e.getMessage()
             );
-            assertFalse ( propertyFile.exists () );
+            assertFalse( propertyFile.exists() );
         }
     }
 
-    protected void tearDown ()
-    throws Exception
+    protected void tearDown()
+        throws
+        Exception
     {
-        super.tearDown ();
+        super.tearDown();
     }
 
-    protected void setUp ()
-    throws Exception
+    protected void setUp()
+        throws
+        Exception
     {
-        super.setUp ();
+        super.setUp();
 
         localRepository =
-            new DefaultArtifactRepository (
+            new DefaultArtifactRepository(
                 "local",
-                new File ( getBasedir (), "target/test-classes/repositories/local" ).toURI ()
-                .toString (),
-                new DefaultRepositoryLayout ()
+                new File( getBasedir(), "target/test-classes/repositories/local" ).toURI()
+                    .toString(),
+                new DefaultRepositoryLayout()
             );
 
         repositories =
-            Arrays.asList (
+            Arrays.asList(
                 new ArtifactRepository[]
-                {
-                    new DefaultArtifactRepository (
-                        "central",
-                        new File ( getBasedir (), "target/test-classes/repositories/central" )
-                        .toURI ().toString (),
-                        new DefaultRepositoryLayout ()
-                    )
-                }
+                    {
+                        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 ( final DefaultArchetypeSelector instance )
-    throws IllegalAccessException
-    {
-        assertNotNull ( instance );
-        assertNotNull ( getVariableValueFromObject ( instance, "archetypeArtifactManager" ) );
-        assertNotNull ( getVariableValueFromObject ( instance, "archetypeFactory" ) );
-        assertNotNull ( getVariableValueFromObject ( instance, "archetypePropertiesManager" ) );
-        assertNotNull ( getVariableValueFromObject ( instance, "archetypeRegistryManager" ) );
-        assertNotNull ( getVariableValueFromObject ( instance, "archetypeSelectionQueryer" ) );
-    }
-
-    private Properties loadProperties ( File propertyFile )
-    throws IOException, FileNotFoundException
+    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( final DefaultArchetypeSelector instance )
+        throws
+        IllegalAccessException
+    {
+        assertNotNull( instance );
+        assertNotNull( getVariableValueFromObject( instance, "archetypeArtifactManager" ) );
+        assertNotNull( getVariableValueFromObject( instance, "archetypeFactory" ) );
+        assertNotNull( getVariableValueFromObject( instance, "archetypePropertiesManager" ) );
+        assertNotNull( getVariableValueFromObject( instance, "archetypeRegistryManager" ) );
+        assertNotNull( getVariableValueFromObject( instance, "archetypeSelectionQueryer" ) );
+    }
+
+    private Properties loadProperties( File propertyFile )
+        throws
+        IOException,
+        FileNotFoundException
     {
-        Properties properties = new Properties ();
-        properties.load ( new FileInputStream ( propertyFile ) );
+        Properties properties = new Properties();
+        properties.load( new FileInputStream( propertyFile ) );
         return properties;
     }
 
-    private File getPropertiesFile ( String project )
+    private File getPropertiesFile( String project )
     {
         return
-            new File (
-                getBasedir (),
+            new File(
+                getBasedir(),
                 "target/test-classes/projects/" + project + "/archetype.properties"
             );
     }
 
-    private File getPropertiesSampleFile ( final String project )
+    private File getPropertiesSampleFile( final String project )
     {
         File propertyFileSample =
-            new File (
-                getBasedir (),
+            new File(
+                getBasedir(),
                 "target/test-classes/projects/" + project + "/archetype.properties.sample"
             );
         return propertyFileSample;
     }
 
-    private File getRegistryFile ( final String project )
+    private File getRegistryFile( final String project )
     {
         File archetypeRegistryFile =
-            new File (
-                getBasedir (),
+            new File(
+                getBasedir(),
                 "target/test-classes/projects/" + project + "/archetype.xml"
             );
         return archetypeRegistryFile;

Modified: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/java/org/apache/maven/archetype/generator/MockPrompter.java
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/java/org/apache/maven/archetype/generator/MockPrompter.java?rev=577504&r1=577503&r2=577504&view=diff
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/java/org/apache/maven/archetype/generator/MockPrompter.java (original)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/java/org/apache/maven/archetype/generator/MockPrompter.java Wed Sep 19 19:17:13 2007
@@ -26,72 +26,82 @@
 import java.util.List;
 
 public class MockPrompter
-implements Prompter
+    implements Prompter
 {
-    List prompts = new ArrayList ();
+    List prompts = new ArrayList();
 
-    public void addAnswer ( String prompt )
+    public void addAnswer( String prompt )
     {
-        prompts.add ( prompt );
+        prompts.add( prompt );
     }
 
-    public String prompt ( String string )
-    throws PrompterException
+    public String prompt( String string )
+        throws
+        PrompterException
     {
-        System.err.println ( string );
+        System.err.println( string );
 
-        String answer = (String) prompts.remove ( 0 );
-        System.err.println ( "answer = " + answer );
+        String answer = (String) prompts.remove( 0 );
+        System.err.println( "answer = " + answer );
         return answer;
     }
 
-    public String prompt ( String string, String string0 )
-    throws PrompterException
+    public String prompt( String string,
+                          String string0 )
+        throws
+        PrompterException
     {
-        System.err.println ( string );
-        System.err.println ( string0 );
+        System.err.println( string );
+        System.err.println( string0 );
 
-        String answer = (String) prompts.remove ( 0 );
-        System.err.println ( "answer = " + answer );
+        String answer = (String) prompts.remove( 0 );
+        System.err.println( "answer = " + answer );
         return answer;
     }
 
-    public String prompt ( String string, List list )
-    throws PrompterException
+    public String prompt( String string,
+                          List list )
+        throws
+        PrompterException
     {
-        System.err.println ( string );
-        System.err.println ( list );
+        System.err.println( string );
+        System.err.println( list );
 
-        String answer = (String) prompts.remove ( 0 );
-        System.err.println ( "answer = " + answer );
+        String answer = (String) prompts.remove( 0 );
+        System.err.println( "answer = " + answer );
         return answer;
     }
 
-    public String prompt ( String string, List list, String string0 )
-    throws PrompterException
-    {
-        System.err.println ( string );
-        System.err.println ( list );
-        System.err.println ( string0 );
+    public String prompt( String string,
+                          List list,
+                          String string0 )
+        throws
+        PrompterException
+    {
+        System.err.println( string );
+        System.err.println( list );
+        System.err.println( string0 );
 
-        String answer = (String) prompts.remove ( 0 );
-        System.err.println ( "answer = " + answer );
+        String answer = (String) prompts.remove( 0 );
+        System.err.println( "answer = " + answer );
         return answer;
     }
 
-    public String promptForPassword ( String string )
-    throws PrompterException
+    public String promptForPassword( String string )
+        throws
+        PrompterException
     {
-        System.err.println ( string );
+        System.err.println( string );
 
-        String answer = (String) prompts.remove ( 0 );
-        System.err.println ( "answer = " + answer );
+        String answer = (String) prompts.remove( 0 );
+        System.err.println( "answer = " + answer );
         return answer;
     }
 
-    public void showMessage ( String string )
-    throws PrompterException
+    public void showMessage( String string )
+        throws
+        PrompterException
     {
-        System.err.println ( string );
+        System.err.println( string );
     }
 }

Modified: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/resources/projects/select-10/archetype.xml
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/resources/projects/select-10/archetype.xml?rev=577504&r1=577503&r2=577504&view=diff
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/resources/projects/select-10/archetype.xml (original)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/resources/projects/select-10/archetype.xml Wed Sep 19 19:17:13 2007
@@ -1,4 +1,5 @@
-<?xml version="1.0" encoding="UTF-8"?><archetype-registry>
+<?xml version="1.0" encoding="UTF-8"?>
+<archetype-registry>
   <ArchetypeGroups>
     <ArchetypeGroup>dont.exists.1</ArchetypeGroup>
     <ArchetypeGroup>dont.exists.2</ArchetypeGroup>

Modified: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/resources/projects/select-5/archetype.xml
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/resources/projects/select-5/archetype.xml?rev=577504&r1=577503&r2=577504&view=diff
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/resources/projects/select-5/archetype.xml (original)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/resources/projects/select-5/archetype.xml Wed Sep 19 19:17:13 2007
@@ -1,4 +1,5 @@
-<?xml version="1.0" encoding="UTF-8"?><archetype-registry>
+<?xml version="1.0" encoding="UTF-8"?>
+<archetype-registry>
   <ArchetypeGroups>
     <ArchetypeGroup>dont.exists</ArchetypeGroup>
     <ArchetypeGroup>archetypes</ArchetypeGroup>

Modified: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/resources/projects/select-9/archetype.xml
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/resources/projects/select-9/archetype.xml?rev=577504&r1=577503&r2=577504&view=diff
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/resources/projects/select-9/archetype.xml (original)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/resources/projects/select-9/archetype.xml Wed Sep 19 19:17:13 2007
@@ -1,4 +1,5 @@
-<?xml version="1.0" encoding="UTF-8"?><archetype-registry>
+<?xml version="1.0" encoding="UTF-8"?>
+<archetype-registry>
   <ArchetypeGroups>
     <ArchetypeGroup>dont.exists</ArchetypeGroup>
     <ArchetypeGroup>archetypes</ArchetypeGroup>

Modified: maven/sandbox/trunk/archetypeng/archetype-packaging/pom.xml
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-packaging/pom.xml?rev=577504&r1=577503&r2=577504&view=diff
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-packaging/pom.xml (original)
+++ maven/sandbox/trunk/archetypeng/archetype-packaging/pom.xml Wed Sep 19 19:17:13 2007
@@ -18,21 +18,21 @@
 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">
+  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>
+  <modelVersion>4.0.0</modelVersion>
 
-    <parent>
-        <groupId>org.apache.maven.archetype</groupId>
-        <artifactId>maven-archetype</artifactId>
-        <version>1.0-SNAPSHOT</version>
-    </parent>
-
-    <artifactId>archetypeng-packaging</artifactId>
+  <parent>
+    <groupId>org.apache.maven.archetype</groupId>
+    <artifactId>maven-archetype</artifactId>
     <version>1.0-SNAPSHOT</version>
+  </parent>
+
+  <artifactId>archetypeng-packaging</artifactId>
+  <version>1.0-SNAPSHOT</version>
 
-    <name>Maven ArchetypeNG Packaging</name>
+  <name>Maven ArchetypeNG Packaging</name>
 
 </project>

Modified: maven/sandbox/trunk/archetypeng/archetype-packaging/src/main/resources/META-INF/plexus/components.xml
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-packaging/src/main/resources/META-INF/plexus/components.xml?rev=577504&r1=577503&r2=577504&view=diff
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-packaging/src/main/resources/META-INF/plexus/components.xml (original)
+++ maven/sandbox/trunk/archetypeng/archetype-packaging/src/main/resources/META-INF/plexus/components.xml Wed Sep 19 19:17:13 2007
@@ -1,32 +1,34 @@
 <component-set>
-    <components>
-        <component>
-            <role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
-            <role-hint>maven-archetype</role-hint>
-            <implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation>
-            <configuration>
-                <phases>
-                    <process-resources>org.apache.maven.plugins:maven-resources-plugin:resources</process-resources>
-                    <process-test-resources>org.apache.maven.plugins:maven-resources-plugin:testResources</process-test-resources>
-                    <package>org.apache.maven.plugins:maven-archetypeng-plugin:jar,
-                             org.apache.maven.plugins:maven-archetypeng-plugin:add-archetype-metadata</package><!--, AND METADATA LIKE MAVEN PLUGIN-->
-                    <integration-test>org.apache.maven.plugins:maven-archetypeng-plugin:integration-test</integration-test>
-                    <install>org.apache.maven.plugins:maven-install-plugin:install</install>
-                    <deploy>org.apache.maven.plugins:maven-deploy-plugin:deploy</deploy>
-                </phases>
-            </configuration>
-        </component>
+  <components>
+    <component>
+      <role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
+      <role-hint>maven-archetype</role-hint>
+      <implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation>
+      <configuration>
+        <phases>
+          <process-resources>org.apache.maven.plugins:maven-resources-plugin:resources</process-resources>
+          <process-test-resources>org.apache.maven.plugins:maven-resources-plugin:testResources</process-test-resources>
+          <package>org.apache.maven.plugins:maven-archetypeng-plugin:jar,
+            org.apache.maven.plugins:maven-archetypeng-plugin:add-archetype-metadata
+          </package>
+          <!--, AND METADATA LIKE MAVEN PLUGIN-->
+          <integration-test>org.apache.maven.plugins:maven-archetypeng-plugin:integration-test</integration-test>
+          <install>org.apache.maven.plugins:maven-install-plugin:install</install>
+          <deploy>org.apache.maven.plugins:maven-deploy-plugin:deploy</deploy>
+        </phases>
+      </configuration>
+    </component>
 
-        <component>
-            <role>org.apache.maven.artifact.handler.ArtifactHandler</role>
-            <role-hint>maven-archetype</role-hint>
-            <implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler</implementation>
-            <configuration>
-                <type>maven-archetype</type>
-                <extension>jar</extension>
-                <packaging>maven-archetype</packaging>
-            </configuration>
-        </component>
+    <component>
+      <role>org.apache.maven.artifact.handler.ArtifactHandler</role>
+      <role-hint>maven-archetype</role-hint>
+      <implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler</implementation>
+      <configuration>
+        <type>maven-archetype</type>
+        <extension>jar</extension>
+        <packaging>maven-archetype</packaging>
+      </configuration>
+    </component>
 
-    </components>
+  </components>
 </component-set>

Modified: maven/sandbox/trunk/archetypeng/archetype-registry/pom.xml
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-registry/pom.xml?rev=577504&r1=577503&r2=577504&view=diff
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-registry/pom.xml (original)
+++ maven/sandbox/trunk/archetypeng/archetype-registry/pom.xml Wed Sep 19 19:17:13 2007
@@ -18,53 +18,53 @@
 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>org.apache.maven.archetype</groupId>
-        <artifactId>maven-archetype</artifactId>
-        <version>1.0-SNAPSHOT</version>
-    </parent>
-
-    <artifactId>archetype-registry</artifactId>
-
-    <name>Maven ArchetypeNG Archetype Registry</name>
-    <packaging>jar</packaging>
-
-    <dependencies>
-        <dependency>
-            <groupId>org.codehaus.plexus</groupId>
-            <artifactId>plexus-utils</artifactId>
-        </dependency>
-    </dependencies>
-
-    <build>
-        <plugins>
-            <plugin>
-                <groupId>org.codehaus.modello</groupId>
-                <artifactId>modello-maven-plugin</artifactId>
-                <version>1.0-alpha-14</version>
-
-                <executions>
-                    <execution>
-                        <id>archetype-registry</id>
-                        <goals>
-                            <goal>xpp3-writer</goal>
-                            <goal>java</goal>
-                            <goal>xpp3-reader</goal>
-                            <goal>xsd</goal>
-                        </goals>
-                        <configuration>
-                            <version>1.0.0</version>
-                            <model>src/main/mdo/archetype-registry.mdo</model>
-                        </configuration>
-                    </execution>
-                </executions>
-            </plugin>
-        </plugins>
-    </build>
+  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>org.apache.maven.archetype</groupId>
+    <artifactId>maven-archetype</artifactId>
+    <version>1.0-SNAPSHOT</version>
+  </parent>
+
+  <artifactId>archetype-registry</artifactId>
+
+  <name>Maven ArchetypeNG Archetype Registry</name>
+  <packaging>jar</packaging>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.codehaus.plexus</groupId>
+      <artifactId>plexus-utils</artifactId>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.codehaus.modello</groupId>
+        <artifactId>modello-maven-plugin</artifactId>
+        <version>1.0-alpha-14</version>
+
+        <executions>
+          <execution>
+            <id>archetype-registry</id>
+            <goals>
+              <goal>xpp3-writer</goal>
+              <goal>java</goal>
+              <goal>xpp3-reader</goal>
+              <goal>xsd</goal>
+            </goals>
+            <configuration>
+              <version>1.0.0</version>
+              <model>src/main/mdo/archetype-registry.mdo</model>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
 </project>

Modified: maven/sandbox/trunk/archetypeng/archetype-registry/src/main/mdo/archetype-registry.mdo
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-registry/src/main/mdo/archetype-registry.mdo?rev=577504&r1=577503&r2=577504&view=diff
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-registry/src/main/mdo/archetype-registry.mdo (original)
+++ maven/sandbox/trunk/archetypeng/archetype-registry/src/main/mdo/archetype-registry.mdo Wed Sep 19 19:17:13 2007
@@ -18,68 +18,68 @@
 under the License.
 -->
 <model>
-    <id>archetype-registry</id>
-    <name>ArchetypeRegistry</name>
+  <id>archetype-registry</id>
+  <name>ArchetypeRegistry</name>
 
-    <defaults>
-        <default>
-            <key>package</key>
-            <value>org.apache.maven.archetype.registry</value>
-        </default>
-    </defaults>
-
-    <classes>
-        <class rootElement="true" xml.tagName="archetype-registry" >
-            <name>ArchetypeRegistry</name>
-            <fields>
-                <field>
-                    <name>ArchetypeGroups</name>
-                    <association>
-                        <type>String</type>
-                        <multiplicity>*</multiplicity>
-                    </association>
-                </field>
-                <field>
-                    <name>ArchetypeRepositories</name>
-                    <association>
-                        <type>ArchetypeRepository</type>
-                        <multiplicity>*</multiplicity>
-                    </association>
-                </field>
-                <field>
-                    <name>Languages</name>
-                    <association>
-                        <type>String</type>
-                        <multiplicity>*</multiplicity>
-                    </association>
-                </field>
-                <field>
-                    <name>FilteredExtensions</name>
-                    <association>
-                        <type>String</type>
-                        <multiplicity>*</multiplicity>
-                    </association>
-                </field>
-            </fields>
-        </class>
-
-        <class>
-            <name>ArchetypeRepository</name>
-            <fields>
-                <field xml.attribute="true" >
-                    <name>id</name>
-                    <type>String</type>
-                    <required>true</required>
-                </field>
-                <field>
-                    <name>url</name>
-                    <type>String</type>
-                    <required>true</required>
-                </field>
-            </fields>
-            <codeSegments>
-                <codeSegment>
-                    <code><![CDATA[
+  <defaults>
+    <default>
+      <key>package</key>
+      <value>org.apache.maven.archetype.registry</value>
+    </default>
+  </defaults>
+
+  <classes>
+    <class rootElement="true" xml.tagName="archetype-registry">
+      <name>ArchetypeRegistry</name>
+      <fields>
+        <field>
+          <name>ArchetypeGroups</name>
+          <association>
+            <type>String</type>
+            <multiplicity>*</multiplicity>
+          </association>
+        </field>
+        <field>
+          <name>ArchetypeRepositories</name>
+          <association>
+            <type>ArchetypeRepository</type>
+            <multiplicity>*</multiplicity>
+          </association>
+        </field>
+        <field>
+          <name>Languages</name>
+          <association>
+            <type>String</type>
+            <multiplicity>*</multiplicity>
+          </association>
+        </field>
+        <field>
+          <name>FilteredExtensions</name>
+          <association>
+            <type>String</type>
+            <multiplicity>*</multiplicity>
+          </association>
+        </field>
+      </fields>
+    </class>
+
+    <class>
+      <name>ArchetypeRepository</name>
+      <fields>
+        <field xml.attribute="true">
+          <name>id</name>
+          <type>String</type>
+          <required>true</required>
+        </field>
+        <field>
+          <name>url</name>
+          <type>String</type>
+          <required>true</required>
+        </field>
+      </fields>
+      <codeSegments>
+        <codeSegment>
+          <code><![CDATA[
     public String toString ()
     {
         return getId () + " (" + getUrl () + ")";
@@ -102,8 +102,8 @@
         return getId ().equals ( ((ArchetypeRepository) other).getId () );
     }
                     ]]></code>
-                </codeSegment>
-            </codeSegments>
-        </class>
-    </classes>
+        </codeSegment>
+      </codeSegments>
+    </class>
+  </classes>
 </model>

Modified: maven/sandbox/trunk/archetypeng/pom.xml
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/pom.xml?rev=577504&r1=577503&r2=577504&view=diff
==============================================================================
--- maven/sandbox/trunk/archetypeng/pom.xml (original)
+++ maven/sandbox/trunk/archetypeng/pom.xml Wed Sep 19 19:17:13 2007
@@ -18,344 +18,344 @@
 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">
+  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>org.apache.maven</groupId>
-        <artifactId>maven-parent</artifactId>
-        <version>5</version>
-        <relativePath>../pom/maven/pom.xml</relativePath>
-    </parent>
-
-    <groupId>org.apache.maven.archetype</groupId>
-    <artifactId>maven-archetype</artifactId>
-    <version>1.0-SNAPSHOT</version>
+  <modelVersion>4.0.0</modelVersion>
+  <parent>
+    <groupId>org.apache.maven</groupId>
+    <artifactId>maven-parent</artifactId>
+    <version>5</version>
+    <relativePath>../pom/maven/pom.xml</relativePath>
+  </parent>
 
-    <name>Maven ArchetypeNG</name>
-    <packaging>pom</packaging>
+  <groupId>org.apache.maven.archetype</groupId>
+  <artifactId>maven-archetype</artifactId>
+  <version>1.0-SNAPSHOT</version>
 
-    <modules>
-        <module>archetype-descriptor</module>
-        <module>archetype-registry</module>
-        <module>archetype-common</module>
-        <module>archetype-generator</module>
-        <module>archetype-creator</module>
-        <module>archetype-plugin</module>
-        <module>archetype-packaging</module>
-    </modules>
+  <name>Maven ArchetypeNG</name>
+  <packaging>pom</packaging>
 
-    <licenses>
-        <license>
-            <name>The Apache Software License, Version 2.0</name>
-            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
-            <distribution>repo</distribution>
-        </license>
-    </licenses>
-    <issueManagement>
-        <system>jira</system>
-        <url>http://jira.codehaus.org/browse/ARCHETYPE</url>
-    </issueManagement>
-    <inceptionYear>2007</inceptionYear>
+  <modules>
+    <module>archetype-descriptor</module>
+    <module>archetype-registry</module>
+    <module>archetype-common</module>
+    <module>archetype-generator</module>
+    <module>archetype-creator</module>
+    <module>archetype-plugin</module>
+    <module>archetype-packaging</module>
+  </modules>
 
-    <dependencyManagement>
-        <dependencies>
-            <dependency>
-                <groupId>org.apache.maven.archetype</groupId>
-                <artifactId>archetype-descriptor</artifactId>
-                <version>1.0-SNAPSHOT</version>
-            </dependency>
-            <dependency>
-                <groupId>org.apache.maven.archetype</groupId>
-                <artifactId>archetype-registry</artifactId>
-                <version>1.0-SNAPSHOT</version>
-            </dependency>
-            <dependency>
-                <groupId>org.apache.maven.archetype</groupId>
-                <artifactId>archetype-generator</artifactId>
-                <version>1.0-SNAPSHOT</version>
-            </dependency>
-            <dependency>
-                <groupId>org.apache.maven.archetype</groupId>
-                <artifactId>marchetype-creator</artifactId>
-                <version>1.0-SNAPSHOT</version>
-            </dependency>
-            <dependency>
-                <groupId>org.apache.maven.archetype</groupId>
-                <artifactId>archetype-common</artifactId>
-                <version>1.0-SNAPSHOT</version>
-            </dependency>
-            <dependency>
-                <groupId>org.apache.maven</groupId>
-                <artifactId>maven-plugin-api</artifactId>
-                <version>2.0.7</version>
-            </dependency>
-            <dependency>
-                <groupId>org.apache.maven</groupId>
-                <artifactId>maven-artifact</artifactId>
-                <version>2.0.7</version>
-            </dependency>
-            <dependency>
-                <groupId>org.apache.maven</groupId>
-                <artifactId>maven-artifact-manager</artifactId>
-                <version>2.0.7</version>
-            </dependency>
-            <dependency>
-                <groupId>org.apache.maven</groupId>
-                <artifactId>maven-model</artifactId>
-                <version>2.0.7</version>
-            </dependency>
-            <dependency>
-                <groupId>org.apache.maven</groupId>
-                <artifactId>maven-project</artifactId>
-                <version>2.0.7</version>
-            </dependency>
-            <dependency>
-                <groupId>org.apache.maven</groupId>
-                <artifactId>maven-archiver</artifactId>
-                <version>2.2</version>
-            </dependency>
-            <dependency>
-                <groupId>org.apache.maven</groupId>
-                <artifactId>maven-repository-metadata</artifactId>
-                <version>2.0.7</version>
-            </dependency>
-            <dependency>
-                <groupId>org.apache.maven</groupId>
-                <artifactId>maven-plugin-descriptor</artifactId>
-                <version>2.0.7</version>
-            </dependency>
-            <dependency>
-                <groupId>org.apache.maven.archetype</groupId>
-                <artifactId>maven-archetype-core</artifactId>
-                <version>1.0-alpha-7</version>
-                <exclusions>
-                    <exclusion>
-                        <groupId>plexus</groupId>
-                        <artifactId>plexus-utils</artifactId>
-                    </exclusion>
-                </exclusions>
-            </dependency>
-            <dependency>
-                <groupId>org.codehaus.plexus</groupId>
-                <artifactId>plexus-utils</artifactId>
-                <version>1.1</version>
-            </dependency>
-            <dependency>
-                <groupId>org.codehaus.plexus</groupId>
-                <artifactId>plexus-container-default</artifactId>
-                <version>1.0-alpha-9</version>
-            </dependency>
-            <dependency>
-                <groupId>org.codehaus.plexus</groupId>
-                <artifactId>plexus-interactivity-api</artifactId>
-                <version>1.0-alpha-5</version>
-            </dependency>
-            <dependency>
-                <groupId>org.apache.maven</groupId>
-                <artifactId>maven-core</artifactId>
-                <version>2.0.7</version>
-            </dependency>
-            <dependency>
-                <groupId>org.apache.maven.shared</groupId>
-                <artifactId>maven-downloader</artifactId>
-                <version>1.1</version>
-            </dependency>
-            <dependency>
-                <groupId>org.codehaus.plexus</groupId>
-                <artifactId>plexus-velocity</artifactId>
-                <version>1.1.3</version>
-            </dependency>
-            <dependency>
-                <groupId>commons-io</groupId>
-                <artifactId>commons-io</artifactId>
-                <version>1.3.1</version>
-            </dependency>
-            <dependency>
-                <groupId>dom4j</groupId>
-                <artifactId>dom4j</artifactId>
-                <version>1.6.1</version>
-            </dependency>
-            <dependency>
-                <groupId>jdom</groupId>
-                <artifactId>jdom</artifactId>
-                <version>1.0</version>
-            </dependency>
-            <dependency>
-                <groupId>velocity</groupId>
-                <artifactId>velocity</artifactId>
-                <version>1.4</version>
-            </dependency>
-            <dependency>
-                <groupId>net.sourceforge.jchardet</groupId>
-                <artifactId>jchardet</artifactId>
-                <version>1.0</version>
-            </dependency>
-            <dependency>
-                <groupId>junit</groupId>
-                <artifactId>junit</artifactId>
-                <version>3.8.1</version>
-                <scope>test</scope>
-            </dependency>
-            <dependency>
-                <groupId>org.apache.maven.shared</groupId>
-                <artifactId>maven-plugin-testing-harness</artifactId>
-                <version>1.0-beta-1</version>
-                <scope>test</scope>
-            </dependency>
-        </dependencies>
-    </dependencyManagement>
+  <licenses>
+    <license>
+      <name>The Apache Software License, Version 2.0</name>
+      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+      <distribution>repo</distribution>
+    </license>
+  </licenses>
+  <issueManagement>
+    <system>jira</system>
+    <url>http://jira.codehaus.org/browse/ARCHETYPE</url>
+  </issueManagement>
+  <inceptionYear>2007</inceptionYear>
 
-    <reporting>
-        <plugins>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-surefire-report-plugin</artifactId>
-            </plugin>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-checkstyle-plugin</artifactId>
-                <reportSets>
-                    <reportSet></reportSet>
-                </reportSets>
-            </plugin>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-pmd-plugin</artifactId>
-                <reportSets>
-                    <reportSet></reportSet>
-                </reportSets>
-            </plugin>
-            <plugin>
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>cobertura-maven-plugin</artifactId>
-                <reportSets>
-                    <reportSet></reportSet>
-                </reportSets>
-            </plugin>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-jxr-plugin</artifactId>
-            </plugin>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-javadoc-plugin</artifactId>
-                <configuration>
-                    <links>
-                        <link>http://java.sun.com/j2ee/1.4/docs/api</link>
-                        <link>http://java.sun.com/j2se/1.5.0/docs/api</link>
-                        <link>http://jakarta.apache.org/commons/collections/apidocs-COLLECTIONS_3_0/</link>
-                        <link>http://jakarta.apache.org/commons/dbcp/apidocs/</link>
-                        <link>http://jakarta.apache.org/commons/fileupload/apidocs/</link>
-                        <link>http://jakarta.apache.org/commons/httpclient/apidocs/</link>
-                        <link>http://jakarta.apache.org/commons/logging/apidocs/</link>
-                        <link>http://jakarta.apache.org/commons/pool/apidocs/</link>
-                        <link>http://www.junit.org/junit/javadoc/</link>
-                        <link>http://logging.apache.org/log4j/docs/api/</link>
-                        <link>http://jakarta.apache.org/regexp/apidocs/</link>
-                        <link>http://jakarta.apache.org/velocity/api/</link>
-                    </links>
-                </configuration>
-            </plugin>
-            <plugin>
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>taglist-maven-plugin</artifactId>
-                <reportSets>
-                    <reportSet></reportSet>
-                </reportSets>
-            </plugin>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-plugin-plugin</artifactId>
-                <reportSets>
-                    <reportSet></reportSet>
-                </reportSets>
-            </plugin>
-        </plugins>
-    </reporting>
+  <dependencyManagement>
+    <dependencies>
+      <dependency>
+        <groupId>org.apache.maven.archetype</groupId>
+        <artifactId>archetype-descriptor</artifactId>
+        <version>1.0-SNAPSHOT</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.maven.archetype</groupId>
+        <artifactId>archetype-registry</artifactId>
+        <version>1.0-SNAPSHOT</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.maven.archetype</groupId>
+        <artifactId>archetype-generator</artifactId>
+        <version>1.0-SNAPSHOT</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.maven.archetype</groupId>
+        <artifactId>marchetype-creator</artifactId>
+        <version>1.0-SNAPSHOT</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.maven.archetype</groupId>
+        <artifactId>archetype-common</artifactId>
+        <version>1.0-SNAPSHOT</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.maven</groupId>
+        <artifactId>maven-plugin-api</artifactId>
+        <version>2.0.7</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.maven</groupId>
+        <artifactId>maven-artifact</artifactId>
+        <version>2.0.7</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.maven</groupId>
+        <artifactId>maven-artifact-manager</artifactId>
+        <version>2.0.7</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.maven</groupId>
+        <artifactId>maven-model</artifactId>
+        <version>2.0.7</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.maven</groupId>
+        <artifactId>maven-project</artifactId>
+        <version>2.0.7</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.maven</groupId>
+        <artifactId>maven-archiver</artifactId>
+        <version>2.2</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.maven</groupId>
+        <artifactId>maven-repository-metadata</artifactId>
+        <version>2.0.7</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.maven</groupId>
+        <artifactId>maven-plugin-descriptor</artifactId>
+        <version>2.0.7</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.maven.archetype</groupId>
+        <artifactId>maven-archetype-core</artifactId>
+        <version>1.0-alpha-7</version>
+        <exclusions>
+          <exclusion>
+            <groupId>plexus</groupId>
+            <artifactId>plexus-utils</artifactId>
+          </exclusion>
+        </exclusions>
+      </dependency>
+      <dependency>
+        <groupId>org.codehaus.plexus</groupId>
+        <artifactId>plexus-utils</artifactId>
+        <version>1.1</version>
+      </dependency>
+      <dependency>
+        <groupId>org.codehaus.plexus</groupId>
+        <artifactId>plexus-container-default</artifactId>
+        <version>1.0-alpha-9</version>
+      </dependency>
+      <dependency>
+        <groupId>org.codehaus.plexus</groupId>
+        <artifactId>plexus-interactivity-api</artifactId>
+        <version>1.0-alpha-5</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.maven</groupId>
+        <artifactId>maven-core</artifactId>
+        <version>2.0.7</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.maven.shared</groupId>
+        <artifactId>maven-downloader</artifactId>
+        <version>1.1</version>
+      </dependency>
+      <dependency>
+        <groupId>org.codehaus.plexus</groupId>
+        <artifactId>plexus-velocity</artifactId>
+        <version>1.1.3</version>
+      </dependency>
+      <dependency>
+        <groupId>commons-io</groupId>
+        <artifactId>commons-io</artifactId>
+        <version>1.3.1</version>
+      </dependency>
+      <dependency>
+        <groupId>dom4j</groupId>
+        <artifactId>dom4j</artifactId>
+        <version>1.6.1</version>
+      </dependency>
+      <dependency>
+        <groupId>jdom</groupId>
+        <artifactId>jdom</artifactId>
+        <version>1.0</version>
+      </dependency>
+      <dependency>
+        <groupId>velocity</groupId>
+        <artifactId>velocity</artifactId>
+        <version>1.4</version>
+      </dependency>
+      <dependency>
+        <groupId>net.sourceforge.jchardet</groupId>
+        <artifactId>jchardet</artifactId>
+        <version>1.0</version>
+      </dependency>
+      <dependency>
+        <groupId>junit</groupId>
+        <artifactId>junit</artifactId>
+        <version>3.8.1</version>
+        <scope>test</scope>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.maven.shared</groupId>
+        <artifactId>maven-plugin-testing-harness</artifactId>
+        <version>1.0-beta-1</version>
+        <scope>test</scope>
+      </dependency>
+    </dependencies>
+  </dependencyManagement>
 
-    <profiles>
-        <profile>
-            <id>rafale-jalopy</id>
-            <build>
-                <plugins>
-                    <plugin>
-                        <groupId>triemax</groupId>
-                        <artifactId>jalopy-maven</artifactId>
-                        <version>1.8-144</version>
-                        <configuration>
-                            <javadoc>false</javadoc>
-                            <logLevel>warn</logLevel>
-                            <profile>default</profile>
-                            <convention>file:///home/users/rafale/projects/RafaleCodeConvention.xml</convention>
-                            <includes>
-                                <include>**/*.java</include>
-                            </includes>
-                            <excludes>
-                                <exclude>**/testdata/**</exclude>
-                            </excludes>
-                            <environment>
-                            </environment>
-                        </configuration>
-                        <executions>
-                            <execution>
-                                <phase>process-classes</phase>
-                                <goals>
-                                    <goal>format</goal>
-                                </goals>
-                            </execution>
-                        </executions>
-                    </plugin>
-                </plugins>
-            </build>
-        </profile>
-    </profiles>
+  <reporting>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-surefire-report-plugin</artifactId>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-checkstyle-plugin</artifactId>
+        <reportSets>
+          <reportSet></reportSet>
+        </reportSets>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-pmd-plugin</artifactId>
+        <reportSets>
+          <reportSet></reportSet>
+        </reportSets>
+      </plugin>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>cobertura-maven-plugin</artifactId>
+        <reportSets>
+          <reportSet></reportSet>
+        </reportSets>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-jxr-plugin</artifactId>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-javadoc-plugin</artifactId>
+        <configuration>
+          <links>
+            <link>http://java.sun.com/j2ee/1.4/docs/api</link>
+            <link>http://java.sun.com/j2se/1.5.0/docs/api</link>
+            <link>http://jakarta.apache.org/commons/collections/apidocs-COLLECTIONS_3_0/</link>
+            <link>http://jakarta.apache.org/commons/dbcp/apidocs/</link>
+            <link>http://jakarta.apache.org/commons/fileupload/apidocs/</link>
+            <link>http://jakarta.apache.org/commons/httpclient/apidocs/</link>
+            <link>http://jakarta.apache.org/commons/logging/apidocs/</link>
+            <link>http://jakarta.apache.org/commons/pool/apidocs/</link>
+            <link>http://www.junit.org/junit/javadoc/</link>
+            <link>http://logging.apache.org/log4j/docs/api/</link>
+            <link>http://jakarta.apache.org/regexp/apidocs/</link>
+            <link>http://jakarta.apache.org/velocity/api/</link>
+          </links>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>taglist-maven-plugin</artifactId>
+        <reportSets>
+          <reportSet></reportSet>
+        </reportSets>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-plugin-plugin</artifactId>
+        <reportSets>
+          <reportSet></reportSet>
+        </reportSets>
+      </plugin>
+    </plugins>
+  </reporting>
 
-    <build>
+  <profiles>
+    <profile>
+      <id>rafale-jalopy</id>
+      <build>
         <plugins>
-            <plugin>
-                <artifactId>maven-compiler-plugin</artifactId>
-                <!--
-                    You will need to install the runtime jar to compile
-                    mvn install:install-file
-                        -DgroupId=com.sun -DartifactId=rt -Dversion=1.4.2
-                        -Dpackaging=jar -Dfile=/usr/local/j2sdk1.4.2_12/jre/lib/rt.jar
-                -->
-                <configuration>
-                    <source>1.4</source>
-                    <target>1.4</target>
-                    <!--
-                    <compilerArguments>
-                        <bootclasspath>
-                            ${settings.localRepository}/com/sun/rt/1.4.2/rt-1.4.2.jar
-                        </bootclasspath>
-                    </compilerArguments>
-                -->
-                </configuration>
-                <!--
-                <dependencies>
-                    <dependency>
-                        <groupId>com.sun</groupId>
-                        <artifactId>rt</artifactId>
-                        <version>1.4.2</version>
-                    </dependency>
-                </dependencies>
-                -->
-            </plugin>
-            <plugin>
-                <groupId>org.codehaus.plexus</groupId>
-                <artifactId>plexus-maven-plugin</artifactId>
-                <version>1.3.5</version>
-                <executions>
-                    <execution>
-                        <goals>
-                            <goal>descriptor</goal>
-                        </goals>
-                    </execution>
-                </executions>
-            </plugin>
+          <plugin>
+            <groupId>triemax</groupId>
+            <artifactId>jalopy-maven</artifactId>
+            <version>1.8-144</version>
+            <configuration>
+              <javadoc>false</javadoc>
+              <logLevel>warn</logLevel>
+              <profile>default</profile>
+              <convention>file:///home/users/rafale/projects/RafaleCodeConvention.xml</convention>
+              <includes>
+                <include>**/*.java</include>
+              </includes>
+              <excludes>
+                <exclude>**/testdata/**</exclude>
+              </excludes>
+              <environment>
+              </environment>
+            </configuration>
+            <executions>
+              <execution>
+                <phase>process-classes</phase>
+                <goals>
+                  <goal>format</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
         </plugins>
-    </build>
+      </build>
+    </profile>
+  </profiles>
+
+  <build>
+    <plugins>
+      <plugin>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <!--
+            You will need to install the runtime jar to compile
+            mvn install:install-file
+                -DgroupId=com.sun -DartifactId=rt -Dversion=1.4.2
+                -Dpackaging=jar -Dfile=/usr/local/j2sdk1.4.2_12/jre/lib/rt.jar
+        -->
+        <configuration>
+          <source>1.4</source>
+          <target>1.4</target>
+          <!--
+              <compilerArguments>
+                  <bootclasspath>
+                      ${settings.localRepository}/com/sun/rt/1.4.2/rt-1.4.2.jar
+                  </bootclasspath>
+              </compilerArguments>
+          -->
+        </configuration>
+        <!--
+        <dependencies>
+            <dependency>
+                <groupId>com.sun</groupId>
+                <artifactId>rt</artifactId>
+                <version>1.4.2</version>
+            </dependency>
+        </dependencies>
+        -->
+      </plugin>
+      <plugin>
+        <groupId>org.codehaus.plexus</groupId>
+        <artifactId>plexus-maven-plugin</artifactId>
+        <version>1.3.5</version>
+        <executions>
+          <execution>
+            <goals>
+              <goal>descriptor</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
 </project>

Modified: maven/sandbox/trunk/archetypeng/src/site/site.xml
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/src/site/site.xml?rev=577504&r1=577503&r2=577504&view=diff
==============================================================================
--- maven/sandbox/trunk/archetypeng/src/site/site.xml (original)
+++ maven/sandbox/trunk/archetypeng/src/site/site.xml Wed Sep 19 19:17:13 2007
@@ -1,27 +1,27 @@
 <project name="Mojo">
-   <bannerLeft>
-      <name>Mojo</name>
-      <src>http://mojo.codehaus.org/images/mojo_logo.png</src>
-      <href>http://mojo.codehaus.org</href>
-   </bannerLeft>
-   <bannerRight>
-      <name>Codehaus</name>
-      <src>http://mojo.codehaus.org/images/codehaus-small.png</src>
-      <href>http://www.codehaus.org</href>
-   </bannerRight>
-   <body>
-      <menu name="Mojo">
-         <item name="mojo" href="http://mojo.codehaus.org"/>
-      </menu>
-      <menu name="Documentation">
-         <item name="Introduction to archetype plugin" href="./main.html"/>
-         <item name="What are archetypes ?" href="./archetypes.html"/>
-         <item name="Project Generation" href="./generation.html"/>
-         <item name="Archetype Creation" href="./creation.html"/>
-         <item name="Handcrafting archetypes" href="./archetype-handcraft.html"/>
-         <item name="Mojos of the plugin" href="./mojos.html"/>
-         <item name="Desing of the Archetypeng plugin" href="./design.html"/>
-      </menu>
-      ${reports}
-   </body>
+  <bannerLeft>
+    <name>Mojo</name>
+    <src>http://mojo.codehaus.org/images/mojo_logo.png</src>
+    <href>http://mojo.codehaus.org</href>
+  </bannerLeft>
+  <bannerRight>
+    <name>Codehaus</name>
+    <src>http://mojo.codehaus.org/images/codehaus-small.png</src>
+    <href>http://www.codehaus.org</href>
+  </bannerRight>
+  <body>
+    <menu name="Mojo">
+      <item name="mojo" href="http://mojo.codehaus.org"/>
+    </menu>
+    <menu name="Documentation">
+      <item name="Introduction to archetype plugin" href="./main.html"/>
+      <item name="What are archetypes ?" href="./archetypes.html"/>
+      <item name="Project Generation" href="./generation.html"/>
+      <item name="Archetype Creation" href="./creation.html"/>
+      <item name="Handcrafting archetypes" href="./archetype-handcraft.html"/>
+      <item name="Mojos of the plugin" href="./mojos.html"/>
+      <item name="Desing of the Archetypeng plugin" href="./design.html"/>
+    </menu>
+    ${reports}
+  </body>
 </project>