mirror of https://github.com/apache/nifi.git
157 lines
7.3 KiB
XML
157 lines
7.3 KiB
XML
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<!-- 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. -->
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<parent>
|
|
<groupId>org.apache.nifi</groupId>
|
|
<artifactId>nifi-standard-bundle</artifactId>
|
|
<version>2.0.0-SNAPSHOT</version>
|
|
</parent>
|
|
<artifactId>nifi-standard-content-viewer</artifactId>
|
|
<packaging>war</packaging>
|
|
<properties>
|
|
<frontend.dependency.configs>${basedir}/src/main/frontend</frontend.dependency.configs>
|
|
<frontend.working.dir>${project.build.directory}/frontend-working-directory</frontend.working.dir>
|
|
<frontend.assets>${project.build.directory}/${project.build.finalName}/assets</frontend.assets>
|
|
</properties>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.apache.nifi</groupId>
|
|
<artifactId>nifi-xml-processing</artifactId>
|
|
<version>2.0.0-SNAPSHOT</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
<artifactId>jackson-databind</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.nifi</groupId>
|
|
<artifactId>nifi-framework-api</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.avro</groupId>
|
|
<artifactId>avro</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.yaml</groupId>
|
|
<artifactId>snakeyaml</artifactId>
|
|
</dependency>
|
|
</dependencies>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-war-plugin</artifactId>
|
|
<configuration>
|
|
<webResources>
|
|
<resource>
|
|
<directory>src/main/webapp/WEB-INF/jsp</directory>
|
|
<targetPath>WEB-INF/jsp</targetPath>
|
|
<includes>
|
|
<include>codemirror.jsp</include>
|
|
</includes>
|
|
<filtering>true</filtering>
|
|
</resource>
|
|
</webResources>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>copy-client-side-deps</id>
|
|
<phase>prepare-package</phase>
|
|
<goals>
|
|
<goal>copy-resources</goal>
|
|
</goals>
|
|
<configuration>
|
|
<outputDirectory>${frontend.assets}</outputDirectory>
|
|
<resources>
|
|
<resource>
|
|
<directory>${frontend.working.dir}/node_modules</directory>
|
|
<filtering>false</filtering>
|
|
<includes>
|
|
<!-- jquery -->
|
|
<include>jquery/dist/jquery.min*</include>
|
|
<include>jquery/LICENSE.txt</include>
|
|
</includes>
|
|
</resource>
|
|
</resources>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>copy-package-json</id>
|
|
<phase>generate-sources</phase>
|
|
<goals>
|
|
<goal>copy-resources</goal>
|
|
</goals>
|
|
<configuration>
|
|
<outputDirectory>${frontend.working.dir}</outputDirectory>
|
|
<resources>
|
|
<resource>
|
|
<directory>${frontend.dependency.configs}</directory>
|
|
<filtering>false</filtering>
|
|
<includes>
|
|
<include>package.json</include>
|
|
<include>package-lock.json</include>
|
|
</includes>
|
|
</resource>
|
|
</resources>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>com.github.eirslett</groupId>
|
|
<artifactId>frontend-maven-plugin</artifactId>
|
|
<version>${frontend.mvn.plugin.version}</version>
|
|
<configuration>
|
|
<installDirectory>${frontend.working.dir}</installDirectory>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>install-node-and-npm</id>
|
|
<goals>
|
|
<goal>install-node-and-npm</goal>
|
|
</goals>
|
|
<phase>generate-resources</phase>
|
|
<configuration>
|
|
<nodeVersion>${node.version}</nodeVersion>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>npm install</id>
|
|
<goals>
|
|
<goal>npm</goal>
|
|
</goals>
|
|
<configuration>
|
|
<arguments>run ci</arguments>
|
|
<workingDirectory>${frontend.working.dir}</workingDirectory>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.rat</groupId>
|
|
<artifactId>apache-rat-plugin</artifactId>
|
|
<configuration>
|
|
<excludes combine.children="append">
|
|
<exclude>src/main/frontend/package.json</exclude>
|
|
<exclude>src/main/frontend/package-lock.json</exclude>
|
|
<exclude>src/main/webapp/js/codemirror/</exclude>
|
|
</excludes>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project>
|