mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
Fixing start up issues caused by not having proper API management related database schemas available
This commit is contained in:
parent
a4b022edd4
commit
c6cdf85c11
@ -132,6 +132,40 @@
|
|||||||
</tasks>
|
</tasks>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
|
<execution>
|
||||||
|
<!-- Creating API Management schema -->
|
||||||
|
<id>create-api-mgt-schema</id>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>run</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<tasks>
|
||||||
|
<echo
|
||||||
|
message="########### Create API Management H2 Schema ###########"/>
|
||||||
|
|
||||||
|
<property name="db.dir"
|
||||||
|
value="target/wso2carbon-core-${carbon.kernel.version}/repository/database"/>
|
||||||
|
<property name="userid" value="wso2carbon"/>
|
||||||
|
<property name="password" value="wso2carbon"/>
|
||||||
|
<property name="dbURL"
|
||||||
|
value="jdbc:h2:file:${basedir}/${db.dir}/WSO2AM_DB;DB_CLOSE_ON_EXIT=FALSE"/>
|
||||||
|
|
||||||
|
<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}/../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/dbscripts/apimgt/h2.sql"/>
|
||||||
|
</sql>
|
||||||
|
<echo
|
||||||
|
message="##################### END ####################"/>
|
||||||
|
</tasks>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
<execution>
|
<execution>
|
||||||
<id>3-extract-docs-from-components</id>
|
<id>3-extract-docs-from-components</id>
|
||||||
<phase>package</phase>
|
<phase>package</phase>
|
||||||
|
|||||||
@ -187,6 +187,17 @@
|
|||||||
</includes>
|
</includes>
|
||||||
</fileSet>
|
</fileSet>
|
||||||
|
|
||||||
|
<!-- Copying API management related dbscripts -->
|
||||||
|
<fileSet>
|
||||||
|
<directory>
|
||||||
|
../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/dbscripts/apimgt
|
||||||
|
</directory>
|
||||||
|
<outputDirectory>wso2cdm-${project.version}/dbscripts/apimgt</outputDirectory>
|
||||||
|
<includes>
|
||||||
|
<include>*/**</include>
|
||||||
|
</includes>
|
||||||
|
</fileSet>
|
||||||
|
|
||||||
<fileSet>
|
<fileSet>
|
||||||
<directory>
|
<directory>
|
||||||
../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/modules
|
../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/modules
|
||||||
@ -220,6 +231,7 @@
|
|||||||
<fileMode>755</fileMode>
|
<fileMode>755</fileMode>
|
||||||
</fileSet>
|
</fileSet>
|
||||||
</fileSets>
|
</fileSets>
|
||||||
|
|
||||||
<dependencySets>
|
<dependencySets>
|
||||||
<dependencySet>
|
<dependencySet>
|
||||||
<outputDirectory>wso2cdm-${project.version}/lib/endorsed</outputDirectory>
|
<outputDirectory>wso2cdm-${project.version}/lib/endorsed</outputDirectory>
|
||||||
@ -238,7 +250,6 @@
|
|||||||
</dependencySets>
|
</dependencySets>
|
||||||
|
|
||||||
<files>
|
<files>
|
||||||
|
|
||||||
<file>
|
<file>
|
||||||
<source>../agents/android/jax-rs/target/cdm-android-api.war</source>
|
<source>../agents/android/jax-rs/target/cdm-android-api.war</source>
|
||||||
<outputDirectory>wso2cdm-${pom.version}/repository/deployment/server/webapps
|
<outputDirectory>wso2cdm-${pom.version}/repository/deployment/server/webapps
|
||||||
@ -429,6 +440,15 @@
|
|||||||
<fileMode>644</fileMode>
|
<fileMode>644</fileMode>
|
||||||
</file>
|
</file>
|
||||||
|
|
||||||
|
<!-- Copying H2 database related files corresponding to default API management repository schema -->
|
||||||
|
<file>
|
||||||
|
<source>
|
||||||
|
../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/database/WSO2AM_DB.h2.db
|
||||||
|
</source>
|
||||||
|
<outputDirectory>${pom.artifactId}-${pom.version}/repository/database</outputDirectory>
|
||||||
|
<destName>WSO2AM_DB.h2.db</destName>
|
||||||
|
<fileMode>644</fileMode>
|
||||||
|
</file>
|
||||||
|
|
||||||
</files>
|
</files>
|
||||||
</assembly>
|
</assembly>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user