geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: rev 46038 - geronimo/trunk/modules/maven-xmlbeans-plugin
Date Tue, 14 Sep 2004 21:19:22 GMT
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">

Mime
View raw message