diff options
author | takeshi_hoshina <takeshi_hoshina@mail.toyota.co.jp> | 2020-11-02 11:07:33 +0900 |
---|---|---|
committer | takeshi_hoshina <takeshi_hoshina@mail.toyota.co.jp> | 2020-11-02 11:07:33 +0900 |
commit | 1c7d6584a7811b7785ae5c1e378f14b5ba0971cf (patch) | |
tree | cd70a267a5ef105ba32f200aa088e281fbd85747 /external/meta-iot-cloud/recipes-connectivity/kura | |
parent | 4204309872da5cb401cbb2729d9e2d4869a87f42 (diff) |
basesystem-jjsandbox/ToshikazuOhiwa/master-jj
recipes
Diffstat (limited to 'external/meta-iot-cloud/recipes-connectivity/kura')
9 files changed, 2121 insertions, 0 deletions
diff --git a/external/meta-iot-cloud/recipes-connectivity/kura/files/Add-Yocto-build-profile.patch b/external/meta-iot-cloud/recipes-connectivity/kura/files/Add-Yocto-build-profile.patch new file mode 100644 index 00000000..db2f2537 --- /dev/null +++ b/external/meta-iot-cloud/recipes-connectivity/kura/files/Add-Yocto-build-profile.patch @@ -0,0 +1,86 @@ +From bf524fb70a22f17c4cf62133bda14924a9e2e5a3 Mon Sep 17 00:00:00 2001 +From: Scott Ware <scott.r.ware@intel.com> +Date: Wed, 11 Mar 2020 19:19:41 +0000 +Subject: [PATCH 2/3] Add Yocto build profile + +Signed-off-by: Scott Ware <scott.r.ware@intel.com> +--- + kura/distrib/pom.xml | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 63 insertions(+) + +diff --git a/kura/distrib/pom.xml b/kura/distrib/pom.xml +index b016846..3ac57cd 100644 +--- a/kura/distrib/pom.xml ++++ b/kura/distrib/pom.xml +@@ -1001,5 +1001,68 @@ + </dependencies> + + <profiles> ++ ++ <profile> ++ <id>yocto</id> ++ <activation> ++ <activeByDefault>true</activeByDefault> ++ </activation> ++ <build> ++ <resources> ++ <resource> ++ <directory>src/main/resources</directory> ++ <filtering>true</filtering> ++ </resource> ++ </resources> ++ <plugins> ++ <plugin> ++ <groupId>org.codehaus.mojo</groupId> ++ <artifactId>buildnumber-maven-plugin</artifactId> ++ <version>1.0</version> ++ <executions> ++ <execution> ++ <phase>validate</phase> ++ <goals> ++ <goal>create-timestamp</goal> ++ </goals> ++ </execution> ++ </executions> ++ </plugin> ++ <plugin> ++ <groupId>org.apache.maven.plugins</groupId> ++ <artifactId>maven-antrun-plugin</artifactId> ++ <version>1.7</version> ++ <executions> ++ <execution> ++ <id>yocto-jars</id> ++ <phase>prepare-package</phase> ++ <goals> ++ <goal>run</goal> ++ </goals> ++ <configuration> ++ <target> ++ <property name="buildNumber" value="buildNumber" /> ++ <property name="project.version" value="${project.version}" /> ++ <property name="project.build.profile" value="${project.build.profile}" /> ++ <property name="project.build.directory" value="${project.build.directory}" /> ++ <property name="build.name" value="yocto" /> ++ <property name="target.device" value="%MACHINE%" /> ++ <property name="native.tag" value="%ARCH%" /> ++ <property name="kura.os.version" value="%DISTRO%" /> ++ <property name="kura.arch" value="%ARCH%" /> ++ <property name="service.manager" value="%SERVICE_MANAGER%" /> ++ <property name="os.base" value="yocto" /> ++ <property name="kura.mem.size" value="%MEMSIZE%m" /> ++ <property name="kura.install.dir" value="/opt/eclipse" /> ++ <ant antfile="${basedir}/src/main/ant/build_equinox_distrib.xml" target="dist-linux" /> ++ </target> ++ </configuration> ++ </execution> ++ </executions> ++ </plugin> ++ </plugins> ++ </build> ++ </profile> ++ + </profiles> + </project> +-- +2.7.4 + diff --git a/external/meta-iot-cloud/recipes-connectivity/kura/files/Disable-checksum-generation.patch b/external/meta-iot-cloud/recipes-connectivity/kura/files/Disable-checksum-generation.patch new file mode 100644 index 00000000..8e06a7ca --- /dev/null +++ b/external/meta-iot-cloud/recipes-connectivity/kura/files/Disable-checksum-generation.patch @@ -0,0 +1,57 @@ +From 2beb318edac57086d581f932ae6d2e736cd949a5 Mon Sep 17 00:00:00 2001 +From: Scott Ware <scott.r.ware@intel.com> +Date: Thu, 12 Mar 2020 12:18:03 +0000 +Subject: [PATCH 2/2] Disable checksum generation + +Signed-off-by: Scott Ware <scott.r.ware@intel.com> +--- + kura/distrib/pom.xml | 33 --------------------------------- + 1 file changed, 33 deletions(-) + +diff --git a/kura/distrib/pom.xml b/kura/distrib/pom.xml +index 3ac57cd..528656b 100644 +--- a/kura/distrib/pom.xml ++++ b/kura/distrib/pom.xml +@@ -819,39 +819,6 @@ + </target> + </configuration> + </execution> +- <execution> +- <id>calc-checksums</id> +- <phase>install</phase> +- <goals> +- <goal>run</goal> +- </goals> +- <configuration> +- <target> +- <checksum algorithm="md5"> +- <fileset dir="${basedir}/target/"> +- <include name="*.deb" /> +- <include name="*.dp" /> +- <include name="*.zip" /> +- <include name="kura_${project.version}_*.sh" /> +- <include name="kura_${project.version}_*.dp" /> +- <exclude name="kura_${project.version}_*.dp" /> +- <exclude name="kura_${project.version}_*.zip" /> +- </fileset> +- </checksum> +- <checksum algorithm="SHA-1"> +- <fileset dir="${basedir}/target/"> +- <include name="*.deb" /> +- <include name="*.dp" /> +- <include name="*.zip" /> +- <include name="kura_${project.version}_*.sh" /> +- <include name="kura_${project.version}_*.dp" /> +- <exclude name="kura_${project.version}_*.dp" /> +- <exclude name="kura_${project.version}_*.zip" /> +- </fileset> +- </checksum> +- </target> +- </configuration> +- </execution> + </executions> + </plugin> + </plugins> +-- +2.7.4 + diff --git a/external/meta-iot-cloud/recipes-connectivity/kura/files/Fix-equinox-build.patch b/external/meta-iot-cloud/recipes-connectivity/kura/files/Fix-equinox-build.patch new file mode 100644 index 00000000..31e99e55 --- /dev/null +++ b/external/meta-iot-cloud/recipes-connectivity/kura/files/Fix-equinox-build.patch @@ -0,0 +1,192 @@ +From c38a9b9ab749fc32d9e3d5e06f21043a7dc6288d Mon Sep 17 00:00:00 2001 +From: Scott Ware <scott.r.ware@intel.com> +Date: Thu, 12 Mar 2020 10:57:24 +0000 +Subject: [PATCH] Fix equinox build + +Signed-off-by: Scott Ware <scott.r.ware@intel.com> +--- + .../distrib/src/main/ant/build_equinox_distrib.xml | 132 --------------------- + 1 file changed, 132 deletions(-) + +diff --git a/kura/distrib/src/main/ant/build_equinox_distrib.xml b/kura/distrib/src/main/ant/build_equinox_distrib.xml +index 6ef51a6..8985da5 100644 +--- a/kura/distrib/src/main/ant/build_equinox_distrib.xml ++++ b/kura/distrib/src/main/ant/build_equinox_distrib.xml +@@ -391,27 +391,16 @@ fi]]> + </echo> + + <!-- Populate parameters --> +- <copy file="src/main/resources/${build.name}/kura_install.sh" +- tofile="${project.build.directory}/${build.output.name}/kura_install.sh" /> + <copy file="src/main/resources/common/kura.init.yocto" + tofile="${project.build.directory}/${build.output.name}/kura.init.yocto" + failonerror="false" /> +- <copy file="src/main/resources/common/kura.init.raspbian" +- tofile="${project.build.directory}/${build.output.name}/kura.init.raspbian" +- failonerror="false" /> + <copy file="src/main/resources/common/kura.service" + tofile="${project.build.directory}/${build.output.name}/kura.service" + failonerror="false" /> + <replaceregexp +- file="${project.build.directory}/${build.output.name}/kura_install.sh" +- match="INSTALL_DIR=.*" replace="INSTALL_DIR=${kura.install.dir}" /> +- <replaceregexp + file="${project.build.directory}/${build.output.name}/kura.init.yocto" + match="INSTALL_DIR=.*" replace="INSTALL_DIR=${kura.install.dir}" /> + <replaceregexp +- file="${project.build.directory}/${build.output.name}/kura.init.raspbian" +- match="INSTALL_DIR=.*" replace="INSTALL_DIR=${kura.install.dir}" /> +- <replaceregexp + file="${project.build.directory}/${build.output.name}/kura.service" + match="INSTALL_DIR" replace="${kura.install.dir}" /> + +@@ -441,89 +430,11 @@ fi]]> + prefix="${build.output.name}/${user.config.folder}/" /> + + <zipfileset +- file="${project.build.directory}/${build.output.name}/kura_install.sh" +- prefix="${build.output.name}/${install.folder}/" /> +- +- <zipfileset file="src/main/resources/${build.name}/kuranet.conf" +- prefix="${build.output.name}/${install.folder}/" /> +- +- <zipfileset + file="${project.build.directory}/${build.output.name}/kura.init.yocto" + prefix="${build.output.name}/${install.folder}" /> + <zipfileset +- file="${project.build.directory}/${build.output.name}/kura.init.raspbian" +- prefix="${build.output.name}/${install.folder}" /> +- <zipfileset + file="${project.build.directory}/${build.output.name}/kura.service" + prefix="${build.output.name}/${install.folder}" /> +- <zipfileset +- file="src/main/resources/${build.name}/recover_default_config.init" +- prefix="${build.output.name}/${install.folder}" /> +- <zipfileset file="src/main/resources/${build.name}/firewall.init" +- prefix="${build.output.name}/${install.folder}" /> +- <zipfileset file="src/main/resources/${build.name}/iptables.init" +- prefix="${build.output.name}/${install.folder}" /> +- <zipfileset file="src/main/resources/${build.name}/hostapd.conf" +- prefix="${build.output.name}/${install.folder}" /> +- <zipfileset file="src/main/resources/${build.name}/dhcpd-eth0.conf" +- prefix="${build.output.name}/${install.folder}" /> +- <zipfileset file="src/main/resources/${build.name}/dhcpd-wlan0.conf" +- prefix="${build.output.name}/${install.folder}" /> +- <zipfileset file="src/main/resources/${build.name}/dhcpd-enp2s0.conf" +- prefix="${build.output.name}/${install.folder}" /> +- <zipfileset file="src/main/resources/${build.name}/dhcpd-wlp4s0.conf" +- prefix="${build.output.name}/${install.folder}" /> +- <zipfileset file="src/main/resources/${build.name}/ifcfg-enp2s0" +- prefix="${build.output.name}/${install.folder}" /> +- <zipfileset file="src/main/resources/${build.name}/ifcfg-enp3s0" +- prefix="${build.output.name}/${install.folder}" /> +- <zipfileset file="src/main/resources/${build.name}/ifcfg-wlp4s0" +- prefix="${build.output.name}/${install.folder}" /> +- <zipfileset file="src/main/resources/common/monit.init.raspbian" +- prefix="${build.output.name}/${install.folder}" /> +- <zipfileset file="src/main/resources/common/monitrc.raspbian" +- prefix="${build.output.name}/${install.folder}" /> +- <zipfileset file="src/main/resources/${build.name}/kura-tmpfiles.conf" +- prefix="${build.output.name}/${install.folder}" /> +- <zipfileset file="src/main/resources/${build.name}/network.interfaces" +- prefix="${build.output.name}/${install.folder}" /> +- +- +- <zipfileset file="src/main/resources/common/logrotate.conf" +- prefix="${build.output.name}/${install.folder}" /> +- <zipfileset file="src/main/resources/common/kura.logrotate" +- prefix="${build.output.name}/${install.folder}" /> +- +- <zipfileset file="src/main/resources/common/sysctl.kura.conf" +- prefix="${build.output.name}/${install.folder}" /> +- <zipfileset file="src/main/resources/common/sysctl.kura.raspbian.conf" +- prefix="${build.output.name}/${install.folder}" /> +- <zipfileset file="src/main/resources/common/patch_sysctl.sh" +- prefix="${build.output.name}/${install.folder}" /> +- +- <zipfileset file="src/main/resources/common/named/named.conf" +- prefix="${build.output.name}/${install.folder}" /> +- <zipfileset file="src/main/resources/common/named/named.ca" +- prefix="${build.output.name}/${install.folder}" /> +- <zipfileset file="src/main/resources/common/named/named.rfc1912.zones" +- prefix="${build.output.name}/${install.folder}" /> +- <zipfileset file="src/main/resources/common/named/usr.sbin.named" +- prefix="${build.output.name}/${install.folder}" /> +- <zipfileset file="src/main/resources/${build.name}/bind.init" +- prefix="${build.output.name}/${install.folder}" /> +- +- <zipfileset file="src/main/resources/common/ifdown-local" +- prefix="${build.output.name}/${install.folder}" /> +- <zipfileset file="src/main/resources/common/ifup-local" +- prefix="${build.output.name}/${install.folder}" /> +- <zipfileset file="src/main/resources/common/ifup-local.debian" +- prefix="${build.output.name}/${install.folder}" /> +- <zipfileset file="src/main/resources/common/ifup-local.raspbian" +- prefix="${build.output.name}/${install.folder}" /> +- +- <zipfileset +- file="${project.build.directory}/${build.output.name}/selinuxKura.pp" +- prefix="${build.output.name}/${install.folder}" /> + + <zipfileset + file="${project.build.directory}/${build.output.name}/start_kura.sh" +@@ -690,18 +601,6 @@ fi]]> + + <echo message="Building Kura Distribution for ${build.name}-jars..." /> + +- <!-- Create installer script --> +- <echo message="Creating Installer for ${build.name} ${kura.install.dir}" /> +- <exec executable="${project.build.directory}/../src/main/sh/create_installer.sh"> +- <arg value="${project.build.directory}" /> +- <arg value="${build.output.name}.zip" /> +- <arg value="kura_${project.version}_${build.name}_installer.sh" /> +- <arg value="${build.name}" /> +- <arg value="${kura.install.dir}" /> +- </exec> +- +- +- + <!-- Get version information for the bundles/files in this build --> + <echo + message="Gathering version information for the bundles/files in ${build.name}" /> +@@ -712,37 +611,6 @@ fi]]> + <arg value="${build.name}" /> + </exec> + +- +- <!-- Diff with the previous version --> +- <property file="RELEASE_INFO/version.properties" /> +- <echo +- message="Diff version information with ${build.name} version ${kura.project.version.previous}" /> +- <exec executable="src/main/sh/diff_build_versions.sh"> +- <arg +- value="RELEASE_INFO/${kura.project.version.previous}/kura_${kura.project.version.previous}_${build.name}.catalog" /> +- <arg value="${project.build.directory}/${build.output.name}.catalog" /> +- <arg +- value="${project.build.directory}/kura_${kura.project.version.previous}_to_${project.version}_${build.name}" /> +- <arg value="${build.name}" /> +- </exec> +- +- +- <!-- Create upgrader --> +- <echo message="Creating Upgrader for ${build.name}" /> +- <exec executable="${project.build.directory}/../src/main/sh/create_upgrader.sh"> +- <arg value="${project.build.directory}" /> +- <arg value="${project.build.directory}/${build.output.name}.zip" /> +- <arg value="kura_${project.version}_${build.name}_upgrade.zip" /> +- <arg value="KURA_${kura.project.version.previous}" /> +- <arg value="${kura.install.dir}" /> +- <arg value="${build.output.name}" /> +- <arg +- value="kura_${kura.project.version.previous}_to_${project.version}_${build.name}.removed" /> +- <arg +- value="kura_${kura.project.version.previous}_to_${project.version}_${build.name}.keep" /> +- <arg value="${build.output.name}_upgrader.sh" /> +- <arg value="${build.name}" /> +- </exec> + </target> + + <target name="set-http-port" if="http.port"> +-- +2.7.4 + diff --git a/external/meta-iot-cloud/recipes-connectivity/kura/files/Remove-default-build-profiles.patch b/external/meta-iot-cloud/recipes-connectivity/kura/files/Remove-default-build-profiles.patch new file mode 100644 index 00000000..04ad711a --- /dev/null +++ b/external/meta-iot-cloud/recipes-connectivity/kura/files/Remove-default-build-profiles.patch @@ -0,0 +1,1319 @@ +From e6c74effaa51745916c178f6a377174376dfe7eb Mon Sep 17 00:00:00 2001 +From: Scott Ware <scott.r.ware@intel.com> +Date: Wed, 11 Mar 2020 19:16:16 +0000 +Subject: [PATCH 1/3] Remove default build profiles + +Signed-off-by: Scott Ware <scott.r.ware@intel.com> +--- + kura/distrib/pom.xml | 1296 -------------------------------------------------- + 1 file changed, 1296 deletions(-) + +diff --git a/kura/distrib/pom.xml b/kura/distrib/pom.xml +index f237c54..b016846 100644 +--- a/kura/distrib/pom.xml ++++ b/kura/distrib/pom.xml +@@ -1001,1301 +1001,5 @@ + </dependencies> + + <profiles> +- <profile> +- <id>raspberry-pi-2-3</id> +- <properties> +- <project.raspbian.dependencies>hostapd, isc-dhcp-server, iw, dos2unix, bind9, unzip, ethtool, telnet, bluez-hcidump, +- wireless-tools, java8-runtime-headless | java8-runtime</project.raspbian.dependencies> +- </properties> +- <activation> +- <activeByDefault>true</activeByDefault> +- </activation> +- <build> +- <resources> +- <resource> +- <directory>src/main/resources</directory> +- <filtering>true</filtering> +- </resource> +- </resources> +- <plugins> +- <plugin> +- <groupId>org.codehaus.mojo</groupId> +- <artifactId>buildnumber-maven-plugin</artifactId> +- <version>1.0</version> +- <executions> +- <execution> +- <phase>validate</phase> +- <goals> +- <goal>create-timestamp</goal> +- </goals> +- </execution> +- </executions> +- </plugin> +- <plugin> +- <groupId>org.apache.maven.plugins</groupId> +- <artifactId>maven-antrun-plugin</artifactId> +- <version>1.7</version> +- <executions> +- <execution> +- <id>raspberry-pi-2-3-jars</id> +- <phase>prepare-package</phase> +- <goals> +- <goal>run</goal> +- </goals> +- <configuration> +- <target> +- <property name="buildNumber" value="buildNumber" /> +- <property name="project.version" value="${project.version}" /> +- <property name="project.build.profile" value="${project.build.profile}" /> +- <property name="project.build.directory" value="${project.build.directory}" /> +- <property name="build.name" value="raspberry-pi-2" /> +- <property name="target.device" value="raspberry-pi-2" /> +- <property name="native.tag" value="armv6hf" /> +- <property name="kura.os.version" value="raspbian" /> +- <property name="kura.arch" value="armv7_hf" /> +- <property name="service.manager" value="sysv" /> +- <property name="os.base" value="debian" /> +- <property name="kura.mem.size" value="512m" /> +- <property name="kura.install.dir" value="/opt/eclipse" /> +- <ant antfile="${basedir}/src/main/ant/build_equinox_distrib.xml" target="dist-linux" /> +- </target> +- </configuration> +- </execution> +- </executions> +- </plugin> +- <plugin> +- <groupId>org.vafer</groupId> +- <artifactId>jdeb</artifactId> +- <version>1.0</version> +- <executions> +- <execution> +- <id>raspberry-pi-2-3-deb</id> +- <phase>package</phase> +- <goals> +- <goal>jdeb</goal> +- </goals> +- <configuration> +- <verbose>true</verbose> +- <deb>${basedir}/target/kura_${project.version}_raspberry-pi-2-3_installer.deb</deb> +- <controlDir>${basedir}/src/main/deb/control</controlDir> +- <dataSet> +- <data> +- <src>${basedir}/target/kura_${project.version}_raspberry-pi-2.zip</src> +- <type>file</type> +- <mapper> +- <type>perm</type> +- <prefix>/tmp</prefix> +- </mapper> +- </data> +- </dataSet> +- </configuration> +- </execution> +- </executions> +- </plugin> +- </plugins> +- </build> +- </profile> +- +- <profile> +- <id>raspberry-pi-2-3-nn</id> +- <properties> +- <project.raspbian.dependencies.nn>dos2unix, unzip, telnet, bluez-hcidump, java8-runtime-headless | java8-runtime</project.raspbian.dependencies.nn> +- </properties> +- <activation> +- <activeByDefault>true</activeByDefault> +- </activation> +- <build> +- <resources> +- <resource> +- <directory>src/main/resources</directory> +- <filtering>true</filtering> +- </resource> +- </resources> +- <plugins> +- <plugin> +- <groupId>org.codehaus.mojo</groupId> +- <artifactId>buildnumber-maven-plugin</artifactId> +- <version>1.0</version> +- <executions> +- <execution> +- <phase>validate</phase> +- <goals> +- <goal>create-timestamp</goal> +- </goals> +- </execution> +- </executions> +- </plugin> +- <plugin> +- <groupId>org.apache.maven.plugins</groupId> +- <artifactId>maven-antrun-plugin</artifactId> +- <version>1.7</version> +- <executions> +- <execution> +- <id>raspberry-pi-2-3-nn-jars</id> +- <phase>prepare-package</phase> +- <goals> +- <goal>run</goal> +- </goals> +- <configuration> +- <target> +- <property name="buildNumber" value="buildNumber" /> +- <property name="project.version" value="${project.version}" /> +- <property name="project.build.profile" value="${project.build.profile}" /> +- <property name="project.build.directory" value="${project.build.directory}" /> +- <property name="build.name" value="raspberry-pi-2-nn" /> +- <property name="target.device" value="raspberry-pi-2-nn" /> +- <property name="native.tag" value="armv6hf" /> +- <property name="kura.os.version" value="raspbian" /> +- <property name="kura.arch" value="armv7_hf" /> +- <property name="service.manager" value="sysv" /> +- <property name="os.base" value="debian" /> +- <property name="kura.mem.size" value="512m" /> +- <property name="kura.install.dir" value="/opt/eclipse" /> +- <ant antfile="${basedir}/src/main/ant/build_equinox_distrib.xml" target="dist-linux" /> +- </target> +- </configuration> +- </execution> +- </executions> +- </plugin> +- <plugin> +- <groupId>org.vafer</groupId> +- <artifactId>jdeb</artifactId> +- <version>1.0</version> +- <executions> +- <execution> +- <id>raspberry-pi-2-3-nn-deb</id> +- <phase>package</phase> +- <goals> +- <goal>jdeb</goal> +- </goals> +- <configuration> +- <verbose>true</verbose> +- <deb>${basedir}/target/kura_${project.version}_raspberry-pi-2-3-nn_installer.deb</deb> +- <controlDir>${basedir}/src/main/deb/control_nn</controlDir> +- <dataSet> +- <data> +- <src>${basedir}/target/kura_${project.version}_raspberry-pi-2-nn.zip</src> +- <type>file</type> +- <mapper> +- <type>perm</type> +- <prefix>/tmp</prefix> +- </mapper> +- </data> +- </dataSet> +- </configuration> +- </execution> +- </executions> +- </plugin> +- </plugins> +- </build> +- </profile> +- <profile> +- <id>intel-up2-ubuntu-18</id> +- <properties> +- <project.raspbian.dependencies>hostapd, isc-dhcp-server, iw, dos2unix, bind9, unzip, ethtool, telnet, bluez-hcidump, +- wireless-tools, java8-runtime-headless | java8-runtime</project.raspbian.dependencies> +- </properties> +- <activation> +- <activeByDefault>true</activeByDefault> +- </activation> +- <build> +- <resources> +- <resource> +- <directory>src/main/resources</directory> +- <filtering>true</filtering> +- </resource> +- </resources> +- <plugins> +- <plugin> +- <groupId>org.codehaus.mojo</groupId> +- <artifactId>buildnumber-maven-plugin</artifactId> +- <version>1.0</version> +- <executions> +- <execution> +- <phase>validate</phase> +- <goals> +- <goal>create-timestamp</goal> +- </goals> +- </execution> +- </executions> +- </plugin> +- <plugin> +- <groupId>org.apache.maven.plugins</groupId> +- <artifactId>maven-antrun-plugin</artifactId> +- <version>1.7</version> +- <executions> +- <execution> +- <id>intel-up2-ubuntu-jars</id> +- <phase>prepare-package</phase> +- <goals> +- <goal>run</goal> +- </goals> +- <configuration> +- <target> +- <property name="buildNumber" value="buildNumber" /> +- <property name="project.version" value="${project.version}" /> +- <property name="project.build.profile" value="${project.build.profile}" /> +- <property name="project.build.directory" value="${project.build.directory}" /> +- <property name="build.name" value="intel-up2-ubuntu-18" /> +- <property name="target.device" value="intel-up2" /> +- <property name="native.tag" value="x86_64" /> +- <property name="kura.os.version" value="ubuntu" /> +- <property name="kura.arch" value="intel-up2-ubuntu-18" /> +- <property name="service.manager" value="sysv" /> +- <property name="os.base" value="debian" /> +- <property name="kura.mem.size" value="1024m" /> +- <property name="kura.install.dir" value="/opt/eclipse" /> +- <ant antfile="${basedir}/src/main/ant/build_equinox_distrib.xml" target="dist-linux" /> +- </target> +- </configuration> +- </execution> +- </executions> +- </plugin> +- <plugin> +- <groupId>org.vafer</groupId> +- <artifactId>jdeb</artifactId> +- <version>1.0</version> +- <executions> +- <execution> +- <id>intel-up2-ubuntu-deb</id> +- <phase>package</phase> +- <goals> +- <goal>jdeb</goal> +- </goals> +- <configuration> +- <verbose>true</verbose> +- <deb>${basedir}/target/kura_${project.version}_intel-up2-ubuntu-18_installer.deb</deb> +- <controlDir>${basedir}/src/main/deb/control</controlDir> +- <dataSet> +- <data> +- <src>${basedir}/target/kura_${project.version}_intel-up2-ubuntu-18.zip</src> +- <type>file</type> +- <mapper> +- <type>perm</type> +- <prefix>/tmp</prefix> +- </mapper> +- </data> +- </dataSet> +- </configuration> +- </execution> +- </executions> +- </plugin> +- </plugins> +- </build> +- </profile> +- +- <profile> +- <id>intel-up2-centos-7</id> +- <activation> +- <activeByDefault>true</activeByDefault> +- </activation> +- <build> +- <resources> +- <resource> +- <directory>src/main/resources</directory> +- <filtering>true</filtering> +- </resource> +- </resources> +- <plugins> +- <plugin> +- <groupId>org.codehaus.mojo</groupId> +- <artifactId>buildnumber-maven-plugin</artifactId> +- <version>1.0</version> +- <executions> +- <execution> +- <phase>validate</phase> +- <goals> +- <goal>create-timestamp</goal> +- </goals> +- </execution> +- </executions> +- </plugin> +- <plugin> +- <groupId>org.apache.maven.plugins</groupId> +- <artifactId>maven-antrun-plugin</artifactId> +- <version>1.7</version> +- <executions> +- <execution> +- <id>intel-up2-centos-7-jars</id> +- <phase>prepare-package</phase> +- <goals> +- <goal>run</goal> +- </goals> +- <configuration> +- <target> +- <property name="buildNumber" value="buildNumber" /> +- <property name="project.version" value="${project.version}" /> +- <property name="project.build.profile" value="${project.build.profile}" /> +- <property name="project.build.directory" value="${project.build.directory}" /> +- <property name="build.name" value="intel-up2-centos-7" /> +- <property name="target.device" value="intel-up2" /> +- <property name="native.tag" value="x86_64" /> +- <property name="kura.os.version" value="centos" /> +- <property name="kura.arch" value="intel-up2-centos-7" /> +- <property name="service.manager" value="systemd" /> +- <property name="os.base" value="redhat" /> +- <property name="kura.mem.size" value="1024m" /> +- <property name="kura.install.dir" value="/opt/eclipse" /> +- <ant antfile="${basedir}/src/main/ant/build_equinox_distrib.xml" target="dist-linux" /> +- </target> +- </configuration> +- </execution> +- </executions> +- </plugin> +- <plugin> +- <groupId>de.dentrassi.maven</groupId> +- <artifactId>rpm</artifactId> +- <executions> +- <execution> +- <id>intel-up2-centos-7-rpm</id> +- <phase>package</phase> +- <goals> +- <goal>rpm</goal> +- </goals> +- <configuration> +- <packageName>kura-intel-up2-centos-7</packageName> +- <attach>true</attach> +- <group>Application/Misc</group> +- <license>EPL 1.0</license> +- <architecture>x86_64</architecture> +- <prerequisites> +- <prerequisite>bash</prerequisite> +- <prerequisite>sed</prerequisite> +- <prerequisite>which</prerequisite> +- <prerequisite>policycoreutils</prerequisite> +- </prerequisites> +- <requires> +- <require>java</require> +- <require>setserial</require> +- <require>iptables</require> +- <require>iptables-services</require> +- <require>openssl</require> +- <require>openssh</require> +- <require>procps</require> +- <require>iw</require> +- <require>wireless-tools</require> +- <require>bind</require> +- <require>openvpn</require> +- <require>ppp</require> +- <require>dhcp</require> +- <require>dhclient</require> +- <require>net-tools</require> +- <require>hostapd</require> +- <require>wpa_supplicant</require> +- <require>gzip</require> +- <require>cronie</require> +- <require>logrotate</require> +- <require>telnet</require> +- <require>bluez</require> +- <require>socat</require> +- <require>usbutils</require> +- <require>iproute</require> +- <require>unzip</require> +- <require>psmisc</require> +- <require>tar</require> +- <require>dos2unix</require> +- <require>net-tools</require> +- </requires> +- <entries> +- <entry> +- <name>/tmp/kura_${project.version}_installer.sh</name> +- <file>${project.build.directory}/kura_${project.version}_intel-up2-centos-7_installer.sh</file> +- <user>root</user> +- <group>root</group> +- <mode>0755</mode> +- </entry> +- </entries> +- <afterInstallation> +- <script>/tmp/kura_${project.version}_installer.sh</script> +- </afterInstallation> +- <beforeRemoval> +- <script> +- systemctl stop kura +- systemctl disable kura +- rm -f /usr/lib/systemd/system/kura.service +- systemctl daemon-reload +- systemctl reset-failed +- +- rm -f /etc/logrotate.d/kura +- rm -f /var/log/kura*.log +- rm -rf /tmp/.kura +- rm -rf /tmp/kura +- +- if [ -d "${kura.install.link}" ] ; then +- PARENT=`readlink -f ${kura.install.link}` +- rm -rf ${kura.install.link} +- rm -rf $PARENT +- fi +- </script> +- </beforeRemoval> +- <skipSigning>true</skipSigning> +- </configuration> +- </execution> +- </executions> +- </plugin> +- </plugins> +- </build> +- </profile> +- +- <profile> +- <id>intel-up2-centos-7-nn</id> +- <activation> +- <activeByDefault>true</activeByDefault> +- </activation> +- <build> +- <resources> +- <resource> +- <directory>src/main/resources</directory> +- <filtering>true</filtering> +- </resource> +- </resources> +- <plugins> +- <plugin> +- <groupId>org.codehaus.mojo</groupId> +- <artifactId>buildnumber-maven-plugin</artifactId> +- <version>1.0</version> +- <executions> +- <execution> +- <phase>validate</phase> +- <goals> +- <goal>create-timestamp</goal> +- </goals> +- </execution> +- </executions> +- </plugin> +- <plugin> +- <groupId>org.apache.maven.plugins</groupId> +- <artifactId>maven-antrun-plugin</artifactId> +- <version>1.7</version> +- <executions> +- <execution> +- <id>intel-up2-centos-7-nn-jars</id> +- <phase>prepare-package</phase> +- <goals> +- <goal>run</goal> +- </goals> +- <configuration> +- <target> +- <property name="buildNumber" value="buildNumber" /> +- <property name="project.version" value="${project.version}" /> +- <property name="project.build.profile" value="${project.build.profile}" /> +- <property name="project.build.directory" value="${project.build.directory}" /> +- <property name="build.name" value="intel-up2-centos-7-nn" /> +- <property name="target.device" value="intel-up2-nn" /> +- <property name="native.tag" value="x86_64" /> +- <property name="kura.os.version" value="centos" /> +- <property name="kura.arch" value="intel-up2-centos-7" /> +- <property name="service.manager" value="systemd" /> +- <property name="os.base" value="redhat" /> +- <property name="kura.mem.size" value="1024m" /> +- <property name="kura.install.dir" value="/opt/eclipse" /> +- <ant antfile="${basedir}/src/main/ant/build_equinox_distrib.xml" target="dist-linux" /> +- </target> +- </configuration> +- </execution> +- </executions> +- </plugin> +- <plugin> +- <groupId>de.dentrassi.maven</groupId> +- <artifactId>rpm</artifactId> +- <executions> +- <execution> +- <id>intel-up2-centos-7-nn-rpm</id> +- <phase>package</phase> +- <goals> +- <goal>rpm</goal> +- </goals> +- <configuration> +- <packageName>kura-intel-up2-centos-7-nn</packageName> +- <attach>true</attach> +- <group>Application/Misc</group> +- <license>EPL 1.0</license> +- <architecture>x86_64</architecture> +- <prerequisites> +- <prerequisite>bash</prerequisite> +- <prerequisite>sed</prerequisite> +- <prerequisite>which</prerequisite> +- </prerequisites> +- <requires> +- <require>java</require> +- <require>setserial</require> +- <require>iptables</require> +- <require>iptables-services</require> +- <require>openssl</require> +- <require>openssh</require> +- <require>procps</require> +- <require>gzip</require> +- <require>cronie</require> +- <require>logrotate</require> +- <require>telnet</require> +- <require>bluez</require> +- <require>socat</require> +- <require>usbutils</require> +- <require>unzip</require> +- <require>psmisc</require> +- <require>tar</require> +- <require>dos2unix</require> +- <require>net-tools</require> +- </requires> +- <entries> +- <entry> +- <name>/tmp/kura_${project.version}_installer.sh</name> +- <file>${project.build.directory}/kura_${project.version}_intel-up2-centos-7-nn_installer.sh</file> +- <user>root</user> +- <group>root</group> +- <mode>0755</mode> +- </entry> +- </entries> +- <afterInstallation> +- <script>/tmp/kura_${project.version}_installer.sh</script> +- </afterInstallation> +- <beforeRemoval> +- <script> +- systemctl stop kura +- systemctl disable kura +- rm -f /usr/lib/systemd/system/kura.service +- systemctl daemon-reload +- systemctl reset-failed +- +- rm -f /etc/logrotate.d/kura +- rm -f /var/log/kura*.log +- rm -rf /tmp/.kura +- rm -rf /tmp/kura +- +- if [ -d "${kura.install.link}" ] ; then +- PARENT=`readlink -f ${kura.install.link}` +- rm -rf ${kura.install.link} +- rm -rf $PARENT +- fi +- </script> +- </beforeRemoval> +- <skipSigning>true</skipSigning> +- </configuration> +- </execution> +- </executions> +- </plugin> +- </plugins> +- </build> +- </profile> +- +- <profile> +- <id>rock960-ubuntu-16-nn</id> +- <properties> +- <project.raspbian.dependencies.nn>dos2unix, unzip, telnet, bluez-hcidump, java8-runtime-headless | java8-runtime</project.raspbian.dependencies.nn> +- </properties> +- <activation> +- <activeByDefault>true</activeByDefault> +- </activation> +- <build> +- <resources> +- <resource> +- <directory>src/main/resources</directory> +- <filtering>true</filtering> +- </resource> +- </resources> +- <plugins> +- <plugin> +- <groupId>org.codehaus.mojo</groupId> +- <artifactId>buildnumber-maven-plugin</artifactId> +- <version>1.0</version> +- <executions> +- <execution> +- <phase>validate</phase> +- <goals> +- <goal>create-timestamp</goal> +- </goals> +- </execution> +- </executions> +- </plugin> +- <plugin> +- <groupId>org.apache.maven.plugins</groupId> +- <artifactId>maven-antrun-plugin</artifactId> +- <version>1.7</version> +- <executions> +- <execution> +- <id>rock960-ubuntu-16-nn-jars</id> +- <phase>prepare-package</phase> +- <goals> +- <goal>run</goal> +- </goals> +- <configuration> +- <target> +- <property name="buildNumber" value="buildNumber" /> +- <property name="project.version" value="${project.version}" /> +- <property name="project.build.profile" value="${project.build.profile}" /> +- <property name="project.build.directory" value="${project.build.directory}" /> +- <property name="build.name" value="rock960-ubuntu-16-nn" /> +- <property name="target.device" value="rock960-ubuntu-16-nn" /> +- <property name="native.tag" value="aarch64" /> +- <property name="kura.os.version" value="ubuntu" /> +- <property name="kura.arch" value="rock960-ubuntu-16-nn" /> +- <property name="service.manager" value="sysv" /> +- <property name="os.base" value="debian" /> +- <property name="kura.mem.size" value="1024m" /> +- <property name="kura.install.dir" value="/opt/eclipse" /> +- <ant antfile="${basedir}/src/main/ant/build_equinox_distrib.xml" target="dist-linux" /> +- </target> +- </configuration> +- </execution> +- </executions> +- </plugin> +- <plugin> +- <groupId>org.vafer</groupId> +- <artifactId>jdeb</artifactId> +- <version>1.0</version> +- <executions> +- <execution> +- <id>rock960-ubuntu-16-nn-deb</id> +- <phase>package</phase> +- <goals> +- <goal>jdeb</goal> +- </goals> +- <configuration> +- <verbose>true</verbose> +- <deb>${basedir}/target/kura_${project.version}_rock960-ubuntu-16-nn_installer.deb</deb> +- <controlDir>${basedir}/src/main/deb/control_nn</controlDir> +- <dataSet> +- <data> +- <src>${basedir}/target/kura_${project.version}_rock960-ubuntu-16-nn.zip</src> +- <type>file</type> +- <mapper> +- <type>perm</type> +- <prefix>/tmp</prefix> +- </mapper> +- </data> +- </dataSet> +- </configuration> +- </execution> +- </executions> +- </plugin> +- </plugins> +- </build> +- </profile> +- +- <profile> +- <id>dev-env</id> +- <activation> +- <activeByDefault>true</activeByDefault> +- </activation> +- <build> +- <resources> +- <resource> +- <directory>src/main/resources</directory> +- <filtering>true</filtering> +- </resource> +- </resources> +- <plugins> +- <plugin> +- <groupId>org.codehaus.mojo</groupId> +- <artifactId>buildnumber-maven-plugin</artifactId> +- <version>1.0</version> +- <executions> +- <execution> +- <phase>validate</phase> +- <goals> +- <goal>create-timestamp</goal> +- </goals> +- </execution> +- </executions> +- </plugin> +- <plugin> +- <groupId>org.eclipse.tycho.extras</groupId> +- <artifactId>tycho-p2-extras-plugin</artifactId> +- <version>${tycho-version}</version> +- <executions> +- <execution> +- <phase>package</phase> +- <goals> +- <goal>publish-features-and-bundles</goal> +- </goals> +- </execution> +- </executions> +- <configuration> +- <compress>false</compress> +- <sourceLocation>${project.build.directory}/staging/target-definition/equinox_3.12.50/repository</sourceLocation> +- <artifactRepositoryLocation>${project.build.directory}/staging/target-definition/equinox_3.12.50/repository</artifactRepositoryLocation> +- <metadataRepositoryLocation>${project.build.directory}/staging/target-definition/equinox_3.12.50/repository</metadataRepositoryLocation> +- </configuration> +- </plugin> +- <plugin> +- <groupId>org.apache.maven.plugins</groupId> +- <artifactId>maven-antrun-plugin</artifactId> +- <version>1.7</version> +- <executions> +- <execution> +- <id>prep-tp</id> +- <phase>prepare-package</phase> +- <goals> +- <goal>run</goal> +- </goals> +- <configuration> +- <target> +- <!-- Kura User Workspace --> +- <echo message="Preparing target platform..." /> +- +- <!-- Copy the mtoolkit plugin to the target directory --> +- <copy +- file="src/main/resources/common/org.tigris.mtoolkit.sdk-3.1.8-20110411-0918.zip" +- todir="${project.build.directory}" /> +- +- <!-- Add the deployment agent and core packages to the target platform +- which is required for the emulator --> +- <copy todir="${project.build.directory}/staging/target-definition"> +- <fileset dir="../target-definition" /> +- </copy> +- <!-- Add individual emulator bundles--> +- <copy +- file="${project.build.directory}/plugins/org.eclipse.kura.emulator.clock_${org.eclipse.kura.emulator.clock.version}.jar" +- todir="${project.build.directory}/staging/target-definition/equinox_3.12.50/repository/plugins" /> +- <copy +- file="${project.build.directory}/plugins/org.eclipse.kura.emulator.gpio_${org.eclipse.kura.emulator.gpio.version}.jar" +- todir="${project.build.directory}/staging/target-definition/equinox_3.12.50/repository/plugins" /> +- <copy +- file="${project.build.directory}/plugins/org.eclipse.kura.emulator.net_${org.eclipse.kura.emulator.net.version}.jar" +- todir="${project.build.directory}/staging/target-definition/equinox_3.12.50/repository/plugins" /> +- <copy +- file="${project.build.directory}/plugins/org.eclipse.kura.emulator.position_${org.eclipse.kura.emulator.position.version}.jar" +- todir="${project.build.directory}/staging/target-definition/equinox_3.12.50/repository/plugins" /> +- <copy +- file="${project.build.directory}/plugins/org.eclipse.kura.emulator.usb_${org.eclipse.kura.emulator.usb.version}.jar" +- todir="${project.build.directory}/staging/target-definition/equinox_3.12.50/repository/plugins" /> +- <copy +- file="${project.build.directory}/plugins/org.eclipse.kura.emulator.watchdog_${org.eclipse.kura.emulator.watchdog.version}.jar" +- todir="${project.build.directory}/staging/target-definition/equinox_3.12.50/repository/plugins" /> +- +- <delete file="${project.build.directory}/staging/target-definition/pom.xml" /> +- <delete dir="${project.build.directory}/staging/target-definition/common/source" /> +- <delete +- file="${project.build.directory}/staging/target-definition/kura-equinox_3.12.50.target" /> +- <delete +- dir="${project.build.directory}/staging/target-definition/equinox_3.12.50/source" /> +- <delete +- file="${project.build.directory}/staging/target-definition/equinox_3.12.50/repository/artifacts.xml" /> +- <delete +- file="${project.build.directory}/staging/target-definition/equinox_3.12.50/repository/content.xml" /> +- <delete dir="${project.build.directory}/staging/target-definition/target" /> +- +- <copy overwrite="true" +- file="src/main/resources/common/projects/target_definition.project" tofile="${project.build.directory}/staging/target-definition/.project" /> +- <copy file="src/main/resources/common/kura-equinox_3.12.50.target" todir="${project.build.directory}/staging/target-definition" /> +- <copy +- file="${project.build.directory}/plugins/org.eclipse.kura.api_${org.eclipse.kura.api.version}.jar" +- todir="${project.build.directory}/staging/target-definition/equinox_3.12.50/repository/plugins" /> +- <copy +- file="${project.build.directory}/plugins/org.eclipse.kura.camel_${org.eclipse.kura.camel.version}.jar" +- todir="${project.build.directory}/staging/target-definition/equinox_3.12.50/repository/plugins" /> +- <copy +- file="${project.build.directory}/plugins/org.eclipse.kura.camel.cloud.factory_${org.eclipse.kura.camel.cloud.factory.version}.jar" +- todir="${project.build.directory}/staging/target-definition/equinox_3.12.50/repository/plugins" /> +- <copy +- file="${project.build.directory}/plugins/org.eclipse.kura.camel.xml_${org.eclipse.kura.camel.xml.version}.jar" +- todir="${project.build.directory}/staging/target-definition/equinox_3.12.50/repository/plugins" /> +- <copy +- file="${project.build.directory}/plugins/org.eclipse.kura.core_${org.eclipse.kura.core.version}.jar" +- todir="${project.build.directory}/staging/target-definition/equinox_3.12.50/repository/plugins" /> +- <copy +- file="${project.build.directory}/plugins/org.eclipse.kura.core.certificates_${org.eclipse.kura.core.certificates.version}.jar" +- todir="${project.build.directory}/staging/target-definition/equinox_3.12.50/repository/plugins" /> +- <copy +- file="${project.build.directory}/plugins/org.eclipse.kura.core.cloud_${org.eclipse.kura.core.cloud.version}.jar" +- todir="${project.build.directory}/staging/target-definition/equinox_3.12.50/repository/plugins" /> +- <copy +- file="${project.build.directory}/plugins/org.eclipse.kura.core.comm_${org.eclipse.kura.core.comm.version}.jar" +- todir="${project.build.directory}/staging/target-definition/equinox_3.12.50/repository/plugins" /> +- <copy +- file="${project.build.directory}/plugins/org.eclipse.kura.core.configuration_${org.eclipse.kura.core.configuration.version}.jar" +- todir="${project.build.directory}/staging/target-definition/equinox_3.12.50/repository/plugins" /> +- <copy +- file="${project.build.directory}/plugins/org.eclipse.kura.core.crypto_${org.eclipse.kura.core.crypto.version}.jar" +- todir="${project.build.directory}/staging/target-definition/equinox_3.12.50/repository/plugins" /> +- <copy +- file="${project.build.directory}/plugins/org.eclipse.kura.core.deployment_${org.eclipse.kura.core.deployment.version}.jar" +- todir="${project.build.directory}/staging/target-definition/equinox_3.12.50/repository/plugins" /> +- <copy +- file="${project.build.directory}/plugins/org.eclipse.kura.core.net_${org.eclipse.kura.core.net.version}.jar" +- todir="${project.build.directory}/staging/target-definition/equinox_3.12.50/repository/plugins" /> +- <copy +- file="${project.build.directory}/plugins/org.eclipse.kura.deployment.agent_${org.eclipse.kura.deployment.agent.version}.jar" +- todir="${project.build.directory}/staging/target-definition/equinox_3.12.50/repository/plugins" /> +- <copy +- file="${project.build.directory}/plugins/org.eclipse.kura.core.status_${org.eclipse.kura.core.status.version}.jar" +- todir="${project.build.directory}/staging/target-definition/equinox_3.12.50/repository/plugins" /> +- <copy +- file="${project.build.directory}/plugins/org.eclipse.kura.linux.bluetooth_${org.eclipse.kura.linux.bluetooth.version}.jar" +- todir="${project.build.directory}/staging/target-definition/equinox_3.12.50/repository/plugins" /> +- <copy +- file="${project.build.directory}/plugins/org.eclipse.kura.ble.provider_${org.eclipse.kura.ble.provider.version}.jar" +- todir="${project.build.directory}/staging/target-definition/equinox_3.12.50/repository/plugins" /> +- <copy +- file="${project.build.directory}/plugins/org.eclipse.kura.ble.ibeacon.provider_${org.eclipse.kura.ble.ibeacon.provider.version}.jar" +- todir="${project.build.directory}/staging/target-definition/equinox_3.12.50/repository/plugins" /> +- <copy +- file="${project.build.directory}/plugins/org.eclipse.kura.ble.eddystone.provider_${org.eclipse.kura.ble.eddystone.provider.version}.jar" +- todir="${project.build.directory}/staging/target-definition/equinox_3.12.50/repository/plugins" /> +- <copy +- file="${project.build.directory}/plugins/org.eclipse.kura.asset.provider_${org.eclipse.kura.asset.provider.version}.jar" +- todir="${project.build.directory}/staging/target-definition/equinox_3.12.50/repository/plugins" /> +- <copy +- file="${project.build.directory}/plugins/org.eclipse.kura.asset.cloudlet.provider_${org.eclipse.kura.asset.cloudlet.provider.version}.jar" +- todir="${project.build.directory}/staging/target-definition/equinox_3.12.50/repository/plugins" /> +- <copy +- file="${project.build.directory}/plugins/org.eclipse.kura.asset.helper.provider_${org.eclipse.kura.asset.helper.provider.version}.jar" +- todir="${project.build.directory}/staging/target-definition/equinox_3.12.50/repository/plugins" /> +- <copy +- file="${project.build.directory}/plugins/org.eclipse.kura.driver.helper.provider_${org.eclipse.kura.driver.helper.provider.version}.jar" +- todir="${project.build.directory}/staging/target-definition/equinox_3.12.50/repository/plugins" /> +- <copy +- file="${project.build.directory}/plugins/org.eclipse.kura.localization_${org.eclipse.kura.localization.version}.jar" +- todir="${project.build.directory}/staging/target-definition/equinox_3.12.50/repository/plugins" /> +- <copy +- file="${project.build.directory}/plugins/org.eclipse.kura.localization.resources_${org.eclipse.kura.localization.resources.version}.jar" +- todir="${project.build.directory}/staging/target-definition/equinox_3.12.50/repository/plugins" /> +- <copy +- file="${project.build.directory}/plugins/org.eclipse.kura.util_${org.eclipse.kura.util.version}.jar" +- todir="${project.build.directory}/staging/target-definition/equinox_3.12.50/repository/plugins" /> +- <copy +- file="${project.build.directory}/plugins/org.eclipse.kura.wire.camel_${org.eclipse.kura.wire.camel.version}.jar" +- todir="${project.build.directory}/staging/target-definition/equinox_3.11.1/repository/plugins" /> +- <copy +- file="${project.build.directory}/plugins/org.eclipse.kura.wire.component.provider_${org.eclipse.kura.wire.component.provider.version}.jar" +- todir="${project.build.directory}/staging/target-definition/equinox_3.12.50/repository/plugins" /> +- <copy +- file="${project.build.directory}/plugins/org.eclipse.kura.wire.h2db.component.provider_${org.eclipse.kura.wire.h2db.component.provider.version}.jar" +- todir="${project.build.directory}/staging/target-definition/equinox_3.12.50/repository/plugins" /> +- <copy +- file="${project.build.directory}/plugins/org.eclipse.kura.wire.helper.provider_${org.eclipse.kura.wire.helper.provider.version}.jar" +- todir="${project.build.directory}/staging/target-definition/equinox_3.12.50/repository/plugins" /> +- <copy +- file="${project.build.directory}/plugins/org.eclipse.kura.wire.provider_${org.eclipse.kura.wire.provider.version}.jar" +- todir="${project.build.directory}/staging/target-definition/equinox_3.12.50/repository/plugins" /> +- <copy +- file="${project.build.directory}/plugins/org.eclipse.kura.web2_${org.eclipse.kura.web2.version}.jar" +- todir="${project.build.directory}/staging/target-definition/equinox_3.12.50/repository/plugins" +- failonerror="false" /> +- <!-- Add REST bundles--> +- <copy +- file="${project.build.directory}/plugins/org.eclipse.kura.rest.provider_${org.eclipse.kura.rest.provider.version}.jar" +- todir="${project.build.directory}/staging/target-definition/equinox_3.12.50/repository/plugins" /> +- <copy +- file="${project.build.directory}/plugins/org.eclipse.kura.rest.asset.provider_${org.eclipse.kura.rest.asset.provider.version}.jar" +- todir="${project.build.directory}/staging/target-definition/equinox_3.12.50/repository/plugins" /> +- <!-- Add Artemis bundles--> +- <copy +- file="${project.build.directory}/plugins/org.eclipse.kura.broker.artemis.core_${org.eclipse.kura.broker.artemis.core.version}.jar" +- todir="${project.build.directory}/staging/target-definition/equinox_3.12.50/repository/plugins" /> +- <copy +- file="${project.build.directory}/plugins/org.eclipse.kura.broker.artemis.simple.mqtt_${org.eclipse.kura.broker.artemis.simple.mqtt.version}.jar" +- todir="${project.build.directory}/staging/target-definition/equinox_3.12.50/repository/plugins" /> +- <copy +- file="${project.build.directory}/plugins/org.eclipse.kura.broker.artemis.xml_${org.eclipse.kura.broker.artemis.xml.version}.jar" +- todir="${project.build.directory}/staging/target-definition/equinox_3.12.50/repository/plugins" /> +- +- <copy +- file="${project.build.directory}/plugins/org.eclipse.kura.wire.component.conditional.provider_${org.eclipse.kura.wire.component.conditional.provider.version}.jar" +- todir="${project.build.directory}/staging/target-definition/equinox_3.12.50/repository/plugins" /> +- <copy +- file="${project.build.directory}/plugins/org.eclipse.kura.wire.component.join.provider_${org.eclipse.kura.wire.component.join.provider.version}.jar" +- todir="${project.build.directory}/staging/target-definition/equinox_3.12.50/repository/plugins" /> +- +- <copy +- file="${project.build.directory}/plugins/org.eclipse.kura.json.marshaller.unmarshaller.provider_${org.eclipse.kura.json.marshaller.unmarshaller.provider.version}.jar" +- todir="${project.build.directory}/staging/target-definition/equinox_3.12.50/repository/plugins" /> +- <copy +- file="${project.build.directory}/plugins/org.eclipse.kura.xml.marshaller.unmarshaller.provider_${org.eclipse.kura.xml.marshaller.unmarshaller.provider.version}.jar" +- todir="${project.build.directory}/staging/target-definition/equinox_3.12.50/repository/plugins" /> +- +- <copy +- file="${project.build.directory}/plugins/org.eclipse.kura.cloudconnection.eclipseiot.mqtt.provider_${org.eclipse.kura.cloudconnection.eclipseiot.mqtt.provider.version}.jar" +- todir="${project.build.directory}/staging/target-definition/equinox_3.12.50/repository/plugins" /> +- </target> +- </configuration> +- </execution> +- <execution> +- <id>dev-env</id> +- <phase>package</phase> +- <goals> +- <goal>run</goal> +- </goals> +- <configuration> +- <target> +- <!-- Stage the emulator --> +- <copy todir="${project.build.directory}/staging/emulator"> +- <fileset dir="../emulator/org.eclipse.kura.emulator" /> +- </copy> +- <delete file="${project.build.directory}/staging/emulator/pom.xml" /> +- <delete dir="${project.build.directory}/staging/emulator/bin" /> +- <delete dir="${project.build.directory}/staging/emulator/target" /> +- <delete file="${project.build.directory}/staging/emulator/emulator-assembly.xml" /> +- <delete +- file="${project.build.directory}/staging/emulator/src/main/resources/Kura_Core_Test.launch" /> +- <delete +- file="${project.build.directory}/staging/emulator/src/main/resources/Kura_Emulator_Linux.launch" /> +- <delete +- file="${project.build.directory}/staging/emulator/src/main/resources/Kura_Emulator_OSX.launch" /> +- <copy file="RELEASE_NOTES.txt" todir="${project.build.directory}/staging/emulator/src/main/resources" /> +- <mkdir dir="${project.build.directory}/staging/emulator/launch_configs"/> +- <copy file="src/main/resources/common/Kura_Emulator_Linux.launch" todir="${project.build.directory}/staging/emulator/launch_configs" /> +- <copy file="src/main/resources/common/Kura_Emulator_OSX.launch" todir="${project.build.directory}/staging/emulator/launch_configs" /> +- <copy file="src/main/resources/common/classpaths/emulator.classpath" +- tofile="${project.build.directory}/staging/emulator/emulator.classpath" /> +- <copy overwrite="true" file="src/main/resources/common/projects/emulator.project" +- tofile="${project.build.directory}/staging/emulator/.project" /> +- <replace +- file="${project.build.directory}/staging/emulator/src/main/resources/kura.properties" +- token="kura.version=kura_emulator" value="kura.version=KURA_${kura.version}" /> +- <move file="${project.build.directory}/staging/emulator/emulator.classpath" +- tofile="${project.build.directory}/staging/emulator/.classpath" /> +- +- <!-- Stage the Demo Heater Project --> +- <copy todir="${project.build.directory}/staging/demo_heater"> +- <fileset dir="../examples/org.eclipse.kura.demo.heater" /> +- </copy> +- <delete file="${project.build.directory}/staging/demo_heater/pom.xml" /> +- <delete dir="${project.build.directory}/staging/demo_heater/bin" /> +- <delete dir="${project.build.directory}/staging/demo_heater/target" /> +- <copy file="src/main/resources/common/classpaths/demo_heater.classpath" +- tofile="${project.build.directory}/staging/demo_heater/demo_heater.classpath" /> +- <copy overwrite="true" file="src/main/resources/common/projects/demo_heater.project" +- tofile="${project.build.directory}/staging/demo_heater/.project" /> +- <move file="${project.build.directory}/staging/demo_heater/demo_heater.classpath" +- tofile="${project.build.directory}/staging/demo_heater/.classpath" /> +- +- <!-- Stage the org.eclipse.kura.example.beacon Project --> +- <copy todir="${project.build.directory}/staging/beacon"> +- <fileset dir="../examples/org.eclipse.kura.example.beacon" /> +- </copy> +- <delete file="${project.build.directory}/staging/beacon/pom.xml" /> +- <delete dir="${project.build.directory}/staging/beacon/bin" /> +- <delete dir="${project.build.directory}/staging/beacon/target" /> +- <copy file="src/main/resources/common/classpaths/beacon.classpath" tofile="${project.build.directory}/staging/beacon/beacon.classpath" /> +- <copy overwrite="true" file="src/main/resources/common/projects/beacon.project" +- tofile="${project.build.directory}/staging/beacon/.project" /> +- <move file="${project.build.directory}/staging/beacon/beacon.classpath" +- tofile="${project.build.directory}/staging/beacon/.classpath" /> +- +- <!-- Stage the org.eclipse.kura.example.beacon.scanner Project --> +- <copy todir="${project.build.directory}/staging/beacon.scanner"> +- <fileset dir="../examples/org.eclipse.kura.example.beacon.scanner" /> +- </copy> +- <delete file="${project.build.directory}/staging/beacon.scanner/pom.xml" /> +- <delete dir="${project.build.directory}/staging/beacon.scanner/bin" /> +- <delete dir="${project.build.directory}/staging/beacon.scanner/target" /> +- <copy file="src/main/resources/common/classpaths/beacon.scanner.classpath" tofile="${project.build.directory}/staging/beacon.scanner/beacon.scanner.classpath" /> +- <copy overwrite="true" file="src/main/resources/common/projects/beacon.scanner.project" +- tofile="${project.build.directory}/staging/beacon.scanner/.project" /> +- <move file="${project.build.directory}/staging/beacon.scanner/beacon.scanner.classpath" +- tofile="${project.build.directory}/staging/beacon.scanner/.classpath" /> +- +- <!-- Stage the org.eclipse.kura.example.ibeacon.advertiser Project --> +- <copy todir="${project.build.directory}/staging/ibeacon.advertiser"> +- <fileset dir="../examples/org.eclipse.kura.example.ibeacon.advertiser" /> +- </copy> +- <delete file="${project.build.directory}/staging/ibeacon.advertiser/pom.xml" /> +- <delete dir="${project.build.directory}/staging/ibeacon.advertiser/bin" /> +- <delete dir="${project.build.directory}/staging/ibeacon.advertiser/target" /> +- <copy file="src/main/resources/common/classpaths/ibeacon.advertiser.classpath" tofile="${project.build.directory}/staging/ibeacon.advertiser/ibeacon.advertiser.classpath" /> +- <copy overwrite="true" file="src/main/resources/common/projects/ibeacon.advertiser.project" +- tofile="${project.build.directory}/staging/ibeacon.advertiser/.project" /> +- <move file="${project.build.directory}/staging/ibeacon.advertiser/ibeacon.advertiser.classpath" +- tofile="${project.build.directory}/staging/ibeacon.advertiser/.classpath" /> +- +- <!-- Stage the org.eclipse.kura.example.ibeacon.scanner Project --> +- <copy todir="${project.build.directory}/staging/ibeacon.scanner"> +- <fileset dir="../examples/org.eclipse.kura.example.ibeacon.scanner" /> +- </copy> +- <delete file="${project.build.directory}/staging/ibeacon.scanner/pom.xml" /> +- <delete dir="${project.build.directory}/staging/ibeacon.scanner/bin" /> +- <delete dir="${project.build.directory}/staging/ibeacon.scanner/target" /> +- <copy file="src/main/resources/common/classpaths/ibeacon.scanner.classpath" tofile="${project.build.directory}/staging/ibeacon.scanner/ibeacon.scanner.classpath" /> +- <copy overwrite="true" file="src/main/resources/common/projects/ibeacon.scanner.project" +- tofile="${project.build.directory}/staging/ibeacon.scanner/.project" /> +- <move file="${project.build.directory}/staging/ibeacon.scanner/ibeacon.scanner.classpath" +- tofile="${project.build.directory}/staging/ibeacon.scanner/.classpath" /> +- +- <!-- Stage the org.eclipse.kura.example.eddystone.advertiser Project --> +- <copy todir="${project.build.directory}/staging/eddystone.advertiser"> +- <fileset dir="../examples/org.eclipse.kura.example.eddystone.advertiser" /> +- </copy> +- <delete file="${project.build.directory}/staging/eddystone.advertiser/pom.xml" /> +- <delete dir="${project.build.directory}/staging/eddystone.advertiser/bin" /> +- <delete dir="${project.build.directory}/staging/eddystone.advertiser/target" /> +- <copy file="src/main/resources/common/classpaths/eddystone.advertiser.classpath" tofile="${project.build.directory}/staging/eddystone.advertiser/eddystone.advertiser.classpath" /> +- <copy overwrite="true" file="src/main/resources/common/projects/eddystone.advertiser.project" +- tofile="${project.build.directory}/staging/eddystone.advertiser/.project" /> +- <move file="${project.build.directory}/staging/eddystone.advertiser/eddystone.advertiser.classpath" +- tofile="${project.build.directory}/staging/eddystone.advertiser/.classpath" /> +- +- <!-- Stage the org.eclipse.kura.example.eddystone.scanner Project --> +- <copy todir="${project.build.directory}/staging/eddystone.scanner"> +- <fileset dir="../examples/org.eclipse.kura.example.eddystone.scanner" /> +- </copy> +- <delete file="${project.build.directory}/staging/eddystone.scanner/pom.xml" /> +- <delete dir="${project.build.directory}/staging/eddystone.scanner/bin" /> +- <delete dir="${project.build.directory}/staging/eddystone.scanner/target" /> +- <copy file="src/main/resources/common/classpaths/eddystone.scanner.classpath" tofile="${project.build.directory}/staging/eddystone.scanner/eddystone.scanner.classpath" /> +- <copy overwrite="true" file="src/main/resources/common/projects/eddystone.scanner.project" +- tofile="${project.build.directory}/staging/eddystone.scanner/.project" /> +- <move file="${project.build.directory}/staging/eddystone.scanner/eddystone.scanner.classpath" +- tofile="${project.build.directory}/staging/eddystone.scanner/.classpath" /> +- +- <!-- Stage the org.eclipse.kura.example.ble.tisensortag Project --> +- <copy todir="${project.build.directory}/staging/tisensortag"> +- <fileset dir="../examples/org.eclipse.kura.example.ble.tisensortag" /> +- </copy> +- <delete file="${project.build.directory}/staging/tisensortag/pom.xml" /> +- <delete dir="${project.build.directory}/staging/tisensortag/bin" /> +- <delete dir="${project.build.directory}/staging/tisensortag/target" /> +- <copy file="src/main/resources/common/classpaths/tisensortag.classpath" +- tofile="${project.build.directory}/staging/tisensortag/tisensortag.classpath" /> +- <copy overwrite="true" file="src/main/resources/common/projects/tisensortag.project" +- tofile="${project.build.directory}/staging/tisensortag/.project" /> +- <move file="${project.build.directory}/staging/tisensortag/tisensortag.classpath" +- tofile="${project.build.directory}/staging/tisensortag/.classpath" /> +- +- <!-- Stage the org.eclipse.kura.example.ble.tisensortag.tinyb Project --> +- <copy todir="${project.build.directory}/staging/tisensortag.tinyb"> +- <fileset dir="../examples/org.eclipse.kura.example.ble.tisensortag.tinyb" /> +- </copy> +- <delete file="${project.build.directory}/staging/tisensortag.tinyb/pom.xml" /> +- <delete dir="${project.build.directory}/staging/tisensortag.tinyb/bin" /> +- <delete dir="${project.build.directory}/staging/tisensortag.tinyb/target" /> +- <copy file="src/main/resources/common/classpaths/tisensortag.tinyb.classpath" +- tofile="${project.build.directory}/staging/tisensortag.tinyb/tisensortag.tinyb.classpath" /> +- <copy overwrite="true" file="src/main/resources/common/projects/tisensortag.tinyb.project" +- tofile="${project.build.directory}/staging/tisensortag.tinyb/.project" /> +- <move file="${project.build.directory}/staging/tisensortag.tinyb/tisensortag.tinyb.classpath" +- tofile="${project.build.directory}/staging/tisensortag.tinyb/.classpath" /> +- +- <!-- Stage the org.eclipse.kura.example.publisher Project --> +- <copy todir="${project.build.directory}/staging/publisher"> +- <fileset dir="../examples/org.eclipse.kura.example.publisher" /> +- </copy> +- <delete file="${project.build.directory}/staging/publisher/pom.xml" /> +- <delete dir="${project.build.directory}/staging/publisher/bin" /> +- <delete dir="${project.build.directory}/staging/publisher/target" /> +- <copy file="src/main/resources/common/classpaths/publisher.classpath" +- tofile="${project.build.directory}/staging/publisher/publisher.classpath" /> +- <copy overwrite="true" file="src/main/resources/common/projects/publisher.project" +- tofile="${project.build.directory}/staging/publisher/.project" /> +- <move file="${project.build.directory}/staging/publisher/publisher.classpath" +- tofile="${project.build.directory}/staging/publisher/.classpath" /> +- +- <!-- Stage the org.eclipse.kura.example.camel.quickstart Project --> +- <copy todir="${project.build.directory}/staging/camel_quickstart"> +- <fileset dir="../examples/org.eclipse.kura.example.camel.quickstart" /> +- </copy> +- <delete file="${project.build.directory}/staging/camel_quickstart/pom.xml" /> +- <delete dir="${project.build.directory}/staging/camel_quickstart/bin" /> +- <delete dir="${project.build.directory}/staging/camel_quickstart/target" /> +- <copy file="src/main/resources/common/classpaths/camel_quickstart.classpath" +- tofile="${project.build.directory}/staging/camel_quickstart/camel_quickstart.classpath" /> +- <copy overwrite="true" +- file="src/main/resources/common/projects/camel_quickstart.project" tofile="${project.build.directory}/staging/camel_quickstart/.project" /> +- <move +- file="${project.build.directory}/staging/camel_quickstart/camel_quickstart.classpath" +- tofile="${project.build.directory}/staging/camel_quickstart/.classpath" /> +- +- <!-- Stage the org.eclipse.kura.example.camel.publisher Project --> +- <copy todir="${project.build.directory}/staging/camel_publisher"> +- <fileset dir="../examples/org.eclipse.kura.example.camel.publisher" /> +- </copy> +- <delete file="${project.build.directory}/staging/camel_publisher/pom.xml" /> +- <delete dir="${project.build.directory}/staging/camel_publisher/bin" /> +- <delete dir="${project.build.directory}/staging/camel_publisher/target" /> +- <copy file="src/main/resources/common/classpaths/camel_publisher.classpath" +- tofile="${project.build.directory}/staging/camel_publisher/camel_publisher.classpath" /> +- <copy overwrite="true" +- file="src/main/resources/common/projects/camel_publisher.project" tofile="${project.build.directory}/staging/camel_publisher/.project" /> +- <move +- file="${project.build.directory}/staging/camel_publisher/camel_publisher.classpath" +- tofile="${project.build.directory}/staging/camel_publisher/.classpath" /> +- +- <!-- Stage the org.eclipse.kura.example.camel.aggregation Project --> +- <copy todir="${project.build.directory}/staging/camel_aggregation"> +- <fileset dir="../examples/org.eclipse.kura.example.camel.aggregation" /> +- </copy> +- <delete file="${project.build.directory}/staging/camel_aggregation/pom.xml" /> +- <delete dir="${project.build.directory}/staging/camel_aggregation/bin" /> +- <delete dir="${project.build.directory}/staging/camel_aggregation/target" /> +- <copy file="src/main/resources/common/classpaths/camel_aggregation.classpath" +- tofile="${project.build.directory}/staging/camel_aggregation/camel_aggregation.classpath" /> +- <copy overwrite="true" +- file="src/main/resources/common/projects/camel_aggregation.project" tofile="${project.build.directory}/staging/camel_aggregation/.project" /> +- <move +- file="${project.build.directory}/staging/camel_aggregation/camel_aggregation.classpath" +- tofile="${project.build.directory}/staging/camel_aggregation/.classpath" /> +- +- <!-- Create the archive file with the components --> +- <zip destfile="${project.build.directory}/${zip_workspace.prefix}.zip"> +- <zipfileset dir="${project.build.directory}/staging/target-definition/" +- prefix="target-definition/" /> +- <zipfileset dir="${project.build.directory}/staging/emulator/" +- prefix="org.eclipse.kura.emulator/" /> +- <zipfileset dir="${project.build.directory}/staging/demo_heater/" +- prefix="org.eclipse.kura.demo.heater/" /> +- <zipfileset dir="${project.build.directory}/staging/beacon/" +- prefix="org.eclipse.kura.example.beacon/" /> +- <zipfileset dir="${project.build.directory}/staging/beacon.scanner/" +- prefix="org.eclipse.kura.example.beacon.scanner/" /> +- <zipfileset dir="${project.build.directory}/staging/ibeacon.advertiser/" +- prefix="org.eclipse.kura.example.ibeacon.advertiser/" /> +- <zipfileset dir="${project.build.directory}/staging/ibeacon.scanner/" +- prefix="org.eclipse.kura.example.ibeacon.scanner/" /> +- <zipfileset dir="${project.build.directory}/staging/eddystone.advertiser/" +- prefix="org.eclipse.kura.example.eddystone.advertiser/" /> +- <zipfileset dir="${project.build.directory}/staging/eddystone.scanner/" +- prefix="org.eclipse.kura.example.eddystone.scanner/" /> +- <zipfileset dir="${project.build.directory}/staging/tisensortag/" +- prefix="org.eclipse.kura.example.ble.tisensortag/" /> +- <zipfileset dir="${project.build.directory}/staging/tisensortag.tinyb/" +- prefix="org.eclipse.kura.example.ble.tisensortag.tinyb/" /> +- <zipfileset dir="${project.build.directory}/staging/publisher/" +- prefix="org.eclipse.kura.example.publisher/" /> +- <zipfileset dir="${project.build.directory}/staging/camel_quickstart/" +- prefix="org.eclipse.kura.example.camel.quickstart/" /> +- <zipfileset dir="${project.build.directory}/staging/camel_publisher/" +- prefix="org.eclipse.kura.example.camel.publisher/" /> +- <zipfileset dir="${project.build.directory}/staging/camel_aggregation/" +- prefix="org.eclipse.kura.example.camel.aggregation/" /> +- </zip> +- </target> +- </configuration> +- </execution> +- <execution> +- <id>post-dev-env</id> +- <phase>install</phase> +- <goals> +- <goal>run</goal> +- </goals> +- <configuration> +- <target unless="${org.eclipse.kura.dio.include}"> +- <zip destfile="${project.build.directory}/tmp_ws.zip"> +- <zipfileset src="${project.build.directory}/${zip_workspace.prefix}.zip"> +- <exclude +- name="target-definition/common/repository/plugins/jdk.dio_${jdk.dio.version}.jar" /> +- <exclude +- name="target-definition/common/repository/plugins/jdk.dio.*_${jdk.dio.version}.jar" /> +- </zipfileset> +- </zip> +- <move file="${project.build.directory}/tmp_ws.zip" tofile="${project.build.directory}/${zip_workspace.prefix}.zip" /> +- </target> +- </configuration> +- </execution> +- </executions> +- </plugin> +- </plugins> +- </build> +- </profile> +- <profile> +- <id>core-dp</id> +- <activation> +- <activeByDefault>true</activeByDefault> +- </activation> +- <build> +- <plugins> +- <plugin> +- <groupId>org.apache.maven.plugins</groupId> +- <artifactId>maven-dependency-plugin</artifactId> +- <executions> +- <execution> +- <id>core-dp</id> +- <phase>package</phase> +- <goals> +- <goal>copy</goal> +- </goals> +- <configuration> +- <artifactItems> +- <artifactItem> +- <groupId>org.eclipse.kura</groupId> +- <artifactId>org.eclipse.kura.protocol.modbus</artifactId> +- <version>${org.eclipse.kura.protocol.modbus.version}</version> +- <type>dp</type> +- </artifactItem> +- <artifactItem> +- <groupId>org.eclipse.kura.feature</groupId> +- <artifactId>org.eclipse.kura.driver.opcua</artifactId> +- <version>${org.eclipse.kura.driver.opcua.version}</version> +- <type>dp</type> +- </artifactItem> +- <artifactItem> +- <groupId>org.eclipse.kura.feature</groupId> +- <artifactId>org.eclipse.kura.driver.s7plc</artifactId> +- <version>${org.eclipse.kura.driver.s7plc.version}</version> +- <type>dp</type> +- </artifactItem> +- <artifactItem> +- <groupId>org.eclipse.kura.feature</groupId> +- <artifactId>org.eclipse.kura.driver.ble.sensortag</artifactId> +- <version>${org.eclipse.kura.driver.ble.sensortag.version}</version> +- <type>dp</type> +- </artifactItem> +- <artifactItem> +- <groupId>org.eclipse.kura.feature</groupId> +- <artifactId>org.eclipse.kura.driver.eddystone</artifactId> +- <version>${org.eclipse.kura.driver.eddystone.version}</version> +- <type>dp</type> +- </artifactItem> +- <artifactItem> +- <groupId>org.eclipse.kura.feature</groupId> +- <artifactId>org.eclipse.kura.driver.ibeacon</artifactId> +- <version>${org.eclipse.kura.driver.ibeacon.version}</version> +- <type>dp</type> +- </artifactItem> +- <artifactItem> +- <groupId>org.eclipse.kura.feature</groupId> +- <artifactId>org.eclipse.kura.wire.script.filter</artifactId> +- <version>${org.eclipse.kura.wire.script.filter.version}</version> +- <type>dp</type> +- </artifactItem> +- <artifactItem> +- <groupId>org.eclipse.kura.feature</groupId> +- <artifactId>org.eclipse.kura.driver.gpio</artifactId> +- <version>${org.eclipse.kura.driver.gpio.version}</version> +- <type>dp</type> +- </artifactItem> +- </artifactItems> +- <outputDirectory>${project.build.directory}</outputDirectory> +- </configuration> +- </execution> +- </executions> +- </plugin> +- </plugins> +- </build> +- </profile> +- <profile> +- <id>can-dp</id> +- <activation> +- <activeByDefault>true</activeByDefault> +- </activation> +- <build> +- <plugins> +- <plugin> +- <groupId>org.apache.maven.plugins</groupId> +- <artifactId>maven-dependency-plugin</artifactId> +- <executions> +- <execution> +- <id>can-dp</id> +- <phase>package</phase> +- <goals> +- <goal>copy</goal> +- </goals> +- <configuration> +- <skip>${kura.skip.can}</skip> +- <artifactItems> +- <artifactItem> +- <groupId>org.eclipse.kura</groupId> +- <artifactId>org.eclipse.kura.protocol.can</artifactId> +- <version>${org.eclipse.kura.protocol.can.version}</version> +- <type>dp</type> +- </artifactItem> +- </artifactItems> +- <outputDirectory>${project.build.directory}</outputDirectory> +- </configuration> +- </execution> +- </executions> +- </plugin> +- </plugins> +- </build> +- </profile> + </profiles> + </project> +-- +2.7.4 + diff --git a/external/meta-iot-cloud/recipes-connectivity/kura/files/jdk.dio.properties.default b/external/meta-iot-cloud/recipes-connectivity/kura/files/jdk.dio.properties.default new file mode 100644 index 00000000..f623b025 --- /dev/null +++ b/external/meta-iot-cloud/recipes-connectivity/kura/files/jdk.dio.properties.default @@ -0,0 +1,3 @@ +# +# IO Properties Placeholder +# diff --git a/external/meta-iot-cloud/recipes-connectivity/kura/files/kura.properties.default b/external/meta-iot-cloud/recipes-connectivity/kura/files/kura.properties.default new file mode 100644 index 00000000..f273561e --- /dev/null +++ b/external/meta-iot-cloud/recipes-connectivity/kura/files/kura.properties.default @@ -0,0 +1,99 @@ +# +# Copyright (c) 2011, 2019 Eurotech and/or its affiliates +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +# +# Contributors: +# Eurotech +# + +## ----------------------------------------------------------------------------- +## Kura Properties +## ----------------------------------------------------------------------------- +kura.name=Eclipse Kura +kura.version= +kura.marketplace.compatibility.version= +kura.company=ECLIPSE +kura.project=yocto +kura.platform=%TARGET_SYS% +kura.device.name=%MACHINE% +kura.model.id=%MACHINE% +kura.model.name=%MACHINE% +kura.bios.version=N/A +kura.firmware.version=N/A +# kura.primary.network.interface=N/A +# kura.mac.address= Fetch from Java +kura.home={kura.install.dir}/{kura.symlink} +kura.framework.config={kura.install.dir}/{kura.symlink}/framework +kura.user.config={kura.install.dir}/{kura.symlink}/user +kura.plugins={kura.install.dir}/{kura.symlink}/plugins +kura.packages={kura.install.dir}/{kura.symlink}/data/packages +kura.data={kura.install.dir}/{kura.symlink}/data +kura.tmp=/tmp/.kura +kura.snapshots={kura.install.dir}/{kura.symlink}/user/snapshots +kura.style.dir={kura.install.dir}/{kura.symlink}/user/console/skin +kura.have.net.admin=true +kura.wifi.top.channel=11 +# os.arch= Fetch from Java +# os.name= Fetch from Java +# os.version= Fetch from Java +os.distribution=%DISTRO% +os.distribution.version=%DISTRO_VERSION% +# java.version= Fetch from Java +# java.vendor= Fetch from Java +# java.vm.name= Fetch from Java +# java.vm.version= Fetch from Java +# java.home= Fetch from Java +# file.separator= Fetch from Java + + +## ----------------------------------------------------------------------------- +## Java Key Store Settings +## ----------------------------------------------------------------------------- +kura.ssl.keyStorePassword=changeit + + +## ----------------------------------------------------------------------------- +## Remote Configuration Properties +## ----------------------------------------------------------------------------- +console.device.management.service.ignore=org.eclipse.kura.net.admin.NetworkConfigurationService,org.eclipse.kura.net.admin.FirewallConfigurationService + + +## ----------------------------------------------------------------------------- +## File upload settings +## ----------------------------------------------------------------------------- +# default 10240 +file.upload.in.memory.size.threshold=10240 +# -1: unlimited (default) +file.upload.size.max=-1 +file.command.zip.max.size=100 +file.command.zip.max.number=1024 + + +## ----------------------------------------------------------------------------- +## Deployment Agent settings +## ----------------------------------------------------------------------------- +# see copyURLToFile() http://commons.apache.org/proper/commons-io/javadocs/api-2.4/index.html +dpa.connection.timeout = 60000 +dpa.read.timeout = 60000 + + +## ----------------------------------------------------------------------------- +## Cloud Connection Status settings +## ----------------------------------------------------------------------------- + +#1. Cloud Connection Status on system log +#The Cloud Connection Status will be indicated in the log files, and nowere else +ccs.status.notification.url=ccs:log + +#2. Cloud Connection Status on LED +#The Cloud Connection Status will be indicated by a blinking LED connected to the system GPIOs +#The URL should indicate the GPIO logic index of the GPIO Pin used for the LED +#ccs.status.notification.url=ccs:led:16 + +#3. Cloud Connection Status disabled +#Disables the Cloud Connection Status service +#ccs.status.notification.url=ccs:none diff --git a/external/meta-iot-cloud/recipes-connectivity/kura/files/log4j.xml.default b/external/meta-iot-cloud/recipes-connectivity/kura/files/log4j.xml.default new file mode 100644 index 00000000..ad35d51e --- /dev/null +++ b/external/meta-iot-cloud/recipes-connectivity/kura/files/log4j.xml.default @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="UTF-8"?> +<Configuration status="warn" strict="true" name="KuraConfig" monitorInterval="30"> + + <Properties> + <Property name="filename">/var/log/kura</Property> + </Properties> + <Filter type="ThresholdFilter" level="trace"/> + + <Appenders> + <RollingFile name="RollingFile" fileName="${filename}.log" filePattern="${filename}-%d{MM-dd-yy-HH-mm-ss}-%i.log.gz"> + <PatternLayout> + <Pattern>%d{ISO8601} [%t] %-5p %c{1.} - %m%n%throwable{full}</Pattern> + </PatternLayout> + <Policies> + <SizeBasedTriggeringPolicy size="20 MB"/> + </Policies> + <DefaultRolloverStrategy max="10"/> + </RollingFile> + </Appenders> + + <Loggers> + <Logger name="org.eclipse" level="info" additivity="false"> + <AppenderRef ref="RollingFile"/> + </Logger> + + <Root level="info"> + <AppenderRef ref="RollingFile"/> + </Root> + </Loggers> + +</Configuration> + diff --git a/external/meta-iot-cloud/recipes-connectivity/kura/files/snapshot_0.xml.default b/external/meta-iot-cloud/recipes-connectivity/kura/files/snapshot_0.xml.default new file mode 100644 index 00000000..a114a36a --- /dev/null +++ b/external/meta-iot-cloud/recipes-connectivity/kura/files/snapshot_0.xml.default @@ -0,0 +1,191 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<esf:configurations xmlns:ocd="http://www.osgi.org/xmlns/metatype/v1.2.0" xmlns:esf="http://eurotech.com/esf/2.0"> + <esf:configuration pid="org.eclipse.kura.watchdog.WatchdogService"> + <esf:properties> + <esf:property name="enabled" array="false" encrypted="false" type="Boolean"> + <esf:value>false</esf:value> + </esf:property> + <esf:property name="service.pid" array="false" encrypted="false" type="String"> + <esf:value>org.eclipse.kura.watchdog.WatchdogService</esf:value> + </esf:property> + <esf:property name="pingInterval" array="false" encrypted="false" type="Integer"> + <esf:value>10000</esf:value> + </esf:property> + </esf:properties> + </esf:configuration> + <esf:configuration pid="org.eclipse.kura.clock.ClockService"> + <esf:properties> + <esf:property name="enabled" array="false" encrypted="false" type="Boolean"> + <esf:value>true</esf:value> + </esf:property> + <esf:property name="clock.ntp.port" array="false" encrypted="false" type="Integer"> + <esf:value>123</esf:value> + </esf:property> + <esf:property name="clock.ntp.refresh-interval" array="false" encrypted="false" type="Integer"> + <esf:value>3600</esf:value> + </esf:property> + <esf:property name="clock.provider" array="false" encrypted="false" type="String"> + <esf:value>java-ntp</esf:value> + </esf:property> + <esf:property name="clock.set.hwclock" array="false" encrypted="false" type="Boolean"> + <esf:value>true</esf:value> + </esf:property> + <esf:property name="clock.ntp.timeout" array="false" encrypted="false" type="Integer"> + <esf:value>10000</esf:value> + </esf:property> + <esf:property name="clock.ntp.host" array="false" encrypted="false" type="String"> + <esf:value>0.pool.ntp.org</esf:value> + </esf:property> + <esf:property name="service.pid" array="false" encrypted="false" type="String"> + <esf:value>org.eclipse.kura.clock.ClockService</esf:value> + </esf:property> + </esf:properties> + </esf:configuration> + <esf:configuration pid="org.eclipse.kura.db.H2DbService"> + <esf:properties> + <esf:property array="false" encrypted="false" name="db.user" type="String"> + <esf:value>SA</esf:value> + </esf:property> + <esf:property array="false" encrypted="false" name="db.connection.pool.max.size" type="Integer"> + <esf:value>10</esf:value> + </esf:property> + <esf:property array="false" encrypted="false" name="db.connector.url" type="String"> + <esf:value>jdbc:h2:mem:kuradb</esf:value> + </esf:property> + <esf:property array="false" encrypted="false" name="service.factoryPid" type="String"> + <esf:value>org.eclipse.kura.core.db.H2DbService</esf:value> + </esf:property> + <esf:property array="false" encrypted="false" name="db.checkpoint.interval.seconds" type="Integer"> + <esf:value>900</esf:value> + </esf:property> + <esf:property array="false" encrypted="false" name="kura.service.pid" type="String"> + <esf:value>org.eclipse.kura.db.H2DbService</esf:value> + </esf:property> + </esf:properties> + </esf:configuration> + <esf:configuration pid="org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport"> + <esf:properties> + <esf:property name="clean-session" array="false" encrypted="false" type="Boolean"> + <esf:value>true</esf:value> + </esf:property> + <esf:property name="username" array="false" encrypted="false" type="String"> + <esf:value>username</esf:value> + </esf:property> + <esf:property name="topic.context.account-name" array="false" encrypted="false" type="String"> + <esf:value>account-name</esf:value> + </esf:property> + <esf:property name="broker-url" array="false" encrypted="false" type="String"> + <esf:value>mqtts://broker-url:8883/</esf:value> + </esf:property> + <esf:property name="lwt.retain" array="false" encrypted="false" type="Boolean"> + <esf:value>false</esf:value> + </esf:property> + <esf:property name="in-flight.persistence" array="false" encrypted="false" type="String"> + <esf:value>memory</esf:value> + </esf:property> + <esf:property name="lwt.topic" array="false" encrypted="false" type="String"> + <esf:value>$EDC/#account-name/#client-id/MQTT/LWT</esf:value> + </esf:property> + <esf:property name="keep-alive" array="false" encrypted="false" type="Integer"> + <esf:value>30</esf:value> + </esf:property> + <esf:property name="service.pid" array="false" encrypted="false" type="String"> + <esf:value>org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport</esf:value> + </esf:property> + <esf:property name="password" array="false" encrypted="false" type="Password"> + <esf:value>password</esf:value> + </esf:property> + <esf:property name="timeout" array="false" encrypted="false" type="Integer"> + <esf:value>20</esf:value> + </esf:property> + <esf:property name="lwt.qos" array="false" encrypted="false" type="Integer"> + <esf:value>0</esf:value> + </esf:property> + <esf:property name="protocol-version" array="false" encrypted="false" type="Integer"> + <esf:value>4</esf:value> + </esf:property> + </esf:properties> + </esf:configuration> + <esf:configuration pid="org.eclipse.kura.data.DataService"> + <esf:properties> + <esf:property name="in-flight-messages.congestion-timeout" array="false" encrypted="false" type="Integer"> + <esf:value>0</esf:value> + </esf:property> + <esf:property name="store.purge-age" array="false" encrypted="false" type="Integer"> + <esf:value>60</esf:value> + </esf:property> + <esf:property name="in-flight-messages.republish-on-new-session" array="false" encrypted="false" type="Boolean"> + <esf:value>true</esf:value> + </esf:property> + <esf:property name="store.capacity" array="false" encrypted="false" type="Integer"> + <esf:value>10000</esf:value> + </esf:property> + <esf:property name="disconnect.quiesce-timeout" array="false" encrypted="false" type="Integer"> + <esf:value>10</esf:value> + </esf:property> + <esf:property name="connect.auto-on-startup" array="false" encrypted="false" type="Boolean"> + <esf:value>false</esf:value> + </esf:property> + <esf:property name="connect.retry-interval" array="false" encrypted="false" type="Integer"> + <esf:value>60</esf:value> + </esf:property> + <esf:property name="service.pid" array="false" encrypted="false" type="String"> + <esf:value>org.eclipse.kura.data.DataService</esf:value> + </esf:property> + <esf:property name="in-flight-messages.max-number" array="false" encrypted="false" type="Integer"> + <esf:value>9</esf:value> + </esf:property> + <esf:property name="store.housekeeper-interval" array="false" encrypted="false" type="Integer"> + <esf:value>900</esf:value> + </esf:property> + </esf:properties> + </esf:configuration> + <esf:configuration pid="org.eclipse.kura.position.PositionService"> + <esf:properties> + <esf:property name="port" array="false" encrypted="false" type="String"> + <esf:value>1-3.2</esf:value> + </esf:property> + <esf:property name="enabled" array="false" encrypted="false" type="Boolean"> + <esf:value>false</esf:value> + </esf:property> + <esf:property name="parity" array="false" encrypted="false" type="Integer"> + <esf:value>0</esf:value> + </esf:property> + <esf:property name="stopBits" array="false" encrypted="false" type="Integer"> + <esf:value>1</esf:value> + </esf:property> + <esf:property name="baudRate" array="false" encrypted="false" type="Integer"> + <esf:value>115200</esf:value> + </esf:property> + <esf:property name="service.pid" array="false" encrypted="false" type="String"> + <esf:value>org.eclipse.kura.position.PositionService</esf:value> + </esf:property> + <esf:property name="bitsPerWord" array="false" encrypted="false" type="Integer"> + <esf:value>8</esf:value> + </esf:property> + </esf:properties> + </esf:configuration> + <esf:configuration pid="org.eclipse.kura.cloud.CloudService"> + <esf:properties> + <esf:property name="encode.gzip" array="false" encrypted="false" type="Boolean"> + <esf:value>true</esf:value> + </esf:property> + <esf:property name="device.custom-name" array="false" encrypted="false" type="String"> + <esf:value>%MACHINE%</esf:value> + </esf:property> + </esf:properties> + </esf:configuration> + <esf:configuration pid="org.eclipse.kura.ssl.SslManagerService"> + <esf:properties> + <esf:property name="ssl.default.protocol" array="false" encrypted="false" type="String"> + <esf:value>TLSv1.2</esf:value> + </esf:property> + <esf:property name="ssl.hostname.verification" array="false" encrypted="false" type="Boolean"> + <esf:value>true</esf:value> + </esf:property> + <esf:property name="ssl.default.trustStore" array="false" encrypted="false" type="String"> + <esf:value>/opt/eclipse/kura/user/security/cacerts.ks</esf:value> + </esf:property> + </esf:properties> + </esf:configuration> +</esf:configurations> diff --git a/external/meta-iot-cloud/recipes-connectivity/kura/kura_4.1.0.bb b/external/meta-iot-cloud/recipes-connectivity/kura/kura_4.1.0.bb new file mode 100644 index 00000000..88a3a1f7 --- /dev/null +++ b/external/meta-iot-cloud/recipes-connectivity/kura/kura_4.1.0.bb @@ -0,0 +1,142 @@ +DESCRIPTION = "The extensible open source Java/OSGi IoT Edge Framework" +HOMEPAGE = "https://www.eclipse.org/kura/" +LICENSE = "EPL-1.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=52a21f73ac77fd790dc40dc5acda0fc2" + +inherit systemd update-rc.d + +DEPENDS = "\ + maven-native \ + openjdk-8-native \ + unzip-native \ +" + +RDEPENDS_${PN} += "java2-runtime" + +SRC_URI = "\ + git://github.com/eclipse/kura.git;branch=develop;tag=KURA_${PV}_RELEASE \ +" + +# Patches +SRC_URI += "\ + file://Remove-default-build-profiles.patch \ + file://Add-Yocto-build-profile.patch \ + file://Fix-equinox-build.patch \ + file://Disable-checksum-generation.patch \ +" + +# Config +SRC_URI += "\ + file://kura.properties.default \ + file://jdk.dio.properties.default \ + file://snapshot_0.xml.default \ + file://log4j.xml.default \ +" + +PR = "r0" + +S = "${WORKDIR}/git" +B = "${WORKDIR}/${BPN}_${PV}_yocto" + +KURA_MEMSIZE ?= "1024" +KURA_PROPERTIES ?= "${WORKDIR}/kura.properties.default" +KURA_DIO_PROPERTIES ?= "${WORKDIR}/jdk.dio.properties.default" +KURA_SNAPSHOT ?= "${WORKDIR}/snapshot_0.xml.default" +KURA_LOG4J_CONFIG ?= "${WORKDIR}/log4j.xml.default" + + +do_configure() { + # Config + sed -i 's|%ARCH%|${TARGET_ARCH}|g' ${S}/kura/distrib/pom.xml + sed -i 's|%DISTRO%|${DISTRO}-${DISTRO_VERSION}|g' ${S}/kura/distrib/pom.xml + sed -i 's|%MACHINE%|${MACHINE}|g' ${S}/kura/distrib/pom.xml + sed -i 's|%MEMSIZE%|${KURA_MEMSIZE}|g' ${S}/kura/distrib/pom.xml + + if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then + sed -i 's|%SERVICE_MANAGER%|systemd|g' ${S}/kura/distrib/pom.xml + elif ${@bb.utils.contains('DISTRO_FEATURES','sysvinit','true','false',d)}; then + sed -i 's|%SERVICE_MANAGER%|sysv|g' ${S}/kura/distrib/pom.xml + else + sed -i 's|%SERVICE_MANAGER%|none|g' ${S}/kura/distrib/pom.xml + fi + + # Snapshot + sed -i 's|%MACHINE%|${MACHINE}|g' ${KURA_SNAPSHOT} + + # Properties + sed -i 's|%DISTRO%|${DISTRO}|g' ${KURA_PROPERTIES} + sed -i 's|%DISTRO_VERSION%|${DISTRO_VERSION}|g' ${KURA_PROPERTIES} + sed -i 's|%MACHINE%|${MACHINE}|g' ${KURA_PROPERTIES} + sed -i 's|%TARGET_SYS%|${TARGET_SYS}|g' ${KURA_PROPERTIES} + + # Create Yocto resources + mkdir -p ${S}/kura/distrib/src/main/resources/yocto + cp ${KURA_SNAPSHOT} ${S}/kura/distrib/src/main/resources/yocto/snapshot_0.xml + cp ${KURA_DIO_PROPERTIES} ${S}/kura/distrib/src/main/resources/yocto/jdk.dio.properties + cp ${KURA_PROPERTIES} ${S}/kura/distrib/src/main/resources/yocto/kura.properties + cp ${KURA_LOG4J_CONFIG} ${S}/kura/distrib/src/main/resources/yocto/log4j.xml +} + +do_compile() { + export JAVA_HOME="${STAGING_LIBDIR_NATIVE}/jvm/openjdk-8-native" + export M3_HOME="${STAGING_DIR_NATIVE}/usr/bin/maven-native" + + cd ${S} + mvn -Dmaven.test.skip=true -f target-platform/pom.xml clean install + mvn -Dmaven.test.skip=true -f kura/pom.xml clean install + mvn -Dmaven.test.skip=true -f kura/distrib/pom.xml clean install + + # Populate build directory + unzip -o ${S}/kura/distrib/target/${BPN}_${PV}_yocto.zip -d ${WORKDIR} +} + +do_install() { + install -d ${D}/${bindir} + install -d ${D}/opt/eclipse/kura + install -d ${D}/opt/eclipse/kura/bin + install -d ${D}/opt/eclipse/kura/framework + install -d ${D}/opt/eclipse/kura/plugins + install -d ${D}/opt/eclipse/kura/user + install -d ${D}/opt/eclipse/kura/user/snapshots + install -d ${D}/opt/eclipse/kura/user/security + + # License + install -m 0644 ${B}/*.html ${D}/opt/eclipse/kura/ + + # Startup Scripts + install -m 0755 ${B}/bin/*.sh ${D}/opt/eclipse/kura/bin + ln -s /opt/eclipse/kura/bin/start_kura.sh ${D}${bindir}/kura + + # Framework + install -m 0644 ${B}/framework/* ${D}/opt/eclipse/kura/framework/ + + # Plugins + install -m 0644 ${B}/plugins/*.jar ${D}/opt/eclipse/kura/plugins/ + + # User + install -m 0644 ${B}/user/log4j.xml ${D}/opt/eclipse/kura/user/ + install -m 0644 ${B}/user/kura_custom.properties ${D}/opt/eclipse/kura/user/ + install -m 0644 ${B}/user/security/cacerts.ks ${D}/opt/eclipse/kura/user/security/ + install -m 0644 ${B}/user/snapshots/*.xml ${D}/opt/eclipse/kura/user/snapshots/ + + # Systemd Service + install -d ${D}${systemd_unitdir}/system + install -m 0644 ${B}/install/kura.service ${D}${systemd_unitdir}/system + + # Sysvinit Service + install -d ${D}/${INIT_D_DIR} + install -m 0755 ${B}/install/kura.init.yocto ${D}/${INIT_D_DIR}/kura + +} + +SYSTEMD_SERVICE_${PN} = "kura.service" +SYSTEMD_AUTO_ENABLE ?= "enable" +INITSCRIPT_PACKAGES = "${PN}" +INITSCRIPT_NAME_${PN} = "kura" + +FILES_${PN} = "\ + ${bindir} \ + ${INIT_D_DIR} \ + ${systemd_unitdir}/system \ + /opt/eclipse/kura \ +" |