Author: doogie
Date: Tue Apr 21 23:35:01 2015
New Revision: 1675218

URL: http://svn.apache.org/r1675218
Log:
Set the ofbiz.home.dir system property.

Modified:
    ofbiz/branches/OFBIZ-6271/framework/start/pom.xml
    ofbiz/branches/OFBIZ-6271/pom.xml

Modified: ofbiz/branches/OFBIZ-6271/framework/start/pom.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/branches/OFBIZ-6271/framework/start/pom.xml?rev=1675218&r1=1675217&r2=1675218&view=diff
==============================================================================
--- ofbiz/branches/OFBIZ-6271/framework/start/pom.xml (original)
+++ ofbiz/branches/OFBIZ-6271/framework/start/pom.xml Tue Apr 21 23:35:01 2015
@@ -53,7 +53,7 @@ under the License.
             <phase>package</phase>
             <configuration>
               <tasks>
-                <copy todir="${project.parent.relativePath}/..">
+                <copy todir="${ofbiz.home.dir}">
                   <fileset dir="${project.build.directory}" 
includes="ofbiz.jar"/>
                 </copy>
               </tasks>

Modified: ofbiz/branches/OFBIZ-6271/pom.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/branches/OFBIZ-6271/pom.xml?rev=1675218&r1=1675217&r2=1675218&view=diff
==============================================================================
--- ofbiz/branches/OFBIZ-6271/pom.xml (original)
+++ ofbiz/branches/OFBIZ-6271/pom.xml Tue Apr 21 23:35:01 2015
@@ -71,6 +71,11 @@ under the License.
           <artifactId>maven-jar-plugin</artifactId>
           <version>2.2</version>
         </plugin>
+        <plugin>
+          <groupId>org.commonjava.maven.plugins</groupId>
+          <artifactId>directory-maven-plugin</artifactId>
+          <version>0.1</version>
+        </plugin>
       </plugins>
     </pluginManagement>
     <plugins>
@@ -153,6 +158,40 @@ under the License.
           <target>1.7</target>
         </configuration>
       </plugin>
+      <plugin>
+        <groupId>org.commonjava.maven.plugins</groupId>
+        <artifactId>directory-maven-plugin</artifactId>
+        <configuration>
+          <property>ofbiz.home.dir</property>
+          <project>
+            <groupId>org.apache.ofbiz</groupId>
+            <artifactId>ofbiz-parent</artifactId>
+          </project>
+        </configuration>
+        <executions>
+          <execution>
+            <id>ofbiz-home-dir.clean</id>
+            <goals>
+              <goal>highest-basedir</goal>
+            </goals>
+            <phase>pre-clean</phase>
+          </execution>
+          <execution>
+            <id>ofbiz-home-dir.default</id>
+            <goals>
+              <goal>highest-basedir</goal>
+            </goals>
+            <phase>validate</phase>
+          </execution>
+          <execution>
+            <id>ofbiz-home-dir.site</id>
+            <goals>
+              <goal>highest-basedir</goal>
+            </goals>
+            <phase>pre-site</phase>
+          </execution>
+        </executions>
+      </plugin>
     </plugins>
   </build>
 


Reply via email to