| <!-- |
| 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:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xmlns="http://maven.apache.org/POM/4.0.0" |
| 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> |
| <groupId>org.apache.metron.packaging.mpacks</groupId> |
| <artifactId>metron_mpack</artifactId> |
| <version>0.6.0.0</version> |
| <name>Metron Ambari Management Pack</name> |
| |
| <parent> |
| <groupId>org.apache.metron</groupId> |
| <artifactId>metron-deployment</artifactId> |
| <version>0.6.0</version> |
| <relativePath>../../..</relativePath> |
| </parent> |
| |
| <dependencies> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>build-helper-maven-plugin</artifactId> |
| <version>1.8</version> |
| <executions> |
| <execution> |
| <id>parse-version</id> |
| <phase>validate</phase> |
| <goals> |
| <goal>parse-version</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>metron-version</id> |
| <goals> |
| <goal>regex-property</goal> |
| </goals> |
| <configuration> |
| <name>metron.version</name> |
| <value>${project.parent.version}</value> |
| <regex>-SNAPSHOT</regex> |
| <replacement></replacement> |
| <failIfNoMatch>false</failIfNoMatch> |
| </configuration> |
| </execution> |
| <execution> |
| <id>metron-short-version</id> |
| <goals> |
| <goal>regex-property</goal> |
| </goals> |
| <configuration> |
| <name>metron.short.version</name> |
| <value>${project.parent.version}</value> |
| <regex>\.|-SNAPSHOT</regex> |
| <replacement></replacement> |
| <failIfNoMatch>false</failIfNoMatch> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <artifactId>maven-resources-plugin</artifactId> |
| <version>2.6</version> |
| <executions> |
| <execution> |
| <id>copy-resources</id> |
| <phase>compile</phase> |
| <goals> |
| <goal>copy-resources</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>${basedir}/target/</outputDirectory> |
| <resources> |
| <resource> |
| <directory>${basedir}/src/main/resources</directory> |
| <includes> |
| <include>mpack.json</include> |
| </includes> |
| <filtering>true</filtering> |
| </resource> |
| </resources> |
| </configuration> |
| </execution> |
| <execution> |
| <id>copy-property-templates</id> |
| <phase>prepare-package</phase> |
| <goals> |
| <goal>copy-resources</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>${basedir}/src/main/resources/common-services/METRON/CURRENT/package/templates</outputDirectory> |
| <resources> |
| <resource> |
| <directory>${basedir}/../../../../metron-platform/metron-enrichment/src/main/config</directory> |
| <includes> |
| <include>enrichment-splitjoin.properties.j2</include> |
| <include>enrichment-unified.properties.j2</include> |
| </includes> |
| <filtering>false</filtering> |
| </resource> |
| <resource> |
| <directory>${basedir}/../../../../metron-platform/metron-elasticsearch/src/main/config</directory> |
| <includes> |
| <include>elasticsearch.properties.j2</include> |
| </includes> |
| <filtering>false</filtering> |
| </resource> |
| <resource> |
| <directory>${basedir}/../../../../metron-platform/metron-indexing/src/main/config</directory> |
| <includes> |
| <include>hdfs.properties.j2</include> |
| </includes> |
| <filtering>false</filtering> |
| </resource> |
| <resource> |
| <directory>${basedir}/../../../../metron-platform/metron-solr/src/main/config</directory> |
| <includes> |
| <include>solr.properties.j2</include> |
| </includes> |
| <filtering>false</filtering> |
| </resource> |
| </resources> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <artifactId>maven-jar-plugin</artifactId> |
| <version>${global_jar_version}</version> |
| <executions> |
| <execution> |
| <id>default-jar</id> |
| <!-- put the default-jar in the none phase to skip it from being created --> |
| <phase>none</phase> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <configuration> |
| <appendAssemblyId>false</appendAssemblyId> |
| <descriptors> |
| <descriptor>src/main/assemblies/metron-mpack.xml</descriptor> |
| </descriptors> |
| </configuration> |
| <executions> |
| <execution> |
| <id>build-tarball</id> |
| <phase>package</phase> |
| <goals> |
| <goal>single</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <artifactId>maven-clean-plugin</artifactId> |
| <version>3.0.0</version> |
| <configuration> |
| <filesets> |
| <fileset> |
| <directory>${basedir}/src/main/resources/common-services/METRON/CURRENT/package/templates</directory> |
| <includes> |
| <include>enrichment-unified.properties.j2</include> |
| <include>enrichment-splitjoin.properties.j2</include> |
| <include>elasticsearch.properties.j2</include> |
| <include>hdfs.properties.j2</include> |
| </includes> |
| </fileset> |
| </filesets> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| |
| </project> |