forked from community/product-iots-community
commit
01a2b6b0a4
@ -0,0 +1,170 @@
|
||||
<!--
|
||||
~ Copyright (c) 2005 - 2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
~ use this file except in compliance with the License. You may obtain a copy
|
||||
~ of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software distributed
|
||||
~ under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
||||
~ CONDITIONS OF ANY KIND, either express or implied. See the License for the
|
||||
~ specific language governing permissions and limitations under the License.
|
||||
-->
|
||||
|
||||
<outputEventAdaptersConfig xmlns:svns="http://org.wso2.securevault/configuration">
|
||||
|
||||
<adapterConfig type="wso2event">
|
||||
<property key="default.thrift.tcp.url">tcp://localhost:7612</property>
|
||||
<property key="default.thrift.ssl.url">ssl://localhost:7712</property>
|
||||
<property key="default.binary.tcp.url">tcp://localhost:9612</property>
|
||||
<property key="default.binary.ssl.url">ssl://localhost:9712</property>
|
||||
</adapterConfig>
|
||||
|
||||
<adapterConfig type="rdbms">
|
||||
<property key="string">VARCHAR(255)</property>
|
||||
<property key="double">DOUBLE</property>
|
||||
<property key="integer">INT</property>
|
||||
<property key="long">BIGINT</property>
|
||||
<property key="float">FLOAT</property>
|
||||
<property key="boolean">BOOL</property>
|
||||
<property key="createTable">CREATE TABLE $TABLE_NAME ($COLUMN_TYPES)</property>
|
||||
<property key="insertDataToTable">INSERT INTO $TABLE_NAME ($COLUMNS) VALUES ($VALUES)</property>
|
||||
<property key="isTableExist">SELECT * FROM $TABLE_NAME limit 1</property>
|
||||
<property key="updateTableRow">UPDATE $TABLE_NAME SET $COLUMN_VALUES WHERE $CONDITION</property>
|
||||
<property key="comma">,</property>
|
||||
<property key="questionMark">?</property>
|
||||
<property key="equal">=</property>
|
||||
<property key="and">AND</property>
|
||||
<property key="selectAllColumnsDataTypeInTable">SELECT COLUMN_NAME, DATA_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = '$TABLE_NAME'</property>
|
||||
<property key="selectFromTable">SELECT $COLUMNS FROM $TABLE_NAME</property>
|
||||
<property key="oracle.string">varchar2(255)</property>
|
||||
<property key="oracle.long">CLOB</property>
|
||||
<property key="oracle.double">BINARY_DOUBLE</property>
|
||||
<property key="oracle.isTableExist">SELECT * FROM $TABLE_NAME WHERE ROWNUM = 1</property>
|
||||
<property key="oracle.selectAllColumnsDataTypeInTable">SELECT COLUMN_NAME, DATA_TYPE FROM USER_TAB_COLS WHERE TABLE_NAME = '$TABLE_NAME'</property>
|
||||
<property key="mssql.string">varchar2(255)</property>
|
||||
<property key="mssql.isTableExist">SELECT TOP 1 * FROM $TABLE_NAME</property>
|
||||
<property key="mssql.selectAllColumnsDataTypeInTable">SELECT COLUMN_NAME, DATA_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = '$TABLE_NAME'</property>
|
||||
<property key="h2.integer">varchar2(255)</property>
|
||||
<property key="h2.long">REAL</property>
|
||||
<property key="h2.selectAllColumnsDataTypeInTable">SHOW COLUMNS FROM $TABLE_NAME</property>
|
||||
</adapterConfig>
|
||||
|
||||
<adapterConfig type="http">
|
||||
<!-- Thread Pool Related Properties -->
|
||||
<property key="minThread">8</property>
|
||||
<property key="maxThread">100</property>
|
||||
<property key="keepAliveTimeInMillis">20000</property>
|
||||
<property key="jobQueueSize">10000</property>
|
||||
<!-- HTTP Client Pool Related Properties -->
|
||||
<property key="defaultMaxConnectionsPerHost">50</property>
|
||||
<property key="maxTotalConnections">1000</property>
|
||||
</adapterConfig>
|
||||
|
||||
<adapterConfig type="jms">
|
||||
<!-- Thread Pool Related Properties -->
|
||||
<property key="minThread">{{output_adapter.jms.min_thread}}</property>
|
||||
<property key="maxThread">{{output_adapter.jms.max_thread}}</property>
|
||||
<property key="keepAliveTimeInMillis">{{output_adapter.jms.keep_alive_time}}</property>
|
||||
<property key="jobQueueSize">{{output_adapter.jms.job_queue_size}}</property>
|
||||
</adapterConfig>
|
||||
|
||||
<adapterConfig type="mqtt">
|
||||
<!-- Thread Pool Related Properties -->
|
||||
<property key="minThread">8</property>
|
||||
<property key="maxThread">100</property>
|
||||
<property key="keepAliveTimeInMillis">20000</property>
|
||||
<property key="jobQueueSize">10000</property>
|
||||
<property key="connectionKeepAliveInterval">60</property>
|
||||
</adapterConfig>
|
||||
|
||||
<adapterConfig type="kafka">
|
||||
<!-- Thread Pool Related Properties -->
|
||||
<property key="minThread">8</property>
|
||||
<property key="maxThread">100</property>
|
||||
<property key="keepAliveTimeInMillis">20000</property>
|
||||
<property key="jobQueueSize">10000</property>
|
||||
</adapterConfig>
|
||||
|
||||
<adapterConfig type="email">
|
||||
<!-- Comment mail.smtp.user and mail.smtp.password properties to support connecting SMTP servers which use trust
|
||||
based authentication rather username/password authentication -->
|
||||
<property key="mail.smtp.from">{{output_adapter.email.from_address}}</property>
|
||||
<property key="mail.smtp.user">{{output_adapter.email.username}}</property>
|
||||
<property key="mail.smtp.password">{{output_adapter.email.password}}</property>
|
||||
<property key="mail.smtp.host">{{output_adapter.email.hostname}}</property>
|
||||
<property key="mail.smtp.port">{{output_adapter.email.port}}</property>
|
||||
<property key="mail.smtp.starttls.enable">{{output_adapter.email.enable_start_tls}}</property>
|
||||
<property key="mail.smtp.auth">{{output_adapter.email.enable_authentication}}</property>
|
||||
<property key="mail.smtp.signature">{{output_adapter.email.signature}}</property>
|
||||
<property key="mail.smtp.replyTo">{{output_adapter.email.reply_to}}</property>
|
||||
{% if output_adapter.email.custom_properties is defined %}
|
||||
<!-- Custom Properties -->
|
||||
{% for property_name,property_value in output_adapter.email.custom_properties.items() %}
|
||||
<property key="{{property_name}}">{{property_value}}</property>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
<!-- Thread Pool Related Properties -->
|
||||
<property key="minThread">8</property>
|
||||
<property key="maxThread">100</property>
|
||||
<property key="keepAliveTimeInMillis">20000</property>
|
||||
<property key="jobQueueSize">10000</property>
|
||||
</adapterConfig>
|
||||
|
||||
<adapterConfig type="ui">
|
||||
<property key="eventQueueSize">30</property>
|
||||
<!-- Thread Pool Related Properties -->
|
||||
<property key="minThread">8</property>
|
||||
<property key="maxThread">100</property>
|
||||
<property key="keepAliveTimeInMillis">20000</property>
|
||||
<property key="jobQueueSize">10000</property>
|
||||
</adapterConfig>
|
||||
|
||||
<adapterConfig type="websocket-local">
|
||||
<!-- Thread Pool Related Properties -->
|
||||
<property key="minThread">8</property>
|
||||
<property key="maxThread">100</property>
|
||||
<property key="keepAliveTimeInMillis">20000</property>
|
||||
<property key="jobQueueSize">10000</property>
|
||||
</adapterConfig>
|
||||
|
||||
<adapterConfig type="websocket">
|
||||
<!-- Thread Pool Related Properties -->
|
||||
<property key="minThread">8</property>
|
||||
<property key="maxThread">100</property>
|
||||
<property key="keepAliveTimeInMillis">20000</property>
|
||||
<property key="jobQueueSize">10000</property>
|
||||
</adapterConfig>
|
||||
|
||||
<adapterConfig type="soap">
|
||||
<!-- Thread Pool Related Properties -->
|
||||
<property key="minThread">8</property>
|
||||
<property key="maxThread">100</property>
|
||||
<property key="keepAliveTimeInMillis">20000</property>
|
||||
<property key="jobQueueSize">10000</property>
|
||||
<!-- Axis2 Client Connection Related Properties -->
|
||||
<property key="axis2ClientConnectionTimeout">10000</property>
|
||||
<property key="reuseHTTPClient">true</property>
|
||||
<property key="autoReleaseConnection">true</property>
|
||||
<property key="maxConnectionsPerHost">50</property>
|
||||
</adapterConfig>
|
||||
|
||||
<adapterConfig type="oauth-mqtt">
|
||||
<!-- Thread Pool Related Properties -->
|
||||
<property key="minThread">8</property>
|
||||
<property key="maxThread">100</property>
|
||||
<property key="keepAliveTimeInMillis">20000</property>
|
||||
<property key="jobQueueSize">10000</property>
|
||||
<property key="connectionKeepAliveInterval">60</property>
|
||||
<property key="dcrUrl">https://${iot.keymanager.host}:${iot.keymanager.https.port}/client-registration/v0.17/register</property>
|
||||
<property key="tokenUrl">https://${iot.gateway.host}:${iot.gateway.https.port}/token</property>
|
||||
<property key="url">tcp://${mqtt.broker.host}:${mqtt.broker.port}</property>
|
||||
<property key="username">admin</property>
|
||||
<property key="password">admin</property>
|
||||
<property key="qos">2</property>
|
||||
<property key="clearSession">true</property>
|
||||
</adapterConfig>
|
||||
|
||||
</outputEventAdaptersConfig>
|
@ -0,0 +1,196 @@
|
||||
<!--
|
||||
~ Copyright (c) 2023, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
|
||||
~
|
||||
~ WSO2 Inc. licenses this file to you under the Apache License,
|
||||
~ Version 2.0 (the "License"); you may not use this file except
|
||||
~ in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing,
|
||||
~ software distributed under the License is distributed on an
|
||||
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
~ KIND, either express or implied. See the License for the
|
||||
~ specific language governing permissions and limitations
|
||||
~ under the License.
|
||||
-->
|
||||
|
||||
<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/maven-v4_0_0.xsd">
|
||||
<parent>
|
||||
<groupId>org.wso2</groupId>
|
||||
<artifactId>wso2</artifactId>
|
||||
<version>1</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>io.entgra.product.community</groupId>
|
||||
<artifactId>iot-devicetype-feature-installation</artifactId>
|
||||
<version>5.2.1-SNAPSHOT</version>
|
||||
<packaging>pom</packaging>
|
||||
<name>Install Virtual Fire Alarm Device Types - IoT Core</name>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.wso2.maven</groupId>
|
||||
<artifactId>carbon-p2-plugin</artifactId>
|
||||
<version>5.1.2</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>2-p2-repo-generation</id>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>p2-repo-gen</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<metadataRepository>file:${basedir}/target/p2-repo</metadataRepository>
|
||||
<artifactRepository>file:${basedir}/target/p2-repo</artifactRepository>
|
||||
<publishArtifacts>true</publishArtifacts>
|
||||
<publishArtifactRepository>true</publishArtifactRepository>
|
||||
<featureArtifacts>
|
||||
<featureArtifactDef>
|
||||
org.wso2.carbon.devicemgt-plugins:org.wso2.carbon.device.mgt.iot.virtualfirealarm.backend.feature:${carbon.device.mgt.plugin.version}
|
||||
</featureArtifactDef>
|
||||
</featureArtifacts>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>default-feature-install</id>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>p2-profile-gen</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<profile>default</profile>
|
||||
<metadataRepository>file:${basedir}/target/p2-repo</metadataRepository>
|
||||
<artifactRepository>file:${basedir}/target/p2-repo</artifactRepository>
|
||||
<destination>${basedir}/../repository/components</destination>
|
||||
<deleteOldProfileFiles>false</deleteOldProfileFiles>
|
||||
<features>
|
||||
<feature>
|
||||
<id>org.wso2.carbon.device.mgt.iot.virtualfirealarm.backend.feature.group</id>
|
||||
<version>${carbon.device.mgt.plugin.version}</version>
|
||||
</feature>
|
||||
</features>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
<pluginRepositories>
|
||||
<pluginRepository>
|
||||
<id>wso2.releases</id>
|
||||
<name>WSO2 internal Repository</name>
|
||||
<url>http://maven.wso2.org/nexus/content/repositories/releases/</url>
|
||||
<releases>
|
||||
<enabled>true</enabled>
|
||||
<updatePolicy>daily</updatePolicy>
|
||||
<checksumPolicy>ignore</checksumPolicy>
|
||||
</releases>
|
||||
</pluginRepository>
|
||||
<pluginRepository>
|
||||
<id>wso2.snapshots</id>
|
||||
<name>Apache Snapshot Repository</name>
|
||||
<url>http://maven.wso2.org/nexus/content/repositories/snapshots/</url>
|
||||
<snapshots>
|
||||
<enabled>true</enabled>
|
||||
<updatePolicy>daily</updatePolicy>
|
||||
</snapshots>
|
||||
<releases>
|
||||
<enabled>false</enabled>
|
||||
</releases>
|
||||
</pluginRepository>
|
||||
<pluginRepository>
|
||||
<id>wso2-nexus</id>
|
||||
<name>WSO2 internal Repository</name>
|
||||
<url>http://maven.wso2.org/nexus/content/groups/wso2-public/</url>
|
||||
<releases>
|
||||
<enabled>true</enabled>
|
||||
<updatePolicy>daily</updatePolicy>
|
||||
<checksumPolicy>ignore</checksumPolicy>
|
||||
</releases>
|
||||
</pluginRepository>
|
||||
</pluginRepositories>
|
||||
|
||||
|
||||
<repositories>
|
||||
<!-- Before adding ANYTHING in here, please start a discussion on the dev list.
|
||||
Ideally the Axis2 build should only use Maven central (which is available
|
||||
by default) and nothing else. We had troubles with other repositories in
|
||||
the past. Therefore configuring additional repositories here should be
|
||||
considered very carefully. -->
|
||||
<repository>
|
||||
<id>wso2-nexus</id>
|
||||
<name>WSO2 internal Repository</name>
|
||||
<url>http://maven.wso2.org/nexus/content/groups/wso2-public/</url>
|
||||
<releases>
|
||||
<enabled>true</enabled>
|
||||
<updatePolicy>daily</updatePolicy>
|
||||
<checksumPolicy>ignore</checksumPolicy>
|
||||
</releases>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>wso2.releases</id>
|
||||
<name>WSO2 internal Repository</name>
|
||||
<url>http://maven.wso2.org/nexus/content/repositories/releases/</url>
|
||||
<releases>
|
||||
<enabled>true</enabled>
|
||||
<updatePolicy>daily</updatePolicy>
|
||||
<checksumPolicy>ignore</checksumPolicy>
|
||||
</releases>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>wso2.snapshots</id>
|
||||
<name>WSO2 Snapshot Repository</name>
|
||||
<url>http://maven.wso2.org/nexus/content/repositories/snapshots/</url>
|
||||
<snapshots>
|
||||
<enabled>true</enabled>
|
||||
<updatePolicy>daily</updatePolicy>
|
||||
</snapshots>
|
||||
<releases>
|
||||
<enabled>false</enabled>
|
||||
</releases>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>entgra-nexus</id>
|
||||
<name>Entgra internal Repository</name>
|
||||
<url>http://nexus.entgra.io/repository/maven-public/</url>
|
||||
<releases>
|
||||
<enabled>true</enabled>
|
||||
<updatePolicy>daily</updatePolicy>
|
||||
<checksumPolicy>ignore</checksumPolicy>
|
||||
</releases>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>entgra.releases</id>
|
||||
<name>Entgra internal Repository</name>
|
||||
<url>http://nexus.entgra.io/repository/maven-releases/</url>
|
||||
<releases>
|
||||
<enabled>true</enabled>
|
||||
<updatePolicy>daily</updatePolicy>
|
||||
<checksumPolicy>ignore</checksumPolicy>
|
||||
</releases>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>entgra.snapshots</id>
|
||||
<name>Entgra Snapshot Repository</name>
|
||||
<url>http://nexus.entgra.io/repository/maven-snapshots/</url>
|
||||
<snapshots>
|
||||
<enabled>true</enabled>
|
||||
<updatePolicy>daily</updatePolicy>
|
||||
</snapshots>
|
||||
<releases>
|
||||
<enabled>false</enabled>
|
||||
</releases>
|
||||
</repository>
|
||||
</repositories>
|
||||
|
||||
<properties>
|
||||
<!--This gets picked from the build properties, Do not change it-->
|
||||
<carbon.device.mgt.plugin.version>6.0.16-SNAPSHOT</carbon.device.mgt.plugin.version>
|
||||
</properties>
|
||||
</project>
|
Loading…
Reference in new issue