Author: jeffyu
Date: Tue Aug  3 01:32:54 2010
New Revision: 981718

URL: http://svn.apache.org/viewvc?rev=981718&view=rev
Log:
* forgot to commit the h2 database creation in my last commit.

Modified:
    ode/trunk/dao-hibernate-db/pom.xml

Modified: ode/trunk/dao-hibernate-db/pom.xml
URL: 
http://svn.apache.org/viewvc/ode/trunk/dao-hibernate-db/pom.xml?rev=981718&r1=981717&r2=981718&view=diff
==============================================================================
--- ode/trunk/dao-hibernate-db/pom.xml (original)
+++ ode/trunk/dao-hibernate-db/pom.xml Tue Aug  3 01:32:54 2010
@@ -59,6 +59,10 @@
         <groupId>org.apache.ode</groupId>
         <artifactId>ode-dao-hibernate</artifactId>
     </dependency>
+    <dependency>
+        <groupId>com.h2database</groupId>
+        <artifactId>h2</artifactId>
+    </dependency>
     </dependencies>
     <build>
 
@@ -73,7 +77,7 @@
               <phase>generate-sources</phase>
               <configuration>
                 <tasks>
-          <property name="maven.runtime.classpath" 
refid="maven.compile.classpath"/>
+                         <property name="maven.runtime.classpath" 
refid="maven.compile.classpath"/>
                   <ant antfile="build.xml" target="create-schema" 
inheritRefs="true"/>
                 </tasks>
               </configuration>
@@ -94,7 +98,7 @@
               <goal>execute</goal>
             </goals>
             <configuration>
-          <driver>org.apache.derby.jdbc.EmbeddedDriver</driver>
+                 <driver>org.apache.derby.jdbc.EmbeddedDriver</driver>
               <url>jdbc:derby:${basedir}/target/derby/hibdb;create=true</url>
               <username>sa</username>
               <password />
@@ -105,6 +109,24 @@
               </srcFiles>
             </configuration>
           </execution>
+          <execution>
+            <id>create-h2-db</id>
+            <phase>process-resources</phase>
+            <goals>
+              <goal>execute</goal>
+            </goals>
+            <configuration>
+              <driver>org.h2.Driver</driver>
+              
<url>jdbc:h2:file:${basedir}/target/h2/hibdb/ode-hib-h2;create=true</url>
+              <username>sa</username>
+              <password />
+              <autocommit>true</autocommit>
+              <onError>continue</onError>
+              <srcFiles>
+                <srcFile>src/schema/ode-hib-h2.sql</srcFile>
+              </srcFiles>
+            </configuration>
+          </execution>          
         </executions>
       </plugin>
       <plugin>
@@ -118,8 +140,8 @@
             </goals>
             <configuration>
               <tasks>
-            <property name="ode.version" value="${project.version}"/>
-        <ant antfile="build.xml" target="zip-derby-db" />
+               <property name="ode.version" value="${project.version}"/>
+                       <ant antfile="build.xml" target="zip-derby-db" />
               </tasks>
             </configuration>
           </execution>


Reply via email to