|
|
|
@ -148,6 +148,26 @@
|
|
|
|
|
</replacements>
|
|
|
|
|
</configuration>
|
|
|
|
|
</execution>
|
|
|
|
|
|
|
|
|
|
<!-- Replace Consent Mgt Datasource Confgs -->
|
|
|
|
|
<execution>
|
|
|
|
|
<id>replace-for-consent</id>
|
|
|
|
|
<phase>package</phase>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>replace</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
<configuration>
|
|
|
|
|
<file>${basedir}/../p2-profile/iot-core-profile/target/wso2carbon-core-${carbon.kernel.version}/wso2/conf/consent-mgt-config.xml</file>
|
|
|
|
|
<replacements>
|
|
|
|
|
<replacement>
|
|
|
|
|
<xpath>/ConsentManager/DataSource/Name</xpath>
|
|
|
|
|
<token>(jdbc/WSO2CarbonDB)</token>
|
|
|
|
|
<value>jdbc/WSO2AM_DB</value>
|
|
|
|
|
</replacement>
|
|
|
|
|
</replacements>
|
|
|
|
|
</configuration>
|
|
|
|
|
</execution>
|
|
|
|
|
|
|
|
|
|
<!-- Replace Datasource, Scope mpl classes and OAuth callback class in identity.xml -->
|
|
|
|
|
|
|
|
|
|
<!-- Replace the Datasource in the thrift-authentication.xml file -->
|
|
|
|
@ -450,7 +470,33 @@
|
|
|
|
|
</tasks>
|
|
|
|
|
</configuration>
|
|
|
|
|
</execution>
|
|
|
|
|
<execution>
|
|
|
|
|
<!-- Creating API Management schema -->
|
|
|
|
|
<id>create-user-consent-schema</id>
|
|
|
|
|
<phase>package</phase>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>run</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
<configuration>
|
|
|
|
|
<tasks>
|
|
|
|
|
<echo message="########### Create User Consent 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/iot-core-profile/target/wso2carbon-core-${carbon.kernel.version}/dbscripts/consent/h2.sql" />
|
|
|
|
|
</sql>
|
|
|
|
|
<echo message="##################### END ####################" />
|
|
|
|
|
</tasks>
|
|
|
|
|
</configuration>
|
|
|
|
|
</execution>
|
|
|
|
|
<execution>
|
|
|
|
|
<!-- Creating App Management schema -->
|
|
|
|
|
<id>create-app-mgt-schema</id>
|
|
|
|
|