| <?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 https://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| <parent> |
| <groupId>org.apache.nifi.registry</groupId> |
| <artifactId>nifi-registry-core</artifactId> |
| <version>2.0.0-M2</version> |
| </parent> |
| <artifactId>nifi-registry-web-api</artifactId> |
| <packaging>war</packaging> |
| |
| <properties> |
| <swagger.source.dir>${project.basedir}/src/main/resources/swagger</swagger.source.dir> |
| <asciidoc.source.dir>${project.basedir}/src/main/asciidoc</asciidoc.source.dir> |
| <asciidoc.generated.dir>${project.build.directory}/asciidoc</asciidoc.generated.dir> |
| <docs.dir>${project.build.directory}/${project.artifactId}-${project.version}/docs/</docs.dir> |
| <api.docs.dir>${docs.dir}/rest-api/</api.docs.dir> |
| </properties> |
| |
| <build> |
| <resources> |
| <resource> |
| <directory>src/main/resources</directory> |
| </resource> |
| </resources> |
| <plugins> |
| <plugin> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-maven-plugin</artifactId> |
| <version>${spring.boot.version}</version> |
| </plugin> |
| <plugin> |
| <artifactId>maven-war-plugin</artifactId> |
| <configuration> |
| <failOnMissingWebXml>false</failOnMissingWebXml> |
| </configuration> |
| </plugin> |
| <plugin> |
| <artifactId>maven-resources-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>openapi-filtering</id> |
| <phase>validate</phase> |
| <goals> |
| <goal>copy-resources</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>${project.build.outputDirectory}</outputDirectory> |
| <resources> |
| <resource> |
| <directory>src/main/resources/openapi</directory> |
| <filtering>true</filtering> |
| </resource> |
| </resources> |
| </configuration> |
| </execution> |
| <execution> |
| <id>copy-resources</id> |
| <phase>validate</phase> |
| <goals> |
| <goal>copy-resources</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>${api.docs.dir}/images</outputDirectory> |
| <resources> |
| <resource> |
| <directory>src/main/resources/images</directory> |
| </resource> |
| </resources> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>io.swagger.core.v3</groupId> |
| <artifactId>swagger-maven-plugin-jakarta</artifactId> |
| <configuration> |
| <resourcePackages> |
| <package>org.apache.nifi.registry.web.api</package> |
| </resourcePackages> |
| <outputPath>${api.docs.dir}</outputPath> |
| <outputFileName>swagger</outputFileName> |
| <outputFormat>JSONANDYAML</outputFormat> |
| <prettyPrint>true</prettyPrint> |
| <defaultResponseCode>200</defaultResponseCode> |
| <configurationFilePath>${project.build.outputDirectory}/openapi.yaml</configurationFilePath> |
| <objectMapperProcessorClass>org.apache.nifi.swagger.integration.StandardObjectMapperProcessor</objectMapperProcessorClass> |
| </configuration> |
| <executions> |
| <execution> |
| <phase>compile</phase> |
| <goals> |
| <goal>resolve</goal> |
| </goals> |
| </execution> |
| </executions> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-swagger-integration</artifactId> |
| <version>2.0.0-M2</version> |
| </dependency> |
| </dependencies> |
| </plugin> |
| <plugin> |
| <groupId>io.swagger.codegen.v3</groupId> |
| <artifactId>swagger-codegen-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <phase>compile</phase> |
| <goals> |
| <goal>generate</goal> |
| </goals> |
| <configuration> |
| <inputSpec>${api.docs.dir}/swagger.yaml</inputSpec> |
| <output>${api.docs.dir}</output> |
| <language>html</language> |
| <templateDirectory>${project.basedir}/src/main/resources/templates</templateDirectory> |
| <generateApiTests>false</generateApiTests> |
| <generateModelTests>false</generateModelTests> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.rat</groupId> |
| <artifactId>apache-rat-plugin</artifactId> |
| <configuration> |
| <excludes combine.children="append"> |
| <exclude>src/test/resources/test-versioned-flow-snapshot.json</exclude> |
| </excludes> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-web</artifactId> |
| <version>${spring.boot.version}</version> |
| <exclusions> |
| <!-- Spring Boot Starter Logging 2 does not support Logback 1.3 --> |
| <exclusion> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-logging</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-jersey</artifactId> |
| <version>${spring.boot.version}</version> |
| <exclusions> |
| <!-- spring-boot-starter-jersey brings in a Spring 4.x version of spring-aop which causes problems --> |
| <exclusion> |
| <groupId>org.springframework</groupId> |
| <artifactId>spring-aop</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <!-- Exclude micrometer-core because it creates a class cast issue with logback, revisit later --> |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-actuator</artifactId> |
| <version>${spring.boot.version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>io.micrometer</groupId> |
| <artifactId>micrometer-core</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework.security.kerberos</groupId> |
| <artifactId>spring-security-kerberos-core</artifactId> |
| <version>1.0.1.RELEASE</version> |
| <exclusions> |
| <exclusion> |
| <groupId>org.springframework</groupId> |
| <artifactId>spring-core</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.springframework.security</groupId> |
| <artifactId>spring-security-core</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <!-- Must be marked provided in order to produce a correct WAR --> |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-tomcat</artifactId> |
| <version>${spring.boot.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi.registry</groupId> |
| <artifactId>nifi-registry-framework</artifactId> |
| <version>2.0.0-M2</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi.registry</groupId> |
| <artifactId>nifi-registry-revision-spring-jdbc</artifactId> |
| <version>2.0.0-M2</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi.registry</groupId> |
| <artifactId>nifi-registry-revision-entity-service</artifactId> |
| <version>2.0.0-M2</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-property-utils</artifactId> |
| <scope>provided</scope> <!-- will be in lib dir --> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi.registry</groupId> |
| <artifactId>nifi-registry-properties</artifactId> |
| <version>2.0.0-M2</version> |
| <scope>provided</scope> <!-- This will be in the lib directory --> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi.registry</groupId> |
| <artifactId>nifi-registry-security-api</artifactId> |
| <version>2.0.0-M2</version> |
| <scope>provided</scope> <!-- This will be in lib directory --> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi.registry</groupId> |
| <artifactId>nifi-registry-provider-api</artifactId> |
| <version>2.0.0-M2</version> |
| <scope>provided</scope> <!-- This will be in lib directory --> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi.registry</groupId> |
| <artifactId>nifi-registry-security-utils</artifactId> |
| <version>2.0.0-M2</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-security-cert</artifactId> |
| <version>2.0.0-M2</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.commons</groupId> |
| <artifactId>commons-lang3</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>jakarta.servlet</groupId> |
| <artifactId>jakarta.servlet-api</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>jakarta.xml.bind</groupId> |
| <artifactId>jakarta.xml.bind-api</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.glassfish.jaxb</groupId> |
| <artifactId>jaxb-runtime</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>io.swagger.core.v3</groupId> |
| <artifactId>swagger-annotations</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.glassfish.jersey.media</groupId> |
| <artifactId>jersey-media-multipart</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>io.jsonwebtoken</groupId> |
| <artifactId>jjwt</artifactId> |
| <version>0.12.3</version> |
| </dependency> |
| <!-- Test Dependencies --> |
| <dependency> |
| <groupId>org.apache.nifi.registry</groupId> |
| <artifactId>nifi-registry-test</artifactId> |
| <version>2.0.0-M2</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi.registry</groupId> |
| <artifactId>nifi-registry-client</artifactId> |
| <version>2.0.0-M2</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-jetty</artifactId> |
| <version>${spring.boot.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>com.unboundid</groupId> |
| <artifactId>unboundid-ldapsdk</artifactId> |
| <version>6.0.10</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.eclipse.jetty</groupId> |
| <artifactId>jetty-util</artifactId> |
| <version>${jetty.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>com.nimbusds</groupId> |
| <artifactId>oauth2-oidc-sdk</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>com.google.guava</groupId> |
| <artifactId>guava</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework.security</groupId> |
| <artifactId>spring-security-oauth2-resource-server</artifactId> |
| </dependency> |
| </dependencies> |
| </project> |