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.
158 lines
7.0 KiB
158 lines
7.0 KiB
<!--
|
|
~ Copyright (c) 2016, 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>org.wso2.carbon.devicemgt-plugins</groupId>
|
|
<artifactId>devicetype-feature-installation</artifactId>
|
|
<version>1.0.0</version>
|
|
<packaging>pom</packaging>
|
|
<name>Creating custom distribution</name>
|
|
<url>http://wso2.org</url>
|
|
|
|
<modules>
|
|
<!-- STEP#1 ADD THE LOCATION OF YOUR DEVICE-TYPE -->
|
|
<module>samples/connectedcup</module>
|
|
<module>samples/currentsensor</module>
|
|
<module>samples/firealarm</module>
|
|
</modules>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.wso2.maven</groupId>
|
|
<artifactId>carbon-p2-plugin</artifactId>
|
|
<version>1.5.3</version>
|
|
<executions>
|
|
<execution>
|
|
<id>2-p2-repo-generation</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>p2-repo-gen</goal>
|
|
</goals>
|
|
<configuration>
|
|
<metadataRepository>file:${basedir}/samples/p2-repo</metadataRepository>
|
|
<artifactRepository>file:${basedir}/samples/p2-repo</artifactRepository>
|
|
<publishArtifacts>true</publishArtifacts>
|
|
<publishArtifactRepository>true</publishArtifactRepository>
|
|
|
|
<featureArtifacts>
|
|
<featureArtifactDef>
|
|
<!-- STEP#2. ADD YOUR DEVICE TYPE FEATURE HERE "< GROUP_ID:ARTIFACT_ID:VERSION >" -->
|
|
org.wso2.carbon.devicemgt-plugins:org.coffeeking.connectedcup.feature:2.0.4-SNAPSHOT
|
|
</featureArtifactDef>
|
|
<featureArtifactDef>
|
|
org.homeautomation:org.homeautomation.currentsensor.feature:2.0.4-SNAPSHOT
|
|
</featureArtifactDef>
|
|
<featureArtifactDef>
|
|
org.homeautomation:org.homeautomation.firealarm.feature:1.0.0-SNAPSHOT
|
|
</featureArtifactDef>
|
|
</featureArtifacts>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.wso2.maven</groupId>
|
|
<artifactId>carbon-p2-plugin</artifactId>
|
|
<version>1.5.3</version>
|
|
<executions>
|
|
<execution>
|
|
<id>feature-install</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>p2-profile-gen</goal>
|
|
</goals>
|
|
<configuration>
|
|
<profile>default</profile>
|
|
<metadataRepository>file:${basedir}/samples/p2-repo</metadataRepository>
|
|
<artifactRepository>file:${basedir}/samples/p2-repo</artifactRepository>
|
|
<destination>repository/components</destination>
|
|
<deleteOldProfileFiles>true</deleteOldProfileFiles>
|
|
<features>
|
|
<!-- STEP#3. ADD YOUR DEVICE TYPE FEATURE GROUP HERE "<ARTIFACT_ID>.group" -->
|
|
<feature>
|
|
<id>org.coffeeking.connectedcup.feature.group</id>
|
|
<version>2.0.4-SNAPSHOT</version>
|
|
</feature>
|
|
<feature>
|
|
<id>org.homeautomation.currentsensor.feature.group</id>
|
|
<version>2.0.4-SNAPSHOT</version>
|
|
</feature>
|
|
<feature>
|
|
<id>org.homeautomation.firealarm.feature.group</id>
|
|
<version>1.0.0-SNAPSHOT</version>
|
|
</feature>
|
|
</features>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
<version>1.1</version>
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<configuration>
|
|
<tasks>
|
|
<replace token="false" value="true" dir="repository/components/default/configuration/org.eclipse.equinox.simpleconfigurator">
|
|
<include name="**/bundles.info"/>
|
|
</replace>
|
|
</tasks>
|
|
</configuration>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<repositories>
|
|
<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>
|
|
</repositories>
|
|
<pluginRepositories>
|
|
<pluginRepository>
|
|
<id>wso2-maven2-repository</id>
|
|
<url>http://dist.wso2.org/maven2</url>
|
|
</pluginRepository>
|
|
<pluginRepository>
|
|
<id>wso2-maven2-snapshot-repository</id>
|
|
<url>http://dist.wso2.org/snapshots/maven2</url>
|
|
</pluginRepository>
|
|
</pluginRepositories>
|
|
</project> |