|
|
|
@ -33,8 +33,8 @@
|
|
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.h2database.wso2</groupId>
|
|
|
|
|
<artifactId>h2-database-engine</artifactId>
|
|
|
|
|
<groupId>org.wso2.orbit.com.h2database</groupId>
|
|
|
|
|
<artifactId>h2</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.wso2.carbon.devicemgt</groupId>
|
|
|
|
@ -117,19 +117,18 @@
|
|
|
|
|
</goals>
|
|
|
|
|
<configuration>
|
|
|
|
|
<target>
|
|
|
|
|
<delete file="${basedir}/target/${wso2am}/repository/database/WSO2SHARED_DB.mv.db"/>
|
|
|
|
|
<echo message="########### Create Device Management H2 Schema ###########" />
|
|
|
|
|
<property name="db.dir" value="target/${wso2am}/repository/database" />
|
|
|
|
|
<property name="userid" value="wso2carbon" />
|
|
|
|
|
<property name="password" value="wso2carbon" />
|
|
|
|
|
<property name="dbURL" value="jdbc:h2:file:${basedir}/${db.dir}/WSO2SHARED_DB;DB_CLOSE_ON_EXIT=FALSE" />
|
|
|
|
|
<property name="dbURL" value="jdbc:h2:file:${basedir}/${db.dir}/WSO2SHARED_DB;DB_CLOSE_ON_EXIT=TRUE;LOCK_TIMEOUT=60000" />
|
|
|
|
|
|
|
|
|
|
<sql driver="org.h2.Driver" url="${dbURL}" userid="${userid}" password="${password}" onerror="continue">
|
|
|
|
|
<sql driver="org.h2.Driver" url="${dbURL}" userid="${userid}" password="${password}" autocommit="true" onerror="continue">
|
|
|
|
|
<classpath refid="maven.dependency.classpath" />
|
|
|
|
|
<classpath refid="maven.compile.classpath" />
|
|
|
|
|
<classpath refid="maven.runtime.classpath" />
|
|
|
|
|
|
|
|
|
|
<fileset file="${basedir}/target/${wso2am}/dbscripts/h2.sql" />
|
|
|
|
|
<fileset file="${basedir}/src/core/scripts/alter-h2-db.sql" />
|
|
|
|
|
</sql>
|
|
|
|
|
<echo message="##################### END ####################" />
|
|
|
|
|
</target>
|
|
|
|
|