| <?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</groupId> |
| <artifactId>nifi-framework</artifactId> |
| <version>1.19.0-SNAPSHOT</version> |
| </parent> |
| <artifactId>nifi-file-authorizer</artifactId> |
| <build> |
| <resources> |
| <resource> |
| <directory>src/main/resources</directory> |
| </resource> |
| <resource> |
| <directory>src/main/xsd</directory> |
| </resource> |
| </resources> |
| <plugins> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>jaxb2-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>authorizations</id> |
| <goals> |
| <goal>xjc</goal> |
| </goals> |
| <configuration> |
| <sources> |
| <source>src/main/xsd/authorizations.xsd</source> |
| </sources> |
| <packageName>org.apache.nifi.authorization.file.generated</packageName> |
| </configuration> |
| </execution> |
| <execution> |
| <id>tenants</id> |
| <goals> |
| <goal>xjc</goal> |
| </goals> |
| <configuration> |
| <sources> |
| <source>src/main/xsd/tenants.xsd</source> |
| </sources> |
| <packageName>org.apache.nifi.authorization.file.tenants.generated</packageName> |
| <clearOutputDir>false</clearOutputDir> |
| </configuration> |
| </execution> |
| <execution> |
| <id>users</id> |
| <goals> |
| <goal>xjc</goal> |
| </goals> |
| <configuration> |
| <sources> |
| <source>src/main/xsd/legacy-users.xsd</source> |
| </sources> |
| <packageName>org.apache.nifi.user.generated</packageName> |
| <clearOutputDir>false</clearOutputDir> |
| </configuration> |
| </execution> |
| </executions> |
| <configuration> |
| <outputDirectory>${project.build.directory}/generated-sources/jaxb</outputDirectory> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-checkstyle-plugin</artifactId> |
| <configuration> |
| <excludes>**/authorization/file/generated/*.java,**/authorization/file/tenants/generated/*.java,**/user/generated/*.java</excludes> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| <profiles> |
| <profile> |
| <!-- This profile, activating when compiling on Java versions above 1.8, provides configuration changes to |
| allow NiFi to be compiled on those JDKs. --> |
| <id>jigsaw</id> |
| <activation> |
| <jdk>(1.8,)</jdk> |
| </activation> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>jaxb2-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>authorizations</id> |
| <configuration> |
| <skipXjc>true</skipXjc> |
| </configuration> |
| </execution> |
| <execution> |
| <id>tenants</id> |
| <configuration> |
| <skipXjc>true</skipXjc> |
| </configuration> |
| </execution> |
| <execution> |
| <id>users</id> |
| <configuration> |
| <skipXjc>true</skipXjc> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.jvnet.jaxb2.maven2</groupId> |
| <artifactId>maven-jaxb2-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>authorizations</id> |
| <goals> |
| <goal>generate</goal> |
| </goals> |
| <configuration> |
| <generatePackage>org.apache.nifi.authorization.file.generated</generatePackage> |
| <schemaDirectory>src/main/xsd</schemaDirectory> |
| <schemaIncludes> |
| <include>authorizations.xsd</include> |
| </schemaIncludes> |
| </configuration> |
| </execution> |
| <execution> |
| <id>tenants</id> |
| <goals> |
| <goal>generate</goal> |
| </goals> |
| <configuration> |
| <generatePackage>org.apache.nifi.authorization.file.tenants.generated</generatePackage> |
| <schemaDirectory>src/main/xsd</schemaDirectory> |
| <schemaIncludes> |
| <include>tenants.xsd</include> |
| </schemaIncludes> |
| <removeOldOutput>false</removeOldOutput> |
| <forceRegenerate>true</forceRegenerate> |
| </configuration> |
| </execution> |
| <execution> |
| <id>users</id> |
| <goals> |
| <goal>generate</goal> |
| </goals> |
| <configuration> |
| <generatePackage>org.apache.nifi.user.generated</generatePackage> |
| <schemaDirectory>src/main/xsd</schemaDirectory> |
| <schemaIncludes> |
| <include>legacy-users.xsd</include> |
| </schemaIncludes> |
| <removeOldOutput>false</removeOldOutput> |
| <forceRegenerate>true</forceRegenerate> |
| </configuration> |
| </execution> |
| </executions> |
| <configuration> |
| <generateDirectory>${project.build.directory}/generated-sources/jaxb</generateDirectory> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| <dependencies> |
| <dependency> |
| <groupId>jakarta.xml.bind</groupId> |
| <artifactId>jakarta.xml.bind-api</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.glassfish.jaxb</groupId> |
| <artifactId>jaxb-runtime</artifactId> |
| </dependency> |
| </dependencies> |
| </profile> |
| </profiles> |
| <dependencies> |
| <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-utils</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-security-utils</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-xml-processing</artifactId> |
| <version>1.19.0-SNAPSHOT</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-properties</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.commons</groupId> |
| <artifactId>commons-lang3</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-framework-authorization</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-framework-core</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>commons-codec</groupId> |
| <artifactId>commons-codec</artifactId> |
| <version>1.15</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi</groupId> |
| <artifactId>nifi-expression-language</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.testcontainers</groupId> |
| <artifactId>testcontainers</artifactId> |
| <version>1.17.3</version> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| </project> |