From b5c3a2d7f9bfbd7364f0110aebd1fcd5a30bde1f Mon Sep 17 00:00:00 2001 From: Bryan Bende Date: Fri, 11 Sep 2020 16:30:08 -0400 Subject: [PATCH] NIFI-7802 Remove commons-configuration2 dependency from nifi-security-utils which ends up nifi-standard-services-api and on the classpath of any standard services Signed-off-by: Nathan Gough This closes #4525 --- nifi-commons/nifi-security-utils/pom.xml | 5 -- nifi-commons/nifi-security-xml-config/pom.xml | 78 +++++++++++++++++++ .../security/xml/SafeXMLConfiguration.java | 0 nifi-commons/pom.xml | 1 + .../nifi-lookup-services/pom.xml | 5 ++ 5 files changed, 84 insertions(+), 5 deletions(-) create mode 100644 nifi-commons/nifi-security-xml-config/pom.xml rename nifi-commons/{nifi-security-utils => nifi-security-xml-config}/src/main/java/org/apache/nifi/security/xml/SafeXMLConfiguration.java (100%) diff --git a/nifi-commons/nifi-security-utils/pom.xml b/nifi-commons/nifi-security-utils/pom.xml index 58d415112c..aa3167a4b8 100644 --- a/nifi-commons/nifi-security-utils/pom.xml +++ b/nifi-commons/nifi-security-utils/pom.xml @@ -84,11 +84,6 @@ spock-core test - - org.apache.commons - commons-configuration2 - 2.7 - diff --git a/nifi-commons/nifi-security-xml-config/pom.xml b/nifi-commons/nifi-security-xml-config/pom.xml new file mode 100644 index 0000000000..55f95dc02f --- /dev/null +++ b/nifi-commons/nifi-security-xml-config/pom.xml @@ -0,0 +1,78 @@ + + + 4.0.0 + + org.apache.nifi + nifi-commons + 1.13.0-SNAPSHOT + + nifi-security-xml-config + + + org.apache.commons + commons-configuration2 + 2.7 + + + + + + + org.apache.rat + apache-rat-plugin + + + src/test/resources/xxe_template.xml + + + + + + + + + + jigsaw + + (1.8,) + + + + javax.xml.bind + jaxb-api + test + + + com.sun.xml.bind + jaxb-core + test + + + com.sun.xml.bind + jaxb-impl + test + + + com.sun.activation + javax.activation + + + + + + + diff --git a/nifi-commons/nifi-security-utils/src/main/java/org/apache/nifi/security/xml/SafeXMLConfiguration.java b/nifi-commons/nifi-security-xml-config/src/main/java/org/apache/nifi/security/xml/SafeXMLConfiguration.java similarity index 100% rename from nifi-commons/nifi-security-utils/src/main/java/org/apache/nifi/security/xml/SafeXMLConfiguration.java rename to nifi-commons/nifi-security-xml-config/src/main/java/org/apache/nifi/security/xml/SafeXMLConfiguration.java diff --git a/nifi-commons/pom.xml b/nifi-commons/pom.xml index 570b4b848a..ba574b877e 100644 --- a/nifi-commons/pom.xml +++ b/nifi-commons/pom.xml @@ -38,6 +38,7 @@ nifi-rocksdb-utils nifi-schema-utils nifi-security-utils + nifi-security-xml-config nifi-site-to-site-client nifi-socket-utils nifi-utils diff --git a/nifi-nar-bundles/nifi-standard-services/nifi-lookup-services-bundle/nifi-lookup-services/pom.xml b/nifi-nar-bundles/nifi-standard-services/nifi-lookup-services-bundle/nifi-lookup-services/pom.xml index 2b1c303e52..51611712dd 100644 --- a/nifi-nar-bundles/nifi-standard-services/nifi-lookup-services-bundle/nifi-lookup-services/pom.xml +++ b/nifi-nar-bundles/nifi-standard-services/nifi-lookup-services-bundle/nifi-lookup-services/pom.xml @@ -175,6 +175,11 @@ 1.13.0-SNAPSHOT compile + + org.apache.nifi + nifi-security-xml-config + 1.13.0-SNAPSHOT +