From b7e1f48133b721f0da8410fd19a366b3e7b0d6dd Mon Sep 17 00:00:00 2001 From: Bryan Bende Date: Mon, 2 Apr 2018 11:11:01 -0400 Subject: [PATCH] NIFI-5035 Moving MongoDB services out of standard services Signed-off-by: Matthew Burgess This closes #2599 --- nifi-assembly/pom.xml | 6 +++ .../pom.xml | 42 +++++++++++++++++++ .../nifi-mongodb-client-service-api/pom.xml | 4 +- .../nifi/mongodb/MongoDBClientService.java | 0 .../nifi-mongodb-nar/pom.xml | 2 +- .../nifi-mongodb-processors/pom.xml | 2 +- .../nifi-mongodb-services-nar/pom.xml | 4 +- .../src/main/resources/META-INF/NOTICE | 0 .../nifi-mongodb-services/pom.xml | 25 ++++++----- .../AbstractMongoDBControllerService.java | 0 .../mongodb/MongoDBControllerService.java | 0 .../nifi/mongodb/MongoDBLookupService.java | 0 .../org/apache/nifi/mongodb/Validation.java | 0 ...g.apache.nifi.controller.ControllerService | 0 .../mongodb/MongoDBControllerServiceIT.java | 0 .../nifi/mongodb/MongoDBLookupServiceIT.java | 0 .../TestControllerServiceProcessor.java | 0 .../mongodb/TestLookupServiceProcessor.java | 0 nifi-nar-bundles/nifi-mongodb-bundle/pom.xml | 10 ++++- .../nifi-mongodb-services-bundle/pom.xml | 28 ------------- .../nifi-standard-services-api-nar/pom.xml | 5 --- .../nifi-standard-services/pom.xml | 2 - 22 files changed, 77 insertions(+), 53 deletions(-) create mode 100644 nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-client-service-api-nar/pom.xml rename nifi-nar-bundles/{nifi-standard-services => nifi-mongodb-bundle}/nifi-mongodb-client-service-api/pom.xml (94%) rename nifi-nar-bundles/{nifi-standard-services => nifi-mongodb-bundle}/nifi-mongodb-client-service-api/src/main/java/org/apache/nifi/mongodb/MongoDBClientService.java (100%) rename nifi-nar-bundles/{nifi-standard-services/nifi-mongodb-services-bundle => nifi-mongodb-bundle}/nifi-mongodb-services-nar/pom.xml (92%) rename nifi-nar-bundles/{nifi-standard-services/nifi-mongodb-services-bundle => nifi-mongodb-bundle}/nifi-mongodb-services-nar/src/main/resources/META-INF/NOTICE (100%) rename nifi-nar-bundles/{nifi-standard-services/nifi-mongodb-services-bundle => nifi-mongodb-bundle}/nifi-mongodb-services/pom.xml (94%) rename nifi-nar-bundles/{nifi-standard-services/nifi-mongodb-services-bundle => nifi-mongodb-bundle}/nifi-mongodb-services/src/main/java/org/apache/nifi/mongodb/AbstractMongoDBControllerService.java (100%) rename nifi-nar-bundles/{nifi-standard-services/nifi-mongodb-services-bundle => nifi-mongodb-bundle}/nifi-mongodb-services/src/main/java/org/apache/nifi/mongodb/MongoDBControllerService.java (100%) rename nifi-nar-bundles/{nifi-standard-services/nifi-mongodb-services-bundle => nifi-mongodb-bundle}/nifi-mongodb-services/src/main/java/org/apache/nifi/mongodb/MongoDBLookupService.java (100%) rename nifi-nar-bundles/{nifi-standard-services/nifi-mongodb-services-bundle => nifi-mongodb-bundle}/nifi-mongodb-services/src/main/java/org/apache/nifi/mongodb/Validation.java (100%) rename nifi-nar-bundles/{nifi-standard-services/nifi-mongodb-services-bundle => nifi-mongodb-bundle}/nifi-mongodb-services/src/main/resources/META-INF/services/org.apache.nifi.controller.ControllerService (100%) rename nifi-nar-bundles/{nifi-standard-services/nifi-mongodb-services-bundle => nifi-mongodb-bundle}/nifi-mongodb-services/src/test/java/org/apache/nifi/mongodb/MongoDBControllerServiceIT.java (100%) rename nifi-nar-bundles/{nifi-standard-services/nifi-mongodb-services-bundle => nifi-mongodb-bundle}/nifi-mongodb-services/src/test/java/org/apache/nifi/mongodb/MongoDBLookupServiceIT.java (100%) rename nifi-nar-bundles/{nifi-standard-services/nifi-mongodb-services-bundle => nifi-mongodb-bundle}/nifi-mongodb-services/src/test/java/org/apache/nifi/mongodb/TestControllerServiceProcessor.java (100%) rename nifi-nar-bundles/{nifi-standard-services/nifi-mongodb-services-bundle => nifi-mongodb-bundle}/nifi-mongodb-services/src/test/java/org/apache/nifi/mongodb/TestLookupServiceProcessor.java (100%) delete mode 100644 nifi-nar-bundles/nifi-standard-services/nifi-mongodb-services-bundle/pom.xml diff --git a/nifi-assembly/pom.xml b/nifi-assembly/pom.xml index 7bf880d903..df380276cb 100755 --- a/nifi-assembly/pom.xml +++ b/nifi-assembly/pom.xml @@ -289,6 +289,12 @@ language governing permissions and limitations under the License. --> 1.6.0-SNAPSHOT nar + + org.apache.nifi + nifi-mongodb-client-service-api-nar + 1.6.0-SNAPSHOT + nar + org.apache.nifi nifi-mongodb-nar diff --git a/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-client-service-api-nar/pom.xml b/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-client-service-api-nar/pom.xml new file mode 100644 index 0000000000..c2fb2b3ebc --- /dev/null +++ b/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-client-service-api-nar/pom.xml @@ -0,0 +1,42 @@ + + + + 4.0.0 + + + org.apache.nifi + nifi-mongodb-bundle + 1.6.0-SNAPSHOT + + + nifi-mongodb-client-service-api-nar + nar + + + + org.apache.nifi + nifi-standard-services-api-nar + 1.6.0-SNAPSHOT + nar + + + org.apache.nifi + nifi-mongodb-client-service-api + 1.6.0-SNAPSHOT + compile + + + diff --git a/nifi-nar-bundles/nifi-standard-services/nifi-mongodb-client-service-api/pom.xml b/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-client-service-api/pom.xml similarity index 94% rename from nifi-nar-bundles/nifi-standard-services/nifi-mongodb-client-service-api/pom.xml rename to nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-client-service-api/pom.xml index 33a72243df..1b24a4a689 100644 --- a/nifi-nar-bundles/nifi-standard-services/nifi-mongodb-client-service-api/pom.xml +++ b/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-client-service-api/pom.xml @@ -18,7 +18,7 @@ org.apache.nifi - nifi-standard-services + nifi-mongodb-bundle 1.6.0-SNAPSHOT @@ -39,7 +39,7 @@ org.mongodb mongo-java-driver - 3.2.2 + ${mongo.driver.version} diff --git a/nifi-nar-bundles/nifi-standard-services/nifi-mongodb-client-service-api/src/main/java/org/apache/nifi/mongodb/MongoDBClientService.java b/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-client-service-api/src/main/java/org/apache/nifi/mongodb/MongoDBClientService.java similarity index 100% rename from nifi-nar-bundles/nifi-standard-services/nifi-mongodb-client-service-api/src/main/java/org/apache/nifi/mongodb/MongoDBClientService.java rename to nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-client-service-api/src/main/java/org/apache/nifi/mongodb/MongoDBClientService.java diff --git a/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-nar/pom.xml b/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-nar/pom.xml index 76f65d6d5c..a2c14f0041 100644 --- a/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-nar/pom.xml +++ b/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-nar/pom.xml @@ -32,7 +32,7 @@ org.apache.nifi - nifi-standard-services-api-nar + nifi-mongodb-client-service-api-nar 1.6.0-SNAPSHOT nar diff --git a/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-processors/pom.xml b/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-processors/pom.xml index df0451e5fc..ff5b245f73 100644 --- a/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-processors/pom.xml +++ b/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-processors/pom.xml @@ -29,7 +29,7 @@ org.mongodb mongo-java-driver - 3.2.2 + ${mongo.driver.version} org.apache.nifi diff --git a/nifi-nar-bundles/nifi-standard-services/nifi-mongodb-services-bundle/nifi-mongodb-services-nar/pom.xml b/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-services-nar/pom.xml similarity index 92% rename from nifi-nar-bundles/nifi-standard-services/nifi-mongodb-services-bundle/nifi-mongodb-services-nar/pom.xml rename to nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-services-nar/pom.xml index 881b40fbed..a581e1df9c 100644 --- a/nifi-nar-bundles/nifi-standard-services/nifi-mongodb-services-bundle/nifi-mongodb-services-nar/pom.xml +++ b/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-services-nar/pom.xml @@ -16,7 +16,7 @@ 4.0.0 org.apache.nifi - nifi-mongodb-services-bundle + nifi-mongodb-bundle 1.6.0-SNAPSHOT nifi-mongodb-services-nar @@ -24,7 +24,7 @@ org.apache.nifi - nifi-standard-services-api-nar + nifi-mongodb-client-service-api-nar 1.6.0-SNAPSHOT nar diff --git a/nifi-nar-bundles/nifi-standard-services/nifi-mongodb-services-bundle/nifi-mongodb-services-nar/src/main/resources/META-INF/NOTICE b/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-services-nar/src/main/resources/META-INF/NOTICE similarity index 100% rename from nifi-nar-bundles/nifi-standard-services/nifi-mongodb-services-bundle/nifi-mongodb-services-nar/src/main/resources/META-INF/NOTICE rename to nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-services-nar/src/main/resources/META-INF/NOTICE diff --git a/nifi-nar-bundles/nifi-standard-services/nifi-mongodb-services-bundle/nifi-mongodb-services/pom.xml b/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-services/pom.xml similarity index 94% rename from nifi-nar-bundles/nifi-standard-services/nifi-mongodb-services-bundle/nifi-mongodb-services/pom.xml rename to nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-services/pom.xml index a26e1d799b..6c6de4c1fc 100644 --- a/nifi-nar-bundles/nifi-standard-services/nifi-mongodb-services-bundle/nifi-mongodb-services/pom.xml +++ b/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-services/pom.xml @@ -12,7 +12,7 @@ 4.0.0 org.apache.nifi - nifi-mongodb-services-bundle + nifi-mongodb-bundle 1.6.0-SNAPSHOT nifi-mongodb-services @@ -31,6 +31,17 @@ org.apache.nifi nifi-lookup-service-api + provided + + + org.apache.nifi + nifi-mongodb-client-service-api + provided + + + org.apache.nifi + nifi-ssl-context-service-api + provided org.apache.nifi @@ -41,10 +52,6 @@ org.apache.nifi nifi-record - - org.apache.nifi - nifi-mongodb-client-service-api - com.fasterxml.jackson.core jackson-databind @@ -53,7 +60,7 @@ org.mongodb mongo-java-driver - 3.2.2 + ${mongo.driver.version} org.apache.nifi @@ -71,11 +78,7 @@ junit test - - org.apache.nifi - nifi-ssl-context-service-api - compile - + diff --git a/nifi-nar-bundles/nifi-standard-services/nifi-mongodb-services-bundle/nifi-mongodb-services/src/main/java/org/apache/nifi/mongodb/AbstractMongoDBControllerService.java b/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-services/src/main/java/org/apache/nifi/mongodb/AbstractMongoDBControllerService.java similarity index 100% rename from nifi-nar-bundles/nifi-standard-services/nifi-mongodb-services-bundle/nifi-mongodb-services/src/main/java/org/apache/nifi/mongodb/AbstractMongoDBControllerService.java rename to nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-services/src/main/java/org/apache/nifi/mongodb/AbstractMongoDBControllerService.java diff --git a/nifi-nar-bundles/nifi-standard-services/nifi-mongodb-services-bundle/nifi-mongodb-services/src/main/java/org/apache/nifi/mongodb/MongoDBControllerService.java b/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-services/src/main/java/org/apache/nifi/mongodb/MongoDBControllerService.java similarity index 100% rename from nifi-nar-bundles/nifi-standard-services/nifi-mongodb-services-bundle/nifi-mongodb-services/src/main/java/org/apache/nifi/mongodb/MongoDBControllerService.java rename to nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-services/src/main/java/org/apache/nifi/mongodb/MongoDBControllerService.java diff --git a/nifi-nar-bundles/nifi-standard-services/nifi-mongodb-services-bundle/nifi-mongodb-services/src/main/java/org/apache/nifi/mongodb/MongoDBLookupService.java b/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-services/src/main/java/org/apache/nifi/mongodb/MongoDBLookupService.java similarity index 100% rename from nifi-nar-bundles/nifi-standard-services/nifi-mongodb-services-bundle/nifi-mongodb-services/src/main/java/org/apache/nifi/mongodb/MongoDBLookupService.java rename to nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-services/src/main/java/org/apache/nifi/mongodb/MongoDBLookupService.java diff --git a/nifi-nar-bundles/nifi-standard-services/nifi-mongodb-services-bundle/nifi-mongodb-services/src/main/java/org/apache/nifi/mongodb/Validation.java b/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-services/src/main/java/org/apache/nifi/mongodb/Validation.java similarity index 100% rename from nifi-nar-bundles/nifi-standard-services/nifi-mongodb-services-bundle/nifi-mongodb-services/src/main/java/org/apache/nifi/mongodb/Validation.java rename to nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-services/src/main/java/org/apache/nifi/mongodb/Validation.java diff --git a/nifi-nar-bundles/nifi-standard-services/nifi-mongodb-services-bundle/nifi-mongodb-services/src/main/resources/META-INF/services/org.apache.nifi.controller.ControllerService b/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-services/src/main/resources/META-INF/services/org.apache.nifi.controller.ControllerService similarity index 100% rename from nifi-nar-bundles/nifi-standard-services/nifi-mongodb-services-bundle/nifi-mongodb-services/src/main/resources/META-INF/services/org.apache.nifi.controller.ControllerService rename to nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-services/src/main/resources/META-INF/services/org.apache.nifi.controller.ControllerService diff --git a/nifi-nar-bundles/nifi-standard-services/nifi-mongodb-services-bundle/nifi-mongodb-services/src/test/java/org/apache/nifi/mongodb/MongoDBControllerServiceIT.java b/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-services/src/test/java/org/apache/nifi/mongodb/MongoDBControllerServiceIT.java similarity index 100% rename from nifi-nar-bundles/nifi-standard-services/nifi-mongodb-services-bundle/nifi-mongodb-services/src/test/java/org/apache/nifi/mongodb/MongoDBControllerServiceIT.java rename to nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-services/src/test/java/org/apache/nifi/mongodb/MongoDBControllerServiceIT.java diff --git a/nifi-nar-bundles/nifi-standard-services/nifi-mongodb-services-bundle/nifi-mongodb-services/src/test/java/org/apache/nifi/mongodb/MongoDBLookupServiceIT.java b/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-services/src/test/java/org/apache/nifi/mongodb/MongoDBLookupServiceIT.java similarity index 100% rename from nifi-nar-bundles/nifi-standard-services/nifi-mongodb-services-bundle/nifi-mongodb-services/src/test/java/org/apache/nifi/mongodb/MongoDBLookupServiceIT.java rename to nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-services/src/test/java/org/apache/nifi/mongodb/MongoDBLookupServiceIT.java diff --git a/nifi-nar-bundles/nifi-standard-services/nifi-mongodb-services-bundle/nifi-mongodb-services/src/test/java/org/apache/nifi/mongodb/TestControllerServiceProcessor.java b/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-services/src/test/java/org/apache/nifi/mongodb/TestControllerServiceProcessor.java similarity index 100% rename from nifi-nar-bundles/nifi-standard-services/nifi-mongodb-services-bundle/nifi-mongodb-services/src/test/java/org/apache/nifi/mongodb/TestControllerServiceProcessor.java rename to nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-services/src/test/java/org/apache/nifi/mongodb/TestControllerServiceProcessor.java diff --git a/nifi-nar-bundles/nifi-standard-services/nifi-mongodb-services-bundle/nifi-mongodb-services/src/test/java/org/apache/nifi/mongodb/TestLookupServiceProcessor.java b/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-services/src/test/java/org/apache/nifi/mongodb/TestLookupServiceProcessor.java similarity index 100% rename from nifi-nar-bundles/nifi-standard-services/nifi-mongodb-services-bundle/nifi-mongodb-services/src/test/java/org/apache/nifi/mongodb/TestLookupServiceProcessor.java rename to nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-services/src/test/java/org/apache/nifi/mongodb/TestLookupServiceProcessor.java diff --git a/nifi-nar-bundles/nifi-mongodb-bundle/pom.xml b/nifi-nar-bundles/nifi-mongodb-bundle/pom.xml index 3e3f4c665b..ecc637874f 100644 --- a/nifi-nar-bundles/nifi-mongodb-bundle/pom.xml +++ b/nifi-nar-bundles/nifi-mongodb-bundle/pom.xml @@ -26,10 +26,18 @@ pom - nifi-mongodb-processors + nifi-mongodb-client-service-api + nifi-mongodb-client-service-api-nar + nifi-mongodb-services + nifi-mongodb-services-nar + nifi-mongodb-processors nifi-mongodb-nar + + 3.2.2 + + diff --git a/nifi-nar-bundles/nifi-standard-services/nifi-mongodb-services-bundle/pom.xml b/nifi-nar-bundles/nifi-standard-services/nifi-mongodb-services-bundle/pom.xml deleted file mode 100644 index 330bd06a5c..0000000000 --- a/nifi-nar-bundles/nifi-standard-services/nifi-mongodb-services-bundle/pom.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - 4.0.0 - - org.apache.nifi - nifi-standard-services - 1.6.0-SNAPSHOT - - nifi-mongodb-services-bundle - pom - - nifi-mongodb-services - nifi-mongodb-services-nar - - diff --git a/nifi-nar-bundles/nifi-standard-services/nifi-standard-services-api-nar/pom.xml b/nifi-nar-bundles/nifi-standard-services/nifi-standard-services-api-nar/pom.xml index ab5714de49..00f3d46028 100644 --- a/nifi-nar-bundles/nifi-standard-services/nifi-standard-services-api-nar/pom.xml +++ b/nifi-nar-bundles/nifi-standard-services/nifi-standard-services-api-nar/pom.xml @@ -52,11 +52,6 @@ 1.6.0-SNAPSHOT compile - - org.apache.nifi - nifi-mongodb-client-service-api - compile - org.apache.nifi nifi-hbase-client-service-api diff --git a/nifi-nar-bundles/nifi-standard-services/pom.xml b/nifi-nar-bundles/nifi-standard-services/pom.xml index fb6c4d5238..2c50df3889 100644 --- a/nifi-nar-bundles/nifi-standard-services/pom.xml +++ b/nifi-nar-bundles/nifi-standard-services/pom.xml @@ -41,8 +41,6 @@ nifi-record-serialization-service-api nifi-record-serialization-services-bundle nifi-hwx-schema-registry-bundle - nifi-mongodb-client-service-api - nifi-mongodb-services-bundle nifi-kerberos-credentials-service-api nifi-kerberos-credentials-service-bundle