|
|
@ -17,20 +17,18 @@
|
|
|
|
~ under the License.
|
|
|
|
~ under the License.
|
|
|
|
-->
|
|
|
|
-->
|
|
|
|
|
|
|
|
|
|
|
|
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
<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="http://maven.apache.org/POM/4.0.0"
|
|
|
|
|
|
|
|
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.iot</groupId>
|
|
|
|
<groupId>org.wso2.iot</groupId>
|
|
|
|
<artifactId>wso2iot-parent</artifactId>
|
|
|
|
<artifactId>wso2iot-parent</artifactId>
|
|
|
|
<version>1.0.0-SNAPSHOT</version>
|
|
|
|
<version>1.0.0-alpha</version>
|
|
|
|
<relativePath>../../pom.xml</relativePath>
|
|
|
|
<relativePath>../../pom.xml</relativePath>
|
|
|
|
</parent>
|
|
|
|
</parent>
|
|
|
|
|
|
|
|
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<artifactId>wso2iots</artifactId>
|
|
|
|
<artifactId>wso2iots</artifactId>
|
|
|
|
<version>1.0.0-SNAPSHOT</version>
|
|
|
|
<version>1.0.0-alpha</version>
|
|
|
|
<packaging>pom</packaging>
|
|
|
|
<packaging>pom</packaging>
|
|
|
|
<name>WSO2 IoT Server - Distribution</name>
|
|
|
|
<name>WSO2 IoT Server - Distribution</name>
|
|
|
|
<description>WSO2 IoT Server Distribution</description>
|
|
|
|
<description>WSO2 IoT Server Distribution</description>
|
|
|
@ -106,26 +104,21 @@
|
|
|
|
</goals>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<configuration>
|
|
|
|
<tasks>
|
|
|
|
<tasks>
|
|
|
|
<echo message="########### Create Device Management H2 Schema ###########"/>
|
|
|
|
<echo 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" url="${dbURL}" userid="${userid}"
|
|
|
|
<sql driver="org.h2.Driver" url="${dbURL}" userid="${userid}" password="${password}" autocommit="true" onerror="continue">
|
|
|
|
password="${password}"
|
|
|
|
<classpath refid="maven.dependency.classpath" />
|
|
|
|
autocommit="true" onerror="continue">
|
|
|
|
<classpath refid="maven.compile.classpath" />
|
|
|
|
<classpath refid="maven.dependency.classpath"/>
|
|
|
|
<classpath refid="maven.runtime.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 message="##################### END ####################"/>
|
|
|
|
<echo message="##################### END ####################" />
|
|
|
|
</tasks>
|
|
|
|
</tasks>
|
|
|
|
</configuration>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</execution>
|
|
|
@ -138,26 +131,21 @@
|
|
|
|
</goals>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<configuration>
|
|
|
|
<tasks>
|
|
|
|
<tasks>
|
|
|
|
<echo message="########### Create API Management H2 Schema ###########"/>
|
|
|
|
<echo 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" url="${dbURL}" userid="${userid}"
|
|
|
|
<sql driver="org.h2.Driver" url="${dbURL}" userid="${userid}" password="${password}" autocommit="true" onerror="continue">
|
|
|
|
password="${password}"
|
|
|
|
<classpath refid="maven.dependency.classpath" />
|
|
|
|
autocommit="true" onerror="continue">
|
|
|
|
<classpath refid="maven.compile.classpath" />
|
|
|
|
<classpath refid="maven.dependency.classpath"/>
|
|
|
|
<classpath refid="maven.runtime.classpath" />
|
|
|
|
<classpath refid="maven.compile.classpath"/>
|
|
|
|
|
|
|
|
<classpath refid="maven.runtime.classpath"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<fileset
|
|
|
|
<fileset file="${basedir}/src/repository/resources/dbscripts/apimgt/h2.sql" />
|
|
|
|
file="${basedir}/src/repository/resources/dbscripts/apimgt/h2.sql"/>
|
|
|
|
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
<echo message="##################### END ####################"/>
|
|
|
|
<echo message="##################### END ####################" />
|
|
|
|
</tasks>
|
|
|
|
</tasks>
|
|
|
|
</configuration>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</execution>
|
|
|
@ -169,23 +157,21 @@
|
|
|
|
</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}/${project.artifactId}-${project.version}/repository/components"/>
|
|
|
|
<mkdir dir="${tempdir}/${project.artifactId}-${project.version}/repository/components" />
|
|
|
|
<mkdir dir="${tempdir}/${project.artifactId}-${project.version}/repository/deployment/server"/>
|
|
|
|
<mkdir dir="${tempdir}/${project.artifactId}-${project.version}/repository/deployment/server" />
|
|
|
|
<mkdir dir="${tempdir}/${project.artifactId}-${project.version}/repository/deployment/server/webapps"/>
|
|
|
|
<mkdir dir="${tempdir}/${project.artifactId}-${project.version}/repository/deployment/server/webapps" />
|
|
|
|
<unzip dest="${tempdir}">
|
|
|
|
<unzip dest="${tempdir}">
|
|
|
|
<fileset dir="target">
|
|
|
|
<fileset dir="target">
|
|
|
|
<include name="${project.artifactId}-${project.version}.zip"/>
|
|
|
|
<include name="${project.artifactId}-${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}/${project.artifactId}-${project.version}/repository/components" />
|
|
|
|
<fileset
|
|
|
|
|
|
|
|
dir="${tempdir}/${project.artifactId}-${project.version}/repository/components"/>
|
|
|
|
|
|
|
|
</copy>
|
|
|
|
</copy>
|
|
|
|
<!--testing -->
|
|
|
|
<!--testing -->
|
|
|
|
<!--<unzip src="target/shindig/WEB-INF/lib/shindig-common-${shindig.version}.jar" dest="${jardir}/shindig-common-${shindig.version}">
|
|
|
|
<!--<unzip src="target/shindig/WEB-INF/lib/shindig-common-${shindig.version}.jar" dest="${jardir}/shindig-common-${shindig.version}">
|
|
|
@ -206,8 +192,8 @@ d <exclude name="**/shindig.properties" /
|
|
|
|
og4j.logger.net.sf.ehcache=ERROR
|
|
|
|
og4j.logger.net.sf.ehcache=ERROR
|
|
|
|
</concat>
|
|
|
|
</concat>
|
|
|
|
|
|
|
|
|
|
|
|
<delete file="target/${project.artifactId}-${project.version}.zip"/>
|
|
|
|
<delete file="target/${project.artifactId}-${project.version}.zip" />
|
|
|
|
<delete dir="${tempdir}"/>
|
|
|
|
<delete dir="${tempdir}" />
|
|
|
|
</tasks>
|
|
|
|
</tasks>
|
|
|
|
</configuration>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</execution>
|
|
|
@ -217,33 +203,31 @@ d <exclude name="**/shindig.properties" /
|
|
|
|
<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" />
|
|
|
|
|
|
|
|
|
|
|
|
<!--Make samples directory for distribution-->
|
|
|
|
<!--Make samples directory for distribution-->
|
|
|
|
<mkdir dir="target/wso2carbon-core-${carbon.kernel.version}/samples"/>
|
|
|
|
<mkdir dir="target/wso2carbon-core-${carbon.kernel.version}/samples" />
|
|
|
|
|
|
|
|
|
|
|
|
<!--Copy samples to distribution-->
|
|
|
|
<!--Copy samples to distribution-->
|
|
|
|
<copy todir="target/wso2carbon-core-${carbon.kernel.version}/samples"
|
|
|
|
<copy todir="target/wso2carbon-core-${carbon.kernel.version}/samples" overwrite="true">
|
|
|
|
overwrite="true">
|
|
|
|
|
|
|
|
<fileset dir="../samples">
|
|
|
|
<fileset dir="../samples">
|
|
|
|
<exclude name="**/*.iml"/>
|
|
|
|
<exclude name="**/*.iml" />
|
|
|
|
<exclude name="**/.DS_Store"/>
|
|
|
|
<exclude name="**/.DS_Store" />
|
|
|
|
<exclude name="**/target/"/>
|
|
|
|
<exclude name="**/target/" />
|
|
|
|
<exclude name="**/currentsensor/**"/>
|
|
|
|
<exclude name="**/currentsensor/**" />
|
|
|
|
<exclude name="**/digitaldisplay/**"/>
|
|
|
|
<exclude name="**/digitaldisplay/**" />
|
|
|
|
<exclude name="**/doormanager/**"/>
|
|
|
|
<exclude name="**/doormanager/**" />
|
|
|
|
<exclude name="**/droneanalyzer/**"/>
|
|
|
|
<exclude name="**/droneanalyzer/**" />
|
|
|
|
<exclude name="**/firealarm/**"/>
|
|
|
|
<exclude name="**/firealarm/**" />
|
|
|
|
<exclude name="**/installer/**"/>
|
|
|
|
<exclude name="**/installer/**" />
|
|
|
|
</fileset>
|
|
|
|
</fileset>
|
|
|
|
</copy>
|
|
|
|
</copy>
|
|
|
|
|
|
|
|
|
|
|
|
<copy todir="target/wso2carbon-core-${carbon.kernel.version}/"
|
|
|
|
<copy todir="target/wso2carbon-core-${carbon.kernel.version}/" overwrite="true">
|
|
|
|
overwrite="true">
|
|
|
|
|
|
|
|
<fileset dir="../samples/installer/">
|
|
|
|
<fileset dir="../samples/installer/">
|
|
|
|
<exclude name="**/*.iml"/>
|
|
|
|
<exclude name="**/*.iml" />
|
|
|
|
<exclude name="**/.DS_Store"/>
|
|
|
|
<exclude name="**/.DS_Store" />
|
|
|
|
<exclude name="**/target/"/>
|
|
|
|
<exclude name="**/target/" />
|
|
|
|
</fileset>
|
|
|
|
</fileset>
|
|
|
|
</copy>
|
|
|
|
</copy>
|
|
|
|
|
|
|
|
|
|
|
@ -269,20 +253,20 @@ d <exclude name="**/shindig.properties" /
|
|
|
|
<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/${project.artifactId}-${project.version}.jar"/>
|
|
|
|
<delete file="target/${project.artifactId}-${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>
|
|
|
|