You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by dj...@apache.org on 2004/09/14 23:19:22 UTC

svn commit: rev 46038 - geronimo/trunk/modules/maven-xmlbeans-plugin

Author: djencks
Date: Tue Sep 14 14:19:21 2004
New Revision: 46038

Modified:
   geronimo/trunk/modules/maven-xmlbeans-plugin/maven.xml
Log:
tweak to work better in multiproject builds

Modified: geronimo/trunk/modules/maven-xmlbeans-plugin/maven.xml
==============================================================================
--- geronimo/trunk/modules/maven-xmlbeans-plugin/maven.xml	(original)
+++ geronimo/trunk/modules/maven-xmlbeans-plugin/maven.xml	Tue Sep 14 14:19:21 2004
@@ -40,6 +40,24 @@
 
     <goal name="default">
         <attainGoal name="jar:jar"/>
+        <attainGoal name="doinstall"/>
+    </goal>
+
+    <goal name="build">
+        <attainGoal name="default"/>
+    </goal>
+
+    <goal name="rebuild">
+        <attainGoal name="clean"/>
+        <attainGoal name="build"/>
+    </goal>
+
+    <postGoal name="plugin:install">
+        <attainGoal name="doinstall"/>
+    </postGoal>
+
+    <goal name="doinstall">
+        <!--this seems to be needed for the dependency on the plugin to work-->
         <ant:property name="pluginsDir" value="${maven.repo.local}/${pom.artifactDirectory}/plugins"/>
         <ant:mkdir dir="${pluginsDir}"/>
         <ant:copy
@@ -47,18 +65,11 @@
             todir="${pluginsDir}"
             overwrite="true"
             />
+        <!--actually install the plugin into the cache-->
+        <mkdir dir="${maven.plugin.unpacked.dir}/${pom.artifactId}-${pom.currentVersion}"/>
         <ant:unjar
             src="${basedir}/target/${pom.artifactId}-${pom.currentVersion}.jar"
             dest="${maven.plugin.unpacked.dir}/${pom.artifactId}-${pom.currentVersion}/"/>
-    </goal>
-
-    <goal name="build">
-        <attainGoal name="default"/>
-    </goal>
-
-    <goal name="rebuild">
-        <attainGoal name="clean"/>
-        <attainGoal name="build"/>
     </goal>
 
     <goal name="clover.wrapper">