2023-11-27 10:39:51 -05:00
|
|
|
<?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.
|
|
|
|
-->
|
|
|
|
|
2024-01-25 19:11:28 -05:00
|
|
|
<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">
|
2023-11-27 10:39:51 -05:00
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
|
|
<parent>
|
|
|
|
<groupId>org.apache.nifi</groupId>
|
|
|
|
<artifactId>nifi-web</artifactId>
|
2024-01-25 19:11:28 -05:00
|
|
|
<version>2.0.0-M2</version>
|
2023-11-27 10:39:51 -05:00
|
|
|
</parent>
|
|
|
|
|
|
|
|
<artifactId>nifi-web-frontend</artifactId>
|
2024-01-25 19:11:28 -05:00
|
|
|
<version>2.0.0-M2</version>
|
2023-11-27 10:39:51 -05:00
|
|
|
<packaging>war</packaging>
|
|
|
|
<properties>
|
|
|
|
<node.version>v20.5.1</node.version>
|
|
|
|
<frontend.source>${basedir}/src/main/nifi</frontend.source>
|
|
|
|
<frontend.working.dir>${project.build.directory}/frontend-working-directory</frontend.working.dir>
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<!--
|
|
|
|
Copy src into frontend working directory.
|
|
|
|
-->
|
|
|
|
<execution>
|
|
|
|
<id>copy-source</id>
|
|
|
|
<phase>initialize</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>copy-resources</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<outputDirectory>${frontend.working.dir}</outputDirectory>
|
|
|
|
<resources>
|
|
|
|
<resource>
|
|
|
|
<directory>${frontend.source}</directory>
|
|
|
|
<filtering>false</filtering>
|
|
|
|
<excludes>
|
|
|
|
<exclude>.angular/**/*</exclude>
|
|
|
|
<exclude>node_modules/**/*</exclude>
|
|
|
|
</excludes>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<!--
|
|
|
|
Stage the final bundle of JS to be included in the .war
|
|
|
|
-->
|
|
|
|
<execution>
|
|
|
|
<id>copy-web-ui-bundle</id>
|
|
|
|
<phase>prepare-package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>copy-resources</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<outputDirectory>${project.build.directory}/${project.build.finalName}</outputDirectory>
|
|
|
|
<resources>
|
|
|
|
<resource>
|
|
|
|
<directory>${frontend.working.dir}/dist/nifi</directory>
|
|
|
|
<filtering>false</filtering>
|
|
|
|
<includes>
|
|
|
|
<include>**/*</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>
|
|
|
|
<!--
|
|
|
|
Install node and npm.
|
|
|
|
-->
|
|
|
|
<execution>
|
|
|
|
<id>install-node-and-npm</id>
|
|
|
|
<goals>
|
|
|
|
<goal>install-node-and-npm</goal>
|
|
|
|
</goals>
|
|
|
|
<phase>initialize</phase>
|
|
|
|
<configuration>
|
|
|
|
<nodeVersion>${node.version}</nodeVersion>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<!--
|
|
|
|
Install node_modules (build, test, AND client side dependencies).
|
|
|
|
-->
|
|
|
|
<execution>
|
|
|
|
<id>npm-install</id>
|
|
|
|
<goals>
|
|
|
|
<goal>npm</goal>
|
|
|
|
</goals>
|
|
|
|
<phase>initialize</phase>
|
|
|
|
<configuration>
|
|
|
|
<arguments>run ci</arguments>
|
|
|
|
<workingDirectory>${frontend.working.dir}</workingDirectory>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<!--
|
|
|
|
Bundle, minify, and gzip compress all the javascript.
|
|
|
|
-->
|
|
|
|
<execution>
|
|
|
|
<id>package-web-ui</id>
|
|
|
|
<goals>
|
|
|
|
<goal>npm</goal>
|
|
|
|
</goals>
|
|
|
|
<phase>generate-resources</phase>
|
|
|
|
<configuration>
|
|
|
|
<arguments>run build</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/nifi/coverage/**/*</exclude>
|
|
|
|
<exclude>src/main/nifi/node_modules/**/*</exclude>
|
|
|
|
<exclude>src/main/nifi/src/assets/fonts/**/*</exclude>
|
|
|
|
<exclude>src/main/nifi/.editorconfig</exclude>
|
|
|
|
<exclude>src/main/nifi/README.md</exclude>
|
|
|
|
<exclude>src/main/nifi/proxy.config.mjs</exclude>
|
|
|
|
<exclude>src/main/nifi/.prettierrc</exclude>
|
|
|
|
<exclude>src/main/nifi/src/.eslintrc</exclude>
|
|
|
|
</excludes>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
2023-12-29 22:11:47 -05:00
|
|
|
<groupId>jakarta.servlet</groupId>
|
|
|
|
<artifactId>jakarta.servlet-api</artifactId>
|
2023-11-27 10:39:51 -05:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.nifi</groupId>
|
|
|
|
<artifactId>nifi-web-utils</artifactId>
|
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
</project>
|