You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
product-iots-community/p2-profile/pom.xml

204 lines
11 KiB

<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2018 - 2023, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
~
~ Entgra (Pvt) Ltd. 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>io.entgra.community.iots</groupId>
<artifactId>io.entgra.community.iots.parent</artifactId>
<version>5.3.1-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>io.entgra.community.iots.p2.profile</artifactId>
<packaging>pom</packaging>
<name>Entgra IoT - P2 Profile Module</name>
<url>http://entgra.io</url>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<inherited>false</inherited>
<executions>
<execution>
<id>1-unpack-entgra-iots</id>
<phase>test</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>io.entgra.community.iots</groupId>
<artifactId>io.entgra.community.iots.core</artifactId>
<type>zip</type>
<overWrite>true</overWrite>
<outputDirectory>target</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
<execution>
<id>copy-emqx-exhook</id>
<phase>test</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>io.entgra.device.mgt.plugins</groupId>
<artifactId>io.entgra.device.mgt.plugins.emqx.exhook</artifactId>
<version>${io.entgra.device.mgt.plugins.version}</version>
<type>jar</type>
<overWrite>true</overWrite>
<classifier>jar-with-dependencies</classifier>
<outputDirectory>${project.basedir}/target/${entgra-iot-core}/repository/components/lib/</outputDirectory>
</artifactItem>
</artifactItems>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>true</overWriteSnapshots>
</configuration>
</execution>
<execution>
<id>copy-emqx-initializer</id>
<phase>test</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>io.entgra.device.mgt.plugins</groupId>
<artifactId>io.entgra.device.mgt.plugins.emqx.initializer</artifactId>
<version>${io.entgra.device.mgt.plugins.version}</version>
<type>jar</type>
<overWrite>true</overWrite>
<outputDirectory>${project.basedir}/target/${entgra-iot-core}/repository/components/dropins/</outputDirectory>
</artifactItem>
</artifactItems>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>true</overWriteSnapshots>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.wso2.maven</groupId>
<artifactId>carbon-p2-plugin</artifactId>
<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>
io.entgra.device.mgt.plugins:io.entgra.device.mgt.plugins.adapter.feature:${io.entgra.device.mgt.plugins.version}
</featureArtifactDef>
<featureArtifactDef>
io.entgra.device.mgt.plugins:io.entgra.device.mgt.plugins.notification.listener.feature:${io.entgra.device.mgt.plugins.version}
</featureArtifactDef>
<featureArtifactDef>
io.entgra.device.mgt.plugins:io.entgra.device.mgt.plugins.extension.siddhi.device.feature:${io.entgra.device.mgt.plugins.version}
</featureArtifactDef>
<featureArtifactDef>
io.entgra.device.mgt.plugins:io.entgra.device.mgt.plugins.extension.siddhi.execution.json.feature:${io.entgra.device.mgt.plugins.version}
</featureArtifactDef>
<featureArtifactDef>
io.entgra.device.mgt.plugins:io.entgra.device.mgt.plugins.analytics.feature:${io.entgra.device.mgt.plugins.version}
</featureArtifactDef>
</featureArtifacts>
</configuration>
</execution>
<execution>
<id>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}/target/${entgra-iot-core}/repository/components</destination>
<deleteOldProfileFiles>true</deleteOldProfileFiles>
<features>
<feature>
<id>io.entgra.device.mgt.plugins.adapter.feature.group</id>
<version>${io.entgra.device.mgt.plugins.version}</version>
</feature>
<feature>
<id>io.entgra.device.mgt.plugins.notification.listener.feature.group</id>
<version>${io.entgra.device.mgt.plugins.version}</version>
</feature>
<feature>
<id>io.entgra.device.mgt.plugins.extension.siddhi.device.feature.group</id>
<version>${io.entgra.device.mgt.plugins.version}</version>
</feature>
<feature>
<id>io.entgra.device.mgt.plugins.extension.siddhi.execution.json.feature.group</id>
<version>${io.entgra.device.mgt.plugins.version}</version>
</feature>
<feature>
<id>io.entgra.device.mgt.plugins.analytics.feature.group</id>
<version>${io.entgra.device.mgt.plugins.version}</version>
</feature>
</features>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.google.code.maven-replacer-plugin</groupId>
<artifactId>replacer</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>replace</goal>
</goals>
</execution>
</executions>
<configuration>
<filesToInclude>
${basedir}/target/${entgra-iot-core}/repository/components/default/configuration/org.eclipse.equinox.simpleconfigurator/bundles.info
</filesToInclude>
<replacements>
<replacement>
<token>false</token>
<value>true</value>
</replacement>
</replacements>
</configuration>
</plugin>
</plugins>
</build>
</project>