|
|
|
@ -108,6 +108,33 @@
|
|
|
|
|
</target>
|
|
|
|
|
</configuration>
|
|
|
|
|
</execution>
|
|
|
|
|
<execution>
|
|
|
|
|
<!--Alter shared h2 db -->
|
|
|
|
|
<id>alter-shared-h2-db</id>
|
|
|
|
|
<phase>process-resources</phase>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>run</goal>
|
|
|
|
|
</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" />
|
|
|
|
|
|
|
|
|
|
<sql driver="org.h2.Driver" url="${dbURL}" userid="${userid}" password="${password}" 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" />
|
|
|
|
|
</sql>
|
|
|
|
|
<echo message="##################### END ####################" />
|
|
|
|
|
</target>
|
|
|
|
|
</configuration>
|
|
|
|
|
</execution>
|
|
|
|
|
<execution>
|
|
|
|
|
<!--Creating Device Management schema-->
|
|
|
|
|
<id>create-device-mgt-schema</id>
|
|
|
|
|