| <!-- |
| ~ Licensed to the Apache Software Foundation (ASF) under one or more |
| ~ contributor license agreements. See the NOTICE file distributed with |
| ~ this work for additional information regarding copyright ownership. |
| ~ The ASF 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/xsd/maven-4.0.0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <groupId>org.apache.unomi</groupId> |
| <artifactId>unomi-root</artifactId> |
| <version>1.0.0-incubating</version> |
| </parent> |
| |
| <artifactId>unomi</artifactId> |
| <packaging>pom</packaging> |
| <name>Apache Unomi :: Distribution Package</name> |
| <description>Packaged distributions of the Apache Unomi Context Server</description> |
| |
| <properties> |
| <appendedResourcesDirectory>${basedir}/../etc/appended-resources</appendedResourcesDirectory> |
| </properties> |
| |
| <dependencies> |
| |
| <dependency> |
| <!-- scope is compile so all features (there is only one) are installed into startup.properties and the feature repo itself is not installed --> |
| <groupId>org.apache.karaf.features</groupId> |
| <artifactId>framework</artifactId> |
| <version>${version.karaf}</version> |
| <type>kar</type> |
| </dependency> |
| <dependency> |
| <!-- scope is runtime so the feature repo is listed in the features service config file, and features may be installed using the karaf-maven-plugin configuration --> |
| <groupId>org.apache.karaf.features</groupId> |
| <artifactId>standard</artifactId> |
| <classifier>features</classifier> |
| <version>${version.karaf}</version> |
| <type>xml</type> |
| <scope>runtime</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.karaf.features</groupId> |
| <artifactId>spring</artifactId> |
| <classifier>features</classifier> |
| <version>${version.karaf}</version> |
| <type>xml</type> |
| <scope>runtime</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.karaf.features</groupId> |
| <artifactId>enterprise</artifactId> |
| <classifier>features</classifier> |
| <version>${version.karaf}</version> |
| <type>xml</type> |
| <scope>runtime</scope> |
| </dependency> |
| |
| <dependency> |
| <!-- scope is runtime so the feature repo is listed in the features service config file, and features may be installed using the karaf-maven-plugin configuration --> |
| <groupId>org.apache.cxf.karaf</groupId> |
| <artifactId>apache-cxf</artifactId> |
| <version>${cxf.version}</version> |
| <classifier>features</classifier> |
| <type>xml</type> |
| <scope>runtime</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.unomi</groupId> |
| <artifactId>unomi-kar</artifactId> |
| <version>1.0.0-incubating</version> |
| <classifier>features</classifier> |
| <type>xml</type> |
| <scope>runtime</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <resources> |
| <resource> |
| <directory>${project.basedir}/..</directory> |
| <filtering>false</filtering> |
| <includes> |
| <include>README*</include> |
| <include>RELEASE*</include> |
| <include>DISCLAIMER*</include> |
| </includes> |
| </resource> |
| <resource> |
| <directory>${project.basedir}/src/main/resources</directory> |
| </resource> |
| </resources> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-resources-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>process-resources</id> |
| <goals> |
| <goal>resources</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-remote-resources-plugin</artifactId> |
| <configuration> |
| <skip>true</skip> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <version>2.10</version> |
| <executions> |
| <execution> |
| <id>unpack-sigar</id> |
| <phase>generate-resources</phase> |
| <goals> |
| <goal>unpack</goal> |
| </goals> |
| <configuration> |
| <artifactItems> |
| <artifactItem> |
| <groupId>org.elasticsearch</groupId> |
| <artifactId>elasticsearch</artifactId> |
| <version>${elasticsearch.version}</version> |
| <type>tar.gz</type> |
| <includes>**/lib/sigar/**</includes> |
| <outputDirectory>${project.build.directory}/assembly</outputDirectory> |
| </artifactItem> |
| </artifactItems> |
| </configuration> |
| </execution> |
| <execution> |
| <id>copy</id> |
| <phase>package</phase> |
| <goals> |
| <goal>copy</goal> |
| </goals> |
| <configuration> |
| <artifactItems> |
| <artifactItem> |
| <groupId>org.apache.unomi</groupId> |
| <artifactId>unomi-wab</artifactId> |
| <version>${project.version}</version> |
| <classifier>unomicfg</classifier> |
| <type>cfg</type> |
| <outputDirectory> |
| ${project.build.directory}/assembly/etc |
| </outputDirectory> |
| <destFileName>org.apache.unomi.web.cfg</destFileName> |
| </artifactItem> |
| <artifactItem> |
| <groupId>org.apache.unomi</groupId> |
| <artifactId>unomi-persistence-elasticsearch-core</artifactId> |
| <version>${project.version}</version> |
| <classifier>elasticsearchcfg</classifier> |
| <type>cfg</type> |
| <outputDirectory> |
| ${project.build.directory}/assembly/etc |
| </outputDirectory> |
| <destFileName>org.apache.unomi.persistence.elasticsearch.cfg</destFileName> |
| </artifactItem> |
| <artifactItem> |
| <groupId>org.apache.unomi</groupId> |
| <artifactId>unomi-persistence-elasticsearch-core</artifactId> |
| <version>${project.version}</version> |
| <classifier>elasticsearchconfig</classifier> |
| <type>yml</type> |
| <outputDirectory> |
| ${project.build.directory}/assembly/etc |
| </outputDirectory> |
| <destFileName>elasticsearch.yml</destFileName> |
| </artifactItem> |
| <artifactItem> |
| <groupId>org.apache.unomi</groupId> |
| <artifactId>unomi-plugins-request</artifactId> |
| <version>${project.version}</version> |
| <classifier>requestcfg</classifier> |
| <type>cfg</type> |
| <outputDirectory> |
| ${project.build.directory}/assembly/etc |
| </outputDirectory> |
| <destFileName>org.apache.unomi.plugins.request.cfg</destFileName> |
| </artifactItem> |
| </artifactItems> |
| <!-- other configurations here --> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>copy-karaf</id> |
| <phase>generate-resources</phase> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| <configuration> |
| <target> |
| <move todir="${project.build.directory}/assembly/lib/sigar"> |
| <fileset dir="${project.build.directory}/assembly/elasticsearch-${elasticsearch.version}/lib/sigar" /> |
| </move> |
| <delete dir="${project.build.directory}/assembly/elasticsearch-${elasticsearch.version}" /> |
| </target> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.karaf.tooling</groupId> |
| <artifactId>karaf-maven-plugin</artifactId> |
| <version>3.0.2</version> |
| <executions> |
| <execution> |
| <id>install-kar</id> |
| <phase>compile</phase> |
| <goals> |
| <goal>install-kars</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>package</id> |
| <goals> |
| <goal>instance-create-archive</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <installedFeatures> |
| <feature>wrapper</feature> |
| </installedFeatures> |
| <bootFeatures> |
| <feature>standard</feature> |
| <feature>management</feature> |
| <feature>ssh</feature> |
| <feature>config</feature> |
| <feature>region</feature> |
| <feature>package</feature> |
| <feature>kar</feature> |
| <feature>war</feature> |
| <feature>cxf</feature> |
| <feature>openwebbeans</feature> |
| <feature>pax-cdi-web-openwebbeans</feature> |
| <feature>unomi-kar</feature> |
| </bootFeatures> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <profiles> |
| <profile> |
| <id>src</id> |
| <activation> |
| <activeByDefault>true</activeByDefault> |
| </activation> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>src</id> |
| <phase>package</phase> |
| <goals> |
| <goal>single</goal> |
| </goals> |
| <configuration> |
| <descriptors> |
| <descriptor>src/main/descriptors/src.xml</descriptor> |
| </descriptors> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| |
| </project> |