maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From raf...@apache.org
Subject svn commit: r571849 - in /maven/sandbox/trunk/archetypeng: archetype-creator/src/main/java/org/apache/maven/archetype/creator/FilesetArchetypeCreator.java archetype-plugin/src/main/java/org/apache/maven/archetype/mojos/AddArchetypeMetadataMojo.java
Date Sat, 01 Sep 2007 18:09:07 GMT
Author: rafale
Date: Sat Sep  1 11:09:07 2007
New Revision: 571849

URL: http://svn.apache.org/viewvc?rev=571849&view=rev
Log:
Fixing ARCHETYPE-94 by having archetypes define different prefixes

Modified:
    maven/sandbox/trunk/archetypeng/archetype-creator/src/main/java/org/apache/maven/archetype/creator/FilesetArchetypeCreator.java
    maven/sandbox/trunk/archetypeng/archetype-plugin/src/main/java/org/apache/maven/archetype/mojos/AddArchetypeMetadataMojo.java

Modified: maven/sandbox/trunk/archetypeng/archetype-creator/src/main/java/org/apache/maven/archetype/creator/FilesetArchetypeCreator.java
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-creator/src/main/java/org/apache/maven/archetype/creator/FilesetArchetypeCreator.java?rev=571849&r1=571848&r2=571849&view=diff
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-creator/src/main/java/org/apache/maven/archetype/creator/FilesetArchetypeCreator.java
(original)
+++ maven/sandbox/trunk/archetypeng/archetype-creator/src/main/java/org/apache/maven/archetype/creator/FilesetArchetypeCreator.java
Sat Sep  1 11:09:07 2007
@@ -145,6 +145,7 @@
         model.setArtifactId ( archetypeDefinition.getArtifactId () );
         model.setVersion ( archetypeDefinition.getVersion () );
         model.setPackaging ( "maven-archetype" );
+        model.setName( archetypeDefinition.getArtifactId () );
 
         Build build = new Build ();
         model.setBuild ( build );
@@ -325,7 +326,7 @@
             "Archetype " + archetypeDescriptor.getId () + " old descriptor written"
         );
 
-        archetypeRegistryManager.addGroup ( archetypeConfiguration.getProperty ( Constants.GROUP_ID
), archetypeRegistryFile );
+        archetypeRegistryManager.addGroup ( archetypeConfiguration.getGroupId(), archetypeRegistryFile
);
     }
 
     private void addRequiredProperties (

Modified: maven/sandbox/trunk/archetypeng/archetype-plugin/src/main/java/org/apache/maven/archetype/mojos/AddArchetypeMetadataMojo.java
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-plugin/src/main/java/org/apache/maven/archetype/mojos/AddArchetypeMetadataMojo.java?rev=571849&r1=571848&r2=571849&view=diff
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-plugin/src/main/java/org/apache/maven/archetype/mojos/AddArchetypeMetadataMojo.java
(original)
+++ maven/sandbox/trunk/archetypeng/archetype-plugin/src/main/java/org/apache/maven/archetype/mojos/AddArchetypeMetadataMojo.java
Sat Sep  1 11:09:07 2007
@@ -102,8 +102,8 @@
     {
         if ( goalPrefix == null )
         {
-//            goalPrefix = PluginDescriptor.getGoalPrefixFromArtifactId( project.getArtifactId()
);
-            goalPrefix = "archetypeng";
+//            goalPrefix = PluginDescriptor.getGoalPrefixFromArtifactId( project.getArtifactId
() );
+            goalPrefix = project.getArtifactId ();
         }
 
         return goalPrefix;



Mime
View raw message