|
|
@ -17,14 +17,12 @@
|
|
|
|
~ under the License.
|
|
|
|
~ under the License.
|
|
|
|
-->
|
|
|
|
-->
|
|
|
|
|
|
|
|
|
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
|
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<parent>
|
|
|
|
<parent>
|
|
|
|
<groupId>org.wso2.cdmserver</groupId>
|
|
|
|
<groupId>org.wso2.cdmserver</groupId>
|
|
|
|
<artifactId>wso2cdmserver-product</artifactId>
|
|
|
|
<artifactId>wso2cdmserver-product</artifactId>
|
|
|
|
<version>1.0.0-SNAPSHOT</version>
|
|
|
|
<version>1.0.0</version>
|
|
|
|
<relativePath>../../pom.xml</relativePath>
|
|
|
|
<relativePath>../../pom.xml</relativePath>
|
|
|
|
</parent>
|
|
|
|
</parent>
|
|
|
|
|
|
|
|
|
|
|
@ -107,29 +105,21 @@
|
|
|
|
</goals>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<configuration>
|
|
|
|
<tasks>
|
|
|
|
<tasks>
|
|
|
|
<echo
|
|
|
|
<echo message="########### Create Device Management H2 Schema ###########" />
|
|
|
|
message="########### Create Device Management H2 Schema ###########"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<property name="db.dir"
|
|
|
|
<property name="db.dir" value="target/wso2carbon-core-${carbon.kernel.version}/repository/database" />
|
|
|
|
value="target/wso2carbon-core-${carbon.kernel.version}/repository/database"/>
|
|
|
|
<property name="userid" value="wso2carbon" />
|
|
|
|
<property name="userid" value="wso2carbon"/>
|
|
|
|
<property name="password" value="wso2carbon" />
|
|
|
|
<property name="password" value="wso2carbon"/>
|
|
|
|
<property name="dbURL" value="jdbc:h2:file:${basedir}/${db.dir}/WSO2DM_DB;DB_CLOSE_ON_EXIT=FALSE" />
|
|
|
|
<property name="dbURL"
|
|
|
|
|
|
|
|
value="jdbc:h2:file:${basedir}/${db.dir}/WSO2DM_DB;DB_CLOSE_ON_EXIT=FALSE"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<sql driver="org.h2.Driver"
|
|
|
|
<sql driver="org.h2.Driver" url="${dbURL}" userid="${userid}" password="${password}" autocommit="true" onerror="continue">
|
|
|
|
url="${dbURL}"
|
|
|
|
<classpath refid="maven.dependency.classpath" />
|
|
|
|
userid="${userid}" password="${password}"
|
|
|
|
<classpath refid="maven.compile.classpath" />
|
|
|
|
autocommit="true" onerror="continue">
|
|
|
|
<classpath refid="maven.runtime.classpath" />
|
|
|
|
<classpath refid="maven.dependency.classpath"/>
|
|
|
|
|
|
|
|
<classpath refid="maven.compile.classpath"/>
|
|
|
|
|
|
|
|
<classpath refid="maven.runtime.classpath"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<fileset
|
|
|
|
<fileset file="${basedir}/../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/dbscripts/cdm/h2.sql" />
|
|
|
|
file="${basedir}/../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/dbscripts/cdm/h2.sql"/>
|
|
|
|
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
<echo
|
|
|
|
<echo message="##################### END ####################" />
|
|
|
|
message="##################### END ####################"/>
|
|
|
|
|
|
|
|
</tasks>
|
|
|
|
</tasks>
|
|
|
|
</configuration>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</execution>
|
|
|
@ -142,29 +132,23 @@
|
|
|
|
</goals>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<configuration>
|
|
|
|
<tasks>
|
|
|
|
<tasks>
|
|
|
|
<echo
|
|
|
|
<echo message="########### Create IDP Management H2 Schema ###########" />
|
|
|
|
message="########### Create IDP Management H2 Schema ###########"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<property name="db.dir"
|
|
|
|
<property name="db.dir" value="target/wso2carbon-core-${carbon.kernel.version}/repository/database" />
|
|
|
|
value="target/wso2carbon-core-${carbon.kernel.version}/repository/database"/>
|
|
|
|
<property name="userid" value="wso2carbon" />
|
|
|
|
<property name="userid" value="wso2carbon"/>
|
|
|
|
<property name="password" value="wso2carbon" />
|
|
|
|
<property name="password" value="wso2carbon"/>
|
|
|
|
<property name="dbURL" value="jdbc:h2:file:${basedir}/${db.dir}/WSO2CARBON_DB;DB_CLOSE_ON_EXIT=FALSE" />
|
|
|
|
<property name="dbURL"
|
|
|
|
|
|
|
|
value="jdbc:h2:file:${basedir}/${db.dir}/WSO2CARBON_DB;DB_CLOSE_ON_EXIT=FALSE"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<sql driver="org.h2.Driver"
|
|
|
|
<sql driver="org.h2.Driver" url="${dbURL}"
|
|
|
|
url="${dbURL}"
|
|
|
|
|
|
|
|
userid="${userid}" password="${password}"
|
|
|
|
userid="${userid}" password="${password}"
|
|
|
|
autocommit="true" onerror="continue">
|
|
|
|
autocommit="true" onerror="continue">
|
|
|
|
<classpath refid="maven.dependency.classpath"/>
|
|
|
|
<classpath refid="maven.dependency.classpath" />
|
|
|
|
<classpath refid="maven.compile.classpath"/>
|
|
|
|
<classpath refid="maven.compile.classpath" />
|
|
|
|
<classpath refid="maven.runtime.classpath"/>
|
|
|
|
<classpath refid="maven.runtime.classpath" />
|
|
|
|
|
|
|
|
|
|
|
|
<fileset
|
|
|
|
<fileset file="${basedir}/../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/dbscripts/identity/application-mgt/h2.sql" />
|
|
|
|
file="${basedir}/../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/dbscripts/identity/application-mgt/h2.sql"/>
|
|
|
|
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
<echo
|
|
|
|
<echo message="##################### END ####################" />
|
|
|
|
message="##################### END ####################"/>
|
|
|
|
|
|
|
|
</tasks>
|
|
|
|
</tasks>
|
|
|
|
</configuration>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</execution>
|
|
|
@ -177,29 +161,23 @@
|
|
|
|
</goals>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<configuration>
|
|
|
|
<tasks>
|
|
|
|
<tasks>
|
|
|
|
<echo
|
|
|
|
<echo message="########### Create API Management H2 Schema ###########" />
|
|
|
|
message="########### Create API Management H2 Schema ###########"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<property name="db.dir"
|
|
|
|
<property name="db.dir" value="target/wso2carbon-core-${carbon.kernel.version}/repository/database" />
|
|
|
|
value="target/wso2carbon-core-${carbon.kernel.version}/repository/database"/>
|
|
|
|
<property name="userid" value="wso2carbon" />
|
|
|
|
<property name="userid" value="wso2carbon"/>
|
|
|
|
<property name="password" value="wso2carbon" />
|
|
|
|
<property name="password" value="wso2carbon"/>
|
|
|
|
<property name="dbURL" value="jdbc:h2:file:${basedir}/${db.dir}/WSO2AM_DB;DB_CLOSE_ON_EXIT=FALSE" />
|
|
|
|
<property name="dbURL"
|
|
|
|
|
|
|
|
value="jdbc:h2:file:${basedir}/${db.dir}/WSO2AM_DB;DB_CLOSE_ON_EXIT=FALSE"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<sql driver="org.h2.Driver"
|
|
|
|
<sql driver="org.h2.Driver" url="${dbURL}"
|
|
|
|
url="${dbURL}"
|
|
|
|
|
|
|
|
userid="${userid}" password="${password}"
|
|
|
|
userid="${userid}" password="${password}"
|
|
|
|
autocommit="true" onerror="continue">
|
|
|
|
autocommit="true" onerror="continue">
|
|
|
|
<classpath refid="maven.dependency.classpath"/>
|
|
|
|
<classpath refid="maven.dependency.classpath" />
|
|
|
|
<classpath refid="maven.compile.classpath"/>
|
|
|
|
<classpath refid="maven.compile.classpath" />
|
|
|
|
<classpath refid="maven.runtime.classpath"/>
|
|
|
|
<classpath refid="maven.runtime.classpath" />
|
|
|
|
|
|
|
|
|
|
|
|
<fileset
|
|
|
|
<fileset file="${basedir}/../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/dbscripts/apimgt/h2.sql" />
|
|
|
|
file="${basedir}/../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/dbscripts/apimgt/h2.sql"/>
|
|
|
|
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
<echo
|
|
|
|
<echo message="##################### END ####################" />
|
|
|
|
message="##################### END ####################"/>
|
|
|
|
|
|
|
|
</tasks>
|
|
|
|
</tasks>
|
|
|
|
</configuration>
|
|
|
|
</configuration>
|
|
|
|
</execution>-->
|
|
|
|
</execution>-->
|
|
|
@ -211,48 +189,42 @@
|
|
|
|
</goals>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<configuration>
|
|
|
|
<tasks>
|
|
|
|
<tasks>
|
|
|
|
<property name="tempdir" value="target/docs-temp"/>
|
|
|
|
<property name="tempdir" value="target/docs-temp" />
|
|
|
|
<property name="jardir" value="target/jars"/>
|
|
|
|
<property name="jardir" value="target/jars" />
|
|
|
|
<!--<property name="shindig.version" value="2.5.0-beta5"/>-->
|
|
|
|
<!--<property name="shindig.version" value="2.5.0-beta5" />-->
|
|
|
|
|
|
|
|
|
|
|
|
<mkdir dir="${tempdir}"/>
|
|
|
|
<mkdir dir="${tempdir}" />
|
|
|
|
<mkdir dir="${tempdir}/wso2cdm-${project.version}/repository/components"/>
|
|
|
|
<mkdir dir="${tempdir}/wso2cdm-${project.version}/repository/components" />
|
|
|
|
<mkdir dir="${tempdir}/wso2cdm-${project.version}/repository/deployment/server"/>
|
|
|
|
<mkdir dir="${tempdir}/wso2cdm-${project.version}/repository/deployment/server" />
|
|
|
|
<mkdir dir="${tempdir}/wso2cdm-${project.version}/repository/deployment/server/webapps"/>
|
|
|
|
<mkdir dir="${tempdir}/wso2cdm-${project.version}/repository/deployment/server/webapps" />
|
|
|
|
<unzip dest="${tempdir}">
|
|
|
|
<unzip dest="${tempdir}">
|
|
|
|
<fileset dir="target">
|
|
|
|
<fileset dir="target">
|
|
|
|
<include name="wso2cdm-${project.version}.zip"/>
|
|
|
|
<include name="wso2cdm-${project.version}.zip" />
|
|
|
|
</fileset>
|
|
|
|
</fileset>
|
|
|
|
</unzip>
|
|
|
|
</unzip>
|
|
|
|
<copy todir="target/wso2carbon-core-${carbon.kernel.version}/repository/components"
|
|
|
|
<copy todir="target/wso2carbon-core-${carbon.kernel.version}/repository/components" overwrite="true">
|
|
|
|
overwrite="true">
|
|
|
|
<fileset dir="${tempdir}/wso2cdm-${project.version}/repository/components" />
|
|
|
|
<fileset
|
|
|
|
|
|
|
|
dir="${tempdir}/wso2cdm-${project.version}/repository/components"></fileset>
|
|
|
|
|
|
|
|
</copy>
|
|
|
|
</copy>
|
|
|
|
<!--testing -->
|
|
|
|
<!--testing -->
|
|
|
|
<!--<unzip src="target/shindig/WEB-INF/lib/shindig-common-${shindig.version}.jar"
|
|
|
|
<!--<unzip src="target/shindig/WEB-INF/lib/shindig-common-${shindig.version}.jar" dest="${jardir}/shindig-common-${shindig.version}">
|
|
|
|
dest="${jardir}/shindig-common-${shindig.version}">
|
|
|
|
|
|
|
|
<patternset>
|
|
|
|
<patternset>
|
|
|
|
<exclude name="**/shindig.properties"/>
|
|
|
|
<exclude name="**/shindig.properties" />
|
|
|
|
</patternset>
|
|
|
|
</patternset>
|
|
|
|
</unzip>
|
|
|
|
</unzip>
|
|
|
|
<copy file="src/repository/conf/shindig.properties"
|
|
|
|
<copy file="src/repository/conf/shindig.properties" todir="${jardir}/shindig-common-${shindig.version}" />
|
|
|
|
todir="${jardir}/shindig-common-${shindig.version}"/>
|
|
|
|
<delete file="target/shindig/WEB-INF/lib/shindig-common-${shindig.version}.jar" />
|
|
|
|
<delete file="target/shindig/WEB-INF/lib/shindig-common-${shindig.version}.jar"/>
|
|
|
|
<zip destfile="target/shindig/WEB-INF/lib/shindig-common-${shindig.version}.jar" basedir="${jardir}/shindig-common-${shindig.version}" />
|
|
|
|
<zip destfile="target/shindig/WEB-INF/lib/shindig-common-${shindig.version}.jar"
|
|
|
|
|
|
|
|
basedir="${jardir}/shindig-common-${shindig.version}"/>
|
|
|
|
|
|
|
|
<delete>
|
|
|
|
<delete>
|
|
|
|
<fileset dir="target/shindig/WEB-INF/lib" includes="slf4j*"/>
|
|
|
|
<fileset dir="target/shindig/WEB-INF/lib" includes="slf4j*" />
|
|
|
|
</delete>
|
|
|
|
</delete>
|
|
|
|
<copy file="src/repository/resources/shindig/index.jsp"
|
|
|
|
<copy file="src/repository/resources/shindig/index.jsp" todir="target/shindig" />-->
|
|
|
|
todir="target/shindig"/>-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<concat destfile="target/wso2carbon-core-${carbon.kernel.version}/repository/log4j.properties">
|
|
|
|
<concat destfile="target/wso2carbon-core-${carbon.kernel.version}/repository/log4j.properties">
|
|
|
|
og4j.logger.net.sf.ehcache=ERROR
|
|
|
|
og4j.logger.net.sf.ehcache=ERROR
|
|
|
|
</concat>
|
|
|
|
</concat>
|
|
|
|
|
|
|
|
|
|
|
|
<delete file="target/wso2cdm-${project.version}.zip"/>
|
|
|
|
<delete file="target/wso2cdm-${project.version}.zip" />
|
|
|
|
<delete dir="${tempdir}"/>
|
|
|
|
<delete dir="${tempdir}" />
|
|
|
|
</tasks>
|
|
|
|
</tasks>
|
|
|
|
</configuration>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</execution>
|
|
|
@ -261,19 +233,16 @@
|
|
|
|
<phase>package</phase>
|
|
|
|
<phase>package</phase>
|
|
|
|
<configuration>
|
|
|
|
<configuration>
|
|
|
|
<tasks>
|
|
|
|
<tasks>
|
|
|
|
<mkdir dir="target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/webapps"/>
|
|
|
|
<mkdir dir="target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/webapps" />
|
|
|
|
|
|
|
|
|
|
|
|
<!--<copy todir="target/wso2carbon-core-${carbon.kernel.version}/modules"
|
|
|
|
<!--<copy todir="target/wso2carbon-core-${carbon.kernel.version}/modules" overwrite="true">
|
|
|
|
overwrite="true">
|
|
|
|
|
|
|
|
<fileset dir="src/repository/modules"></fileset>
|
|
|
|
<fileset dir="src/repository/modules"></fileset>
|
|
|
|
</copy>
|
|
|
|
</copy>
|
|
|
|
<copy todir="target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/jaggeryapps"
|
|
|
|
<copy todir="target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/jaggeryapps" overwrite="true">
|
|
|
|
overwrite="true">
|
|
|
|
|
|
|
|
<fileset dir="../apps"></fileset>
|
|
|
|
<fileset dir="../apps"></fileset>
|
|
|
|
</copy>
|
|
|
|
</copy>
|
|
|
|
|
|
|
|
|
|
|
|
<copy todir="target/wso2carbon-core-${carbon.kernel.version}/repository/components/plugins"
|
|
|
|
<copy todir="target/wso2carbon-core-${carbon.kernel.version}/repository/components/plugins" overwrite="true">
|
|
|
|
overwrite="true">
|
|
|
|
|
|
|
|
<fileset dir="src/repository/components/patches/apimgt"></fileset>
|
|
|
|
<fileset dir="src/repository/components/patches/apimgt"></fileset>
|
|
|
|
</copy>-->
|
|
|
|
</copy>-->
|
|
|
|
|
|
|
|
|
|
|
@ -288,20 +257,20 @@
|
|
|
|
<phase>install</phase>
|
|
|
|
<phase>install</phase>
|
|
|
|
<configuration>
|
|
|
|
<configuration>
|
|
|
|
<tasks>
|
|
|
|
<tasks>
|
|
|
|
<delete dir="target/jars"/>
|
|
|
|
<delete dir="target/jars" />
|
|
|
|
<delete dir="target/*.xml"/>
|
|
|
|
<delete dir="target/*.xml" />
|
|
|
|
<delete dir="target/archive-tmp"/>
|
|
|
|
<delete dir="target/archive-tmp" />
|
|
|
|
<delete dir="target/dependency-maven-plugin-markers"/>
|
|
|
|
<delete dir="target/dependency-maven-plugin-markers" />
|
|
|
|
<delete dir="target/maven-archiver"/>
|
|
|
|
<delete dir="target/maven-archiver" />
|
|
|
|
<delete dir="target/wso2carbon-core-${carbon.kernel.version}"/>
|
|
|
|
<delete dir="target/wso2carbon-core-${carbon.kernel.version}" />
|
|
|
|
<delete dir="target/wso2carbon-core-${carbon.kernel.version}"/>
|
|
|
|
<delete dir="target/wso2carbon-core-${carbon.kernel.version}" />
|
|
|
|
<delete file="target/wso2cdm-${project.version}.jar"/>
|
|
|
|
<delete file="target/wso2cdm-${project.version}.jar" />
|
|
|
|
<delete dir="target/sources"/>
|
|
|
|
<delete dir="target/sources" />
|
|
|
|
<delete dir="target/site"/>
|
|
|
|
<delete dir="target/site" />
|
|
|
|
<delete dir="target/antrun"/>
|
|
|
|
<delete dir="target/antrun" />
|
|
|
|
<delete dir="src/site"/>
|
|
|
|
<delete dir="src/site" />
|
|
|
|
<!--<delete dir="target/shindig"/>-->
|
|
|
|
<!--<delete dir="target/shindig" />-->
|
|
|
|
<delete dir="target/jaxwebapps"/>
|
|
|
|
<delete dir="target/jaxwebapps" />
|
|
|
|
</tasks>
|
|
|
|
</tasks>
|
|
|
|
</configuration>
|
|
|
|
</configuration>
|
|
|
|
<goals>
|
|
|
|
<goals>
|
|
|
|