From 72ab4809946a30f9ea70b3f77dd47ce1b10423fa Mon Sep 17 00:00:00 2001 From: James Netherton Date: Mon, 22 Jan 2024 10:55:59 +0000 Subject: [PATCH] Remove Camel Facebook extension Fixes #5661 --- catalog/pom.xml | 13 --- .../ROOT/examples/components/facebook.yml | 13 --- docs/modules/ROOT/nav.adoc | 1 - .../pages/reference/extensions/facebook.adoc | 41 -------- extensions-jvm/facebook/deployment/pom.xml | 61 ------------ .../deployment/FacebookProcessor.java | 46 --------- extensions-jvm/facebook/pom.xml | 37 ------- extensions-jvm/facebook/runtime/pom.xml | 97 ------------------- .../resources/META-INF/quarkus-extension.yaml | 33 ------- extensions-jvm/pom.xml | 1 - integration-tests-jvm/facebook/pom.xml | 83 ---------------- .../facebook/it/FacebookResource.java | 50 ---------- .../component/facebook/it/FacebookTest.java | 34 ------- integration-tests-jvm/pom.xml | 1 - poms/bom/pom.xml | 15 --- .../src/main/generated/flattened-full-pom.xml | 15 --- .../main/generated/flattened-reduced-pom.xml | 15 --- .../flattened-reduced-verbose-pom.xml | 15 --- 18 files changed, 571 deletions(-) delete mode 100644 docs/modules/ROOT/examples/components/facebook.yml delete mode 100644 docs/modules/ROOT/pages/reference/extensions/facebook.adoc delete mode 100644 extensions-jvm/facebook/deployment/pom.xml delete mode 100644 extensions-jvm/facebook/deployment/src/main/java/org/apache/camel/quarkus/component/facebook/deployment/FacebookProcessor.java delete mode 100644 extensions-jvm/facebook/pom.xml delete mode 100644 extensions-jvm/facebook/runtime/pom.xml delete mode 100644 extensions-jvm/facebook/runtime/src/main/resources/META-INF/quarkus-extension.yaml delete mode 100644 integration-tests-jvm/facebook/pom.xml delete mode 100644 integration-tests-jvm/facebook/src/main/java/org/apache/camel/quarkus/component/facebook/it/FacebookResource.java delete mode 100644 integration-tests-jvm/facebook/src/test/java/org/apache/camel/quarkus/component/facebook/it/FacebookTest.java diff --git a/catalog/pom.xml b/catalog/pom.xml index 5475b5f61a0c..14c3d1be4dff 100644 --- a/catalog/pom.xml +++ b/catalog/pom.xml @@ -1241,19 +1241,6 @@ - - org.apache.camel.quarkus - camel-quarkus-facebook - ${project.version} - pom - test - - - * - * - - - org.apache.camel.quarkus camel-quarkus-fastjson diff --git a/docs/modules/ROOT/examples/components/facebook.yml b/docs/modules/ROOT/examples/components/facebook.yml deleted file mode 100644 index 97cb52c091d7..000000000000 --- a/docs/modules/ROOT/examples/components/facebook.yml +++ /dev/null @@ -1,13 +0,0 @@ -# Do not edit directly! -# This file was generated by camel-quarkus-maven-plugin:update-extension-doc-page -cqArtifactId: camel-quarkus-facebook -cqArtifactIdBase: facebook -cqNativeSupported: false -cqStatus: Preview -cqDeprecated: false -cqJvmSince: 1.1.0 -cqNativeSince: n/a -cqCamelPartName: facebook -cqCamelPartTitle: Facebook -cqCamelPartDescription: Send requests to Facebook APIs supported by Facebook4J. -cqExtensionPageTitle: Facebook diff --git a/docs/modules/ROOT/nav.adoc b/docs/modules/ROOT/nav.adoc index 74f3ef295b8d..56fbacd21c22 100644 --- a/docs/modules/ROOT/nav.adoc +++ b/docs/modules/ROOT/nav.adoc @@ -118,7 +118,6 @@ *** xref:reference/extensions/fhir.adoc[FHIR] *** xref:reference/extensions/fop.adoc[FOP] *** xref:reference/extensions/ftp.adoc[FTP] -*** xref:reference/extensions/facebook.adoc[Facebook] *** xref:reference/extensions/file.adoc[File] *** xref:reference/extensions/file-watch.adoc[File Watch] *** xref:reference/extensions/flatpack.adoc[Flatpack] diff --git a/docs/modules/ROOT/pages/reference/extensions/facebook.adoc b/docs/modules/ROOT/pages/reference/extensions/facebook.adoc deleted file mode 100644 index 25819470ab9e..000000000000 --- a/docs/modules/ROOT/pages/reference/extensions/facebook.adoc +++ /dev/null @@ -1,41 +0,0 @@ -// Do not edit directly! -// This file was generated by camel-quarkus-maven-plugin:update-extension-doc-page -[id="extensions-facebook"] -= Facebook -:linkattrs: -:cq-artifact-id: camel-quarkus-facebook -:cq-native-supported: false -:cq-status: Preview -:cq-status-deprecation: Preview -:cq-description: Send requests to Facebook APIs supported by Facebook4J. -:cq-deprecated: false -:cq-jvm-since: 1.1.0 -:cq-native-since: n/a - -ifeval::[{doc-show-badges} == true] -[.badges] -[.badge-key]##JVM since##[.badge-supported]##1.1.0## [.badge-key]##Native##[.badge-unsupported]##unsupported## -endif::[] - -Send requests to Facebook APIs supported by Facebook4J. - -[id="extensions-facebook-whats-inside"] -== What's inside - -* xref:{cq-camel-components}::facebook-component.adoc[Facebook component], URI syntax: `facebook:methodName` - -Please refer to the above link for usage and configuration details. - -[id="extensions-facebook-maven-coordinates"] -== Maven coordinates - -[source,xml] ----- - - org.apache.camel.quarkus - camel-quarkus-facebook - ----- -ifeval::[{doc-show-user-guide-link} == true] -Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. -endif::[] diff --git a/extensions-jvm/facebook/deployment/pom.xml b/extensions-jvm/facebook/deployment/pom.xml deleted file mode 100644 index fd343736c331..000000000000 --- a/extensions-jvm/facebook/deployment/pom.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - - 4.0.0 - - org.apache.camel.quarkus - camel-quarkus-facebook-parent - 3.7.0-SNAPSHOT - ../pom.xml - - - camel-quarkus-facebook-deployment - Camel Quarkus :: Facebook :: Deployment - - - - org.apache.camel.quarkus - camel-quarkus-core-deployment - - - org.apache.camel.quarkus - camel-quarkus-facebook - - - - - - - org.apache.maven.plugins - maven-compiler-plugin - - - - io.quarkus - quarkus-extension-processor - ${quarkus.version} - - - - - - - - diff --git a/extensions-jvm/facebook/deployment/src/main/java/org/apache/camel/quarkus/component/facebook/deployment/FacebookProcessor.java b/extensions-jvm/facebook/deployment/src/main/java/org/apache/camel/quarkus/component/facebook/deployment/FacebookProcessor.java deleted file mode 100644 index 675672d205e5..000000000000 --- a/extensions-jvm/facebook/deployment/src/main/java/org/apache/camel/quarkus/component/facebook/deployment/FacebookProcessor.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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. - */ -package org.apache.camel.quarkus.component.facebook.deployment; - -import io.quarkus.deployment.annotations.BuildStep; -import io.quarkus.deployment.annotations.ExecutionTime; -import io.quarkus.deployment.annotations.Record; -import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; -import org.apache.camel.quarkus.core.JvmOnlyRecorder; -import org.jboss.logging.Logger; - -class FacebookProcessor { - - private static final Logger LOG = Logger.getLogger(FacebookProcessor.class); - private static final String FEATURE = "camel-facebook"; - - @BuildStep - FeatureBuildItem feature() { - return new FeatureBuildItem(FEATURE); - } - - /** - * Remove this once this extension starts supporting the native mode. - */ - @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) - @Record(value = ExecutionTime.RUNTIME_INIT) - void warnJvmInNative(JvmOnlyRecorder recorder) { - JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time - recorder.warnJvmInNative(FEATURE); // warn at runtime - } -} diff --git a/extensions-jvm/facebook/pom.xml b/extensions-jvm/facebook/pom.xml deleted file mode 100644 index 1078ce262715..000000000000 --- a/extensions-jvm/facebook/pom.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - 4.0.0 - - org.apache.camel.quarkus - camel-quarkus-extensions-jvm - 3.7.0-SNAPSHOT - ../pom.xml - - - camel-quarkus-facebook-parent - Camel Quarkus :: Facebook - pom - - - deployment - runtime - - diff --git a/extensions-jvm/facebook/runtime/pom.xml b/extensions-jvm/facebook/runtime/pom.xml deleted file mode 100644 index 98c5a1c47c57..000000000000 --- a/extensions-jvm/facebook/runtime/pom.xml +++ /dev/null @@ -1,97 +0,0 @@ - - - - 4.0.0 - - org.apache.camel.quarkus - camel-quarkus-facebook-parent - 3.7.0-SNAPSHOT - ../pom.xml - - - camel-quarkus-facebook - Camel Quarkus :: Facebook :: Runtime - Send requests to Facebook APIs supported by Facebook4J. - - - 1.1.0 - - - - - org.apache.camel.quarkus - camel-quarkus-core - - - org.apache.camel - camel-facebook - - - - - - - io.quarkus - quarkus-extension-maven-plugin - - - org.apache.maven.plugins - maven-compiler-plugin - - - - io.quarkus - quarkus-extension-processor - ${quarkus.version} - - - - - - - - - - full - - - !quickly - - - - - - org.apache.camel.quarkus - camel-quarkus-maven-plugin - - - update-extension-doc-page - - update-extension-doc-page - - process-classes - - - - - - - - diff --git a/extensions-jvm/facebook/runtime/src/main/resources/META-INF/quarkus-extension.yaml b/extensions-jvm/facebook/runtime/src/main/resources/META-INF/quarkus-extension.yaml deleted file mode 100644 index faef914b69d3..000000000000 --- a/extensions-jvm/facebook/runtime/src/main/resources/META-INF/quarkus-extension.yaml +++ /dev/null @@ -1,33 +0,0 @@ -# -# 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. -# - -# This is a generated file. Do not edit directly! -# To re-generate, run the following command from the top level directory: -# -# mvn -N cq:update-quarkus-metadata -# ---- -name: "Camel Facebook" -description: "Send requests to Facebook APIs supported by Facebook4J" -metadata: - icon-url: "https://camel.apache.org/_/img/logo-d-f21b25ba38.svg" - unlisted: true - guide: "https://camel.apache.org/camel-quarkus/latest/reference/extensions/facebook.html" - categories: - - "integration" - status: - - "preview" diff --git a/extensions-jvm/pom.xml b/extensions-jvm/pom.xml index 072b2377598e..b7df58059e2f 100644 --- a/extensions-jvm/pom.xml +++ b/extensions-jvm/pom.xml @@ -60,7 +60,6 @@ ehcache elasticsearch etcd3 - facebook fastjson flink google-functions diff --git a/integration-tests-jvm/facebook/pom.xml b/integration-tests-jvm/facebook/pom.xml deleted file mode 100644 index 78081e5e50d2..000000000000 --- a/integration-tests-jvm/facebook/pom.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - 4.0.0 - - org.apache.camel.quarkus - camel-quarkus-build-parent-it - 3.7.0-SNAPSHOT - ../../poms/build-parent-it/pom.xml - - - camel-quarkus-integration-test-facebook - Camel Quarkus :: Integration Tests :: Facebook - Integration tests for Camel Quarkus Facebook extension - - - - org.apache.camel.quarkus - camel-quarkus-facebook - - - io.quarkus - quarkus-resteasy - - - - - io.quarkus - quarkus-junit5 - test - - - io.rest-assured - rest-assured - test - - - - - - virtualDependencies - - - !noVirtualDependencies - - - - - - org.apache.camel.quarkus - camel-quarkus-facebook-deployment - ${project.version} - pom - test - - - * - * - - - - - - - - diff --git a/integration-tests-jvm/facebook/src/main/java/org/apache/camel/quarkus/component/facebook/it/FacebookResource.java b/integration-tests-jvm/facebook/src/main/java/org/apache/camel/quarkus/component/facebook/it/FacebookResource.java deleted file mode 100644 index bae9af525f67..000000000000 --- a/integration-tests-jvm/facebook/src/main/java/org/apache/camel/quarkus/component/facebook/it/FacebookResource.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * 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. - */ -package org.apache.camel.quarkus.component.facebook.it; - -import jakarta.enterprise.context.ApplicationScoped; -import jakarta.inject.Inject; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; -import jakarta.ws.rs.core.Response; -import org.apache.camel.CamelContext; -import org.jboss.logging.Logger; - -@Path("/facebook") -@ApplicationScoped -public class FacebookResource { - - private static final Logger LOG = Logger.getLogger(FacebookResource.class); - - private static final String COMPONENT_FACEBOOK = "facebook"; - @Inject - CamelContext context; - - @Path("/load/component/facebook") - @GET - @Produces(MediaType.TEXT_PLAIN) - public Response loadComponentFacebook() throws Exception { - /* This is an autogenerated test */ - if (context.getComponent(COMPONENT_FACEBOOK) != null) { - return Response.ok().build(); - } - LOG.warnf("Could not load [%s] from the Camel context", COMPONENT_FACEBOOK); - return Response.status(500, COMPONENT_FACEBOOK + " could not be loaded from the Camel context").build(); - } -} diff --git a/integration-tests-jvm/facebook/src/test/java/org/apache/camel/quarkus/component/facebook/it/FacebookTest.java b/integration-tests-jvm/facebook/src/test/java/org/apache/camel/quarkus/component/facebook/it/FacebookTest.java deleted file mode 100644 index 1c7307dcaf8f..000000000000 --- a/integration-tests-jvm/facebook/src/test/java/org/apache/camel/quarkus/component/facebook/it/FacebookTest.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * 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. - */ -package org.apache.camel.quarkus.component.facebook.it; - -import io.quarkus.test.junit.QuarkusTest; -import io.restassured.RestAssured; -import org.junit.jupiter.api.Test; - -@QuarkusTest -class FacebookTest { - - @Test - public void loadComponentFacebook() { - /* A simple autogenerated test */ - RestAssured.get("/facebook/load/component/facebook") - .then() - .statusCode(200); - } - -} diff --git a/integration-tests-jvm/pom.xml b/integration-tests-jvm/pom.xml index 30e4de8cb3eb..90a716f733cc 100644 --- a/integration-tests-jvm/pom.xml +++ b/integration-tests-jvm/pom.xml @@ -59,7 +59,6 @@ ehcache elasticsearch etcd3 - facebook fastjson flink google-functions diff --git a/poms/bom/pom.xml b/poms/bom/pom.xml index 33e23891538c..4c2cf849a756 100644 --- a/poms/bom/pom.xml +++ b/poms/bom/pom.xml @@ -938,11 +938,6 @@ camel-exec ${camel.version} - - org.apache.camel - camel-facebook - ${camel.version} - org.apache.camel camel-fastjson @@ -3586,16 +3581,6 @@ camel-quarkus-exec-deployment ${camel-quarkus.version} - - org.apache.camel.quarkus - camel-quarkus-facebook - ${camel-quarkus.version} - - - org.apache.camel.quarkus - camel-quarkus-facebook-deployment - ${camel-quarkus.version} - org.apache.camel.quarkus camel-quarkus-fastjson diff --git a/poms/bom/src/main/generated/flattened-full-pom.xml b/poms/bom/src/main/generated/flattened-full-pom.xml index deddf866bf0e..dd54c0d0a2fa 100644 --- a/poms/bom/src/main/generated/flattened-full-pom.xml +++ b/poms/bom/src/main/generated/flattened-full-pom.xml @@ -876,11 +876,6 @@ camel-exec 4.3.0 - - org.apache.camel - camel-facebook - 4.3.0 - org.apache.camel camel-fastjson @@ -3512,16 +3507,6 @@ camel-quarkus-exec-deployment 3.7.0-SNAPSHOT - - org.apache.camel.quarkus - camel-quarkus-facebook - 3.7.0-SNAPSHOT - - - org.apache.camel.quarkus - camel-quarkus-facebook-deployment - 3.7.0-SNAPSHOT - org.apache.camel.quarkus camel-quarkus-fastjson diff --git a/poms/bom/src/main/generated/flattened-reduced-pom.xml b/poms/bom/src/main/generated/flattened-reduced-pom.xml index b1bb69f09c10..c1352d0c4134 100644 --- a/poms/bom/src/main/generated/flattened-reduced-pom.xml +++ b/poms/bom/src/main/generated/flattened-reduced-pom.xml @@ -876,11 +876,6 @@ camel-exec 4.3.0 - - org.apache.camel - camel-facebook - 4.3.0 - org.apache.camel camel-fastjson @@ -3512,16 +3507,6 @@ camel-quarkus-exec-deployment 3.7.0-SNAPSHOT - - org.apache.camel.quarkus - camel-quarkus-facebook - 3.7.0-SNAPSHOT - - - org.apache.camel.quarkus - camel-quarkus-facebook-deployment - 3.7.0-SNAPSHOT - org.apache.camel.quarkus camel-quarkus-fastjson diff --git a/poms/bom/src/main/generated/flattened-reduced-verbose-pom.xml b/poms/bom/src/main/generated/flattened-reduced-verbose-pom.xml index 15c4e3f55271..5ec07101efc4 100644 --- a/poms/bom/src/main/generated/flattened-reduced-verbose-pom.xml +++ b/poms/bom/src/main/generated/flattened-reduced-verbose-pom.xml @@ -876,11 +876,6 @@ camel-exec 4.3.0 - - org.apache.camel - camel-facebook - 4.3.0 - org.apache.camel camel-fastjson @@ -3512,16 +3507,6 @@ camel-quarkus-exec-deployment 3.7.0-SNAPSHOT - - org.apache.camel.quarkus - camel-quarkus-facebook - 3.7.0-SNAPSHOT - - - org.apache.camel.quarkus - camel-quarkus-facebook-deployment - 3.7.0-SNAPSHOT - org.apache.camel.quarkus camel-quarkus-fastjson