| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- 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/maven-v4_0_0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| <parent> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi</artifactId> |
| <version>1.0.0-BETA</version> |
| </parent> |
| <artifactId>nifi-assembly</artifactId> |
| <packaging>pom</packaging> |
| <description>This is the assembly Apache NiFi</description> |
| <build> |
| <plugins> |
| <plugin> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <configuration> |
| <finalName>nifi-${project.version}</finalName> |
| <attach>false</attach> |
| </configuration> |
| <executions> |
| <execution> |
| <id>make shared resource</id> |
| <goals> |
| <goal>single</goal> |
| </goals> |
| <phase>package</phase> |
| <configuration> |
| <archiverConfig> |
| <defaultDirectoryMode>0775</defaultDirectoryMode> |
| <directoryMode>0775</directoryMode> |
| <fileMode>0664</fileMode> |
| </archiverConfig> |
| <descriptors> |
| <descriptor>src/main/assembly/dependencies.xml</descriptor> |
| </descriptors> |
| <tarLongFileMode>posix</tarLongFileMode> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| <dependencies> |
| <dependency> |
| <groupId>ch.qos.logback</groupId> |
| <artifactId>logback-classic</artifactId> |
| <scope>compile</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>jcl-over-slf4j</artifactId> |
| <scope>compile</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>jul-to-slf4j</artifactId> |
| <scope>compile</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>log4j-over-slf4j</artifactId> |
| <scope>compile</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| <scope>compile</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-api</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-framework-api</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-runtime</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-bootstrap</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-resources</artifactId> |
| <classifier>resources</classifier> |
| <scope>runtime</scope> |
| <type>zip</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-docs</artifactId> |
| <classifier>resources</classifier> |
| <scope>runtime</scope> |
| <type>zip</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-framework-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-provenance-repository-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-standard-services-api-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-ssl-context-service-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-distributed-cache-services-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-standard-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-jetty-bundle</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-update-attribute-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-hadoop-libraries-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-hadoop-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-kafka-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-kafka-pubsub-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-http-context-map-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-html-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-kite-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-flume-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-ldap-iaa-providers-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-kerberos-iaa-providers-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-dbcp-service-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-mongodb-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-solr-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-social-media-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-hl7-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-language-translation-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-geo-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-aws-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-ambari-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-ignite-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-avro-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-media-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-couchbase-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-hbase-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-riemann-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-hbase_1_1_2-client-service-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-azure-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-scripting-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-elasticsearch-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-lumberjack-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-email-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-amqp-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-splunk-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-jms-cf-service-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-jms-processors-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-cassandra-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-spring-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-hive-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-site-to-site-reporting-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-mqtt-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-snmp-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-evtx-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-slack-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-windows-event-log-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| </dependencies> |
| |
| <profiles> |
| <profile> |
| <id>rpm</id> |
| <activation> |
| <activeByDefault>false</activeByDefault> |
| </activation> |
| <properties> |
| <nifi.run.as>nifi</nifi.run.as> |
| </properties> |
| <build> |
| <plugins> |
| <plugin> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>unpack-shared-resources</id> |
| <goals> |
| <goal>unpack-dependencies</goal> |
| </goals> |
| <phase>generate-resources</phase> |
| <configuration> |
| <outputDirectory>${project.build.directory}/generated-resources</outputDirectory> |
| <includeArtifactIds>nifi-resources</includeArtifactIds> |
| <includeGroupIds>org.apache.nifi</includeGroupIds> |
| <excludeTransitive>false</excludeTransitive> |
| </configuration> |
| </execution> |
| <execution> |
| <id>unpack-docs</id> |
| <goals> |
| <goal>unpack-dependencies</goal> |
| </goals> |
| <phase>generate-resources</phase> |
| <configuration> |
| <outputDirectory>${project.build.directory}/generated-docs</outputDirectory> |
| <includeArtifactIds>nifi-docs</includeArtifactIds> |
| <includeGroupIds>org.apache.nifi</includeGroupIds> |
| <excludeTransitive>false</excludeTransitive> |
| <excludes>LICENSE,NOTICE</excludes> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>rpm-maven-plugin</artifactId> |
| <configuration> |
| <name>nifi</name> |
| <summary>Apache NiFi</summary> |
| <description>Apache NiFi is dataflow system based on the Flow-Based Programming concepts.</description> |
| <license>Apache License, Version 2.0 and others (see included LICENSE file)</license> |
| <url>http://nifi.apache.org</url> |
| <group>Utilities</group> |
| <prefix>/opt/nifi</prefix> |
| <defineStatements> |
| <defineStatement>_use_internal_dependency_generator 0</defineStatement> |
| </defineStatements> |
| <defaultDirmode>750</defaultDirmode> |
| <defaultFilemode>640</defaultFilemode> |
| <defaultUsername>nifi</defaultUsername> |
| <defaultGroupname>nifi</defaultGroupname> |
| <preinstallScriptlet> |
| <script> |
| /usr/bin/getent group nifi >/dev/null || /usr/sbin/groupadd -r nifi; /usr/bin/getent passwd nifi >/dev/null || /usr/sbin/useradd -r -g nifi -d /opt/nifi -s /sbin/nologin -c "NiFi System User" nifi |
| </script> |
| </preinstallScriptlet> |
| </configuration> |
| <executions> |
| <execution> |
| <id>build-bin-rpm</id> |
| <goals> |
| <goal>attached-rpm</goal> |
| </goals> |
| <configuration> |
| <classifier>bin</classifier> |
| <provides> |
| <provide>nifi</provide> |
| </provides> |
| <mappings> |
| <mapping> |
| <directory>/opt/nifi/nifi-${project.version}</directory> |
| </mapping> |
| <mapping> |
| <directory>/opt/nifi/nifi-${project.version}</directory> |
| <sources> |
| <source> |
| <location>./LICENSE</location> |
| </source> |
| <source> |
| <location>./NOTICE</location> |
| </source> |
| <source> |
| <location>./README.md</location> |
| <destination>README</destination> |
| </source> |
| </sources> |
| </mapping> |
| <mapping> |
| <directory>/opt/nifi</directory> |
| </mapping> |
| <mapping> |
| <directory>/opt/nifi/nifi-${project.version}/bin</directory> |
| <filemode>750</filemode> |
| <sources> |
| <source> |
| <location>${project.build.directory}/generated-resources/bin/nifi.sh</location> |
| <destination>nifi.sh</destination> |
| <filter>true</filter> |
| </source> |
| </sources> |
| </mapping> |
| <mapping> |
| <directory>/opt/nifi/nifi-${project.version}/conf</directory> |
| <configuration>true</configuration> |
| <sources> |
| <source> |
| <location>${project.build.directory}/generated-resources/conf</location> |
| <filter>true</filter> |
| </source> |
| </sources> |
| </mapping> |
| <mapping> |
| <directory>/opt/nifi/nifi-${project.version}/lib</directory> |
| </mapping> |
| <mapping> |
| <directory>/opt/nifi/nifi-${project.version}/lib</directory> |
| <dependency> |
| <excludes> |
| <exclude>org.apache.nifi:nifi-bootstrap</exclude> |
| <exclude>org.apache.nifi:nifi-resources</exclude> |
| <exclude>org.apache.nifi:nifi-docs</exclude> |
| <exclude>commons-io:commons-io</exclude> |
| <exclude>org.apache.commons:commons-lang3</exclude> |
| <exclude>org.antlr:antlr-runtime</exclude> |
| <exclude>javax.activation:activation</exclude> |
| <exclude>javax.mail:mail</exclude> |
| <exclude>org.apache.nifi:nifi-security-utils</exclude> |
| <exclude>org.apache.nifi:nifi-utils</exclude> |
| <exclude>org.apache.nifi:nifi-processor-utils</exclude> |
| <exclude>org.apache.nifi:nifi-expression-language</exclude> |
| </excludes> |
| </dependency> |
| </mapping> |
| <mapping> |
| <directory>/opt/nifi/nifi-${project.version}/lib/bootstrap</directory> |
| <dependency> |
| <includes> |
| <include>commons-io:commons-io</include> |
| <include>org.apache.commons:commons-lang3</include> |
| <include>org.antlr:antlr-runtime</include> |
| <include>javax.activation:activation</include> |
| <include>javax.mail:mail</include> |
| <include>org.apache.nifi:nifi-security-utils</include> |
| <include>org.apache.nifi:nifi-utils</include> |
| <include>org.apache.nifi:nifi-processor-utils</include> |
| <include>org.apache.nifi:nifi-expression-language</include> |
| <include>org.apache.nifi:nifi-bootstrap</include> |
| <include>org.apache.nifi:nifi-api</include> |
| <include>org.slf4j:slf4j-api</include> |
| <include>ch.qos.logback:logback-classic</include> |
| <include>ch.qos.logback:logback-core</include> |
| </includes> |
| </dependency> |
| </mapping> |
| <mapping> |
| <directory>/opt/nifi/nifi-${project.version}/docs</directory> |
| <sources> |
| <source> |
| <location>${project.build.directory}/generated-docs</location> |
| </source> |
| </sources> |
| </mapping> |
| </mappings> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| <profile> |
| <id>include-ranger</id> |
| <activation> |
| <activeByDefault>false</activeByDefault> |
| </activation> |
| <build> |
| <plugins> |
| <plugin> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <configuration> |
| <finalName>nifi-${project.version}</finalName> |
| <attach>false</attach> |
| </configuration> |
| <executions> |
| <execution> |
| <id>make shared resource</id> |
| <goals> |
| <goal>single</goal> |
| </goals> |
| <phase>package</phase> |
| <configuration> |
| <archiverConfig> |
| <defaultDirectoryMode>0775</defaultDirectoryMode> |
| <directoryMode>0775</directoryMode> |
| <fileMode>0664</fileMode> |
| </archiverConfig> |
| <descriptors> |
| <descriptor>src/main/assembly/ranger.xml</descriptor> |
| </descriptors> |
| <tarLongFileMode>posix</tarLongFileMode> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-ranger-nar</artifactId> |
| <type>nar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.ranger</groupId> |
| <artifactId>credentialbuilder</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-ranger-resources</artifactId> |
| </dependency> |
| </dependencies> |
| </profile> |
| </profiles> |
| </project> |