|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | + Licensed to the Apache Software Foundation (ASF) under one or more |
| 4 | + contributor license agreements. See the NOTICE file distributed with |
| 5 | + this work for additional information regarding copyright ownership. |
| 6 | + The ASF licenses this file to You under the Apache License, Version 2.0 |
| 7 | + (the "License"); you may not use this file except in compliance with |
| 8 | + the License. You may obtain a copy of the License at |
| 9 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | + Unless required by applicable law or agreed to in writing, software |
| 11 | + distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | + See the License for the specific language governing permissions and |
| 14 | + limitations under the License. |
| 15 | +--> |
| 16 | +<project xmlns="http://maven.apache.org/POM/4.0.0" |
| 17 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 18 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 19 | + <modelVersion>4.0.0</modelVersion> |
| 20 | + <parent> |
| 21 | + <groupId>org.apache.nifi</groupId> |
| 22 | + <artifactId>nifi-parquet-bundle</artifactId> |
| 23 | + <version>2.7.0-SNAPSHOT</version> |
| 24 | + </parent> |
| 25 | + <artifactId>nifi-parquet-content-viewer</artifactId> |
| 26 | + <packaging>war</packaging> |
| 27 | + <properties> |
| 28 | + <source.skip>true</source.skip> |
| 29 | + <standard-content-viewer.ui.working.dir>${project.build.directory}/standard-content-viewer-ui-working-directory</standard-content-viewer.ui.working.dir> |
| 30 | + </properties> |
| 31 | + <dependencies> |
| 32 | + <dependency> |
| 33 | + <groupId>org.apache.nifi</groupId> |
| 34 | + <artifactId>nifi-framework-api</artifactId> |
| 35 | + <version>2.7.0-SNAPSHOT</version> |
| 36 | + <scope>provided</scope> <!-- expected to be provided by parent classloader --> |
| 37 | + </dependency> |
| 38 | + <dependency> |
| 39 | + <groupId>org.apache.nifi</groupId> |
| 40 | + <artifactId>nifi-content-viewer-utils</artifactId> |
| 41 | + <version>2.7.0-SNAPSHOT</version> |
| 42 | + </dependency> |
| 43 | + <dependency> |
| 44 | + <groupId>org.apache.nifi</groupId> |
| 45 | + <artifactId>nifi-web-servlet-shared</artifactId> |
| 46 | + <version>2.7.0-SNAPSHOT</version> |
| 47 | + </dependency> |
| 48 | + <dependency> |
| 49 | + <groupId>org.apache.nifi</groupId> |
| 50 | + <artifactId>nifi-frontend</artifactId> |
| 51 | + <version>2.7.0-SNAPSHOT</version> |
| 52 | + </dependency> |
| 53 | + <dependency> |
| 54 | + <groupId>org.glassfish.jersey.core</groupId> |
| 55 | + <artifactId>jersey-common</artifactId> |
| 56 | + </dependency> |
| 57 | + <dependency> |
| 58 | + <groupId>org.apache.parquet</groupId> |
| 59 | + <artifactId>parquet-common</artifactId> |
| 60 | + <version>${parquet.version}</version> |
| 61 | + <scope>provided</scope> |
| 62 | + </dependency> |
| 63 | + <dependency> |
| 64 | + <groupId>org.apache.parquet</groupId> |
| 65 | + <artifactId>parquet-hadoop</artifactId> |
| 66 | + <version>${parquet.version}</version> |
| 67 | + <scope>provided</scope> |
| 68 | + </dependency> |
| 69 | + <dependency> |
| 70 | + <groupId>org.apache.parquet</groupId> |
| 71 | + <artifactId>parquet-avro</artifactId> |
| 72 | + <version>${parquet.version}</version> |
| 73 | + <scope>provided</scope> |
| 74 | + </dependency> |
| 75 | + <dependency> |
| 76 | + <groupId>org.apache.hadoop</groupId> |
| 77 | + <artifactId>hadoop-common</artifactId> |
| 78 | + <version>${hadoop.version}</version> |
| 79 | + <scope>provided</scope> |
| 80 | + <exclusions> |
| 81 | + <exclusion> |
| 82 | + <groupId>log4j</groupId> |
| 83 | + <artifactId>log4j</artifactId> |
| 84 | + </exclusion> |
| 85 | + <exclusion> |
| 86 | + <groupId>org.slf4j</groupId> |
| 87 | + <artifactId>slf4j-reload4j</artifactId> |
| 88 | + </exclusion> |
| 89 | + <exclusion> |
| 90 | + <groupId>org.slf4j</groupId> |
| 91 | + <artifactId>slf4j-log4j12</artifactId> |
| 92 | + </exclusion> |
| 93 | + <exclusion> |
| 94 | + <groupId>commons-logging</groupId> |
| 95 | + <artifactId>commons-logging</artifactId> |
| 96 | + </exclusion> |
| 97 | + </exclusions> |
| 98 | + </dependency> |
| 99 | + <dependency> |
| 100 | + <groupId>org.apache.nifi</groupId> |
| 101 | + <artifactId>nifi-parquet-shared</artifactId> |
| 102 | + <version>2.7.0-SNAPSHOT</version> |
| 103 | + <scope>provided</scope> |
| 104 | + </dependency> |
| 105 | + </dependencies> |
| 106 | + <build> |
| 107 | + <plugins> |
| 108 | + <!-- |
| 109 | + Unpack the built standard content viewer front end application |
| 110 | + --> |
| 111 | + <plugin> |
| 112 | + <groupId>org.apache.maven.plugins</groupId> |
| 113 | + <artifactId>maven-dependency-plugin</artifactId> |
| 114 | + <executions> |
| 115 | + <execution> |
| 116 | + <id>unpack-standard-content-viewer-ui</id> |
| 117 | + <phase>prepare-package</phase> |
| 118 | + <goals> |
| 119 | + <goal>unpack-dependencies</goal> |
| 120 | + </goals> |
| 121 | + <configuration> |
| 122 | + <includeGroupIds>org.apache.nifi</includeGroupIds> |
| 123 | + <includeArtifactIds>nifi-frontend</includeArtifactIds> |
| 124 | + <excludeTransitive>true</excludeTransitive> |
| 125 | + <silent>false</silent> |
| 126 | + <outputDirectory>${standard-content-viewer.ui.working.dir}</outputDirectory> |
| 127 | + <includes>standard-content-viewer/**/*</includes> |
| 128 | + </configuration> |
| 129 | + </execution> |
| 130 | + </executions> |
| 131 | + </plugin> |
| 132 | + <!-- |
| 133 | + Include the Standard Content Viewer UI and exclude the JAR dependency |
| 134 | + --> |
| 135 | + <plugin> |
| 136 | + <artifactId>maven-war-plugin</artifactId> |
| 137 | + <configuration> |
| 138 | + <webResources> |
| 139 | + <resource> |
| 140 | + <directory>${standard-content-viewer.ui.working.dir}/standard-content-viewer</directory> |
| 141 | + <includes>**/*</includes> |
| 142 | + <targetPath>WEB-INF/classes/static</targetPath> |
| 143 | + </resource> |
| 144 | + <resource> |
| 145 | + <directory>src/main/webapp/META-INF</directory> |
| 146 | + <targetPath>META-INF</targetPath> |
| 147 | + <includes> |
| 148 | + <include>nifi-content-viewer</include> |
| 149 | + </includes> |
| 150 | + <filtering>false</filtering> |
| 151 | + </resource> |
| 152 | + </webResources> |
| 153 | + <packagingExcludes>WEB-INF/lib/nifi-frontend*.jar</packagingExcludes> |
| 154 | + </configuration> |
| 155 | + </plugin> |
| 156 | + </plugins> |
| 157 | + </build> |
| 158 | +</project> |
0 commit comments