You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by jd...@apache.org on 2006/10/08 00:39:44 UTC

svn commit: r454038 - /geronimo/genesis/trunk/plugins/tools-maven-plugin/src/main/resources/META-INF/plexus/components.xml

Author: jdillon
Date: Sat Oct  7 15:39:44 2006
New Revision: 454038

URL: http://svn.apache.org/viewvc?view=rev&rev=454038
Log:
Add resource-bundle packaging

Modified:
    geronimo/genesis/trunk/plugins/tools-maven-plugin/src/main/resources/META-INF/plexus/components.xml

Modified: geronimo/genesis/trunk/plugins/tools-maven-plugin/src/main/resources/META-INF/plexus/components.xml
URL: http://svn.apache.org/viewvc/geronimo/genesis/trunk/plugins/tools-maven-plugin/src/main/resources/META-INF/plexus/components.xml?view=diff&rev=454038&r1=454037&r2=454038
==============================================================================
--- geronimo/genesis/trunk/plugins/tools-maven-plugin/src/main/resources/META-INF/plexus/components.xml (original)
+++ geronimo/genesis/trunk/plugins/tools-maven-plugin/src/main/resources/META-INF/plexus/components.xml Sat Oct  7 15:39:44 2006
@@ -18,8 +18,8 @@
                         <id>default</id>
                         <phases>
                             <process-resources>org.apache.maven.plugins:maven-resources-plugin:resources</process-resources>
-                            <install>org.apache.maven.plugins:maven-install-plugin:install</install>
                             <package>org.apache.geronimo.genesis.plugins:tools-maven-plugin:set-artifact-file</package>
+                            <install>org.apache.maven.plugins:maven-install-plugin:install</install>
                             <deploy>org.apache.maven.plugins:maven-deploy-plugin:deploy</deploy>
                         </phases>
                     </lifecycle>
@@ -43,6 +43,44 @@
             </configuration>
         </component>
 
+        <!--
+        Custom packaging for resource-bundle modules.
+        -->
+        <component>
+            <role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
+            <role-hint>resource-bundle</role-hint>
+            <implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation>
+            <configuration>
+                <lifecycles>
+                    <lifecycle>
+                        <id>default</id>
+                        <phases>
+                            <process-resources>org.apache.maven.plugins:maven-resources-plugin:resources</process-resources>
+                            <package>org.apache.maven.plugins:maven-jar-plugin:jar</package>
+                            <install>org.apache.maven.plugins:maven-install-plugin:install</install>
+                            <deploy>org.apache.maven.plugins:maven-deploy-plugin:deploy</deploy>
+                        </phases>
+                    </lifecycle>
+                </lifecycles>
+            </configuration>
+        </component>
+
+        <!--
+        Install resource-bundle artifact files as .jar files
+        -->
+        <component>
+            <role>org.apache.maven.artifact.handler.ArtifactHandler</role>
+            <role-hint>resource-bundle</role-hint>
+            <implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler</implementation>
+            <configuration>
+                <type>resource-bundle</type>
+                <extension>jar</extension>
+                <packaging>resource-bundle</packaging>
+                <addedToClasspath>false</addedToClasspath>
+                <language>java</language>
+            </configuration>
+        </component>
+        
         <!--
         Custom packaging for testsuite child modules.
         -->