This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-karaf.git

commit d3baea2aee20cb98f4b46f3b82eaa0197d48f66d
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Fri Jan 6 06:44:57 2023 +0100

    CAMEL-18496: removed the deprecated component camel-cmis
---
 components/camel-cmis-osgi/pom.xml                 | 66 ----------------------
 .../services/org/apache/camel/other.properties     |  7 ---
 .../src/generated/resources/cmis-osgi.json         | 15 -----
 .../camel/component/cmis/osgi/Activator.java       | 45 ---------------
 components/pom.xml                                 |  1 -
 5 files changed, 134 deletions(-)

diff --git a/components/camel-cmis-osgi/pom.xml 
b/components/camel-cmis-osgi/pom.xml
deleted file mode 100644
index 9d8688a4..00000000
--- a/components/camel-cmis-osgi/pom.xml
+++ /dev/null
@@ -1,66 +0,0 @@
-<?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 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
-
-    <modelVersion>4.0.0</modelVersion>
-
-    <parent>
-        <groupId>org.apache.camel.karaf</groupId>
-        <artifactId>components</artifactId>
-        <version>3.21.0-SNAPSHOT</version>
-    </parent>
-
-    <artifactId>camel-cmis-osgi</artifactId>
-    <packaging>jar</packaging>
-    <name>Camel Karaf :: CMIS</name>
-    <description>Camel CMIS which is based on Apache Chemistry 
support</description>
-
-    <properties>
-        <camel.osgi.activator>
-            org.apache.camel.component.cmis.osgi.Activator
-        </camel.osgi.activator>
-        <camel.osgi.import>
-            !org.apache.chemistry.opencmis.client.runtime,*
-        </camel.osgi.import>
-
-        <firstVersion>2.11.0</firstVersion>
-        <label>cms,database</label>
-        <title>CMIS</title>
-    </properties>
-
-    <dependencies>
-
-        <dependency>
-            <groupId>org.apache.camel</groupId>
-            <artifactId>camel-cmis</artifactId>
-        </dependency>
-
-        <!-- osgi support -->
-        <dependency>
-            <groupId>org.osgi</groupId>
-            <artifactId>osgi.core</artifactId>
-            <scope>provided</scope>
-            <optional>true</optional>
-            <version>6.0.0</version>
-        </dependency>
-
-    </dependencies>
-
-</project>
diff --git 
a/components/camel-cmis-osgi/src/generated/resources/META-INF/services/org/apache/camel/other.properties
 
b/components/camel-cmis-osgi/src/generated/resources/META-INF/services/org/apache/camel/other.properties
deleted file mode 100644
index 295978f9..00000000
--- 
a/components/camel-cmis-osgi/src/generated/resources/META-INF/services/org/apache/camel/other.properties
+++ /dev/null
@@ -1,7 +0,0 @@
-# Generated by camel build tools - do NOT edit this file!
-name=cmis-osgi
-groupId=org.apache.camel.karaf
-artifactId=camel-cmis-osgi
-version=3.21.0-SNAPSHOT
-projectName=Camel Karaf :: CMIS
-projectDescription=Camel CMIS which is based on Apache Chemistry support
diff --git a/components/camel-cmis-osgi/src/generated/resources/cmis-osgi.json 
b/components/camel-cmis-osgi/src/generated/resources/cmis-osgi.json
deleted file mode 100644
index 0f51b8db..00000000
--- a/components/camel-cmis-osgi/src/generated/resources/cmis-osgi.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
-  "other": {
-    "kind": "other",
-    "name": "cmis-osgi",
-    "title": "CMIS",
-    "description": "Camel CMIS which is based on Apache Chemistry support",
-    "deprecated": false,
-    "firstVersion": "2.11.0",
-    "label": "cms,database",
-    "supportLevel": "Stable",
-    "groupId": "org.apache.camel.karaf",
-    "artifactId": "camel-cmis-osgi",
-    "version": "3.21.0-SNAPSHOT"
-  }
-}
diff --git 
a/components/camel-cmis-osgi/src/main/java/org/apache/camel/component/cmis/osgi/Activator.java
 
b/components/camel-cmis-osgi/src/main/java/org/apache/camel/component/cmis/osgi/Activator.java
deleted file mode 100644
index cc192153..00000000
--- 
a/components/camel-cmis-osgi/src/main/java/org/apache/camel/component/cmis/osgi/Activator.java
+++ /dev/null
@@ -1,45 +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.component.cmis.osgi;
-
-import org.apache.camel.component.cmis.SessionFactoryLocator;
-import org.apache.chemistry.opencmis.client.api.SessionFactory;
-import org.osgi.framework.BundleActivator;
-import org.osgi.framework.BundleContext;
-import org.osgi.framework.ServiceReference;
-
-// Locator the SessionFactoryImpl service
-public class Activator implements BundleActivator {
-    private ServiceReference reference;
-
-    @Override
-    public void start(BundleContext context) throws Exception {
-        // get the reference of SessionFactory service
-        reference = 
context.getServiceReference(SessionFactory.class.getName());
-        SessionFactory sessionFactory = (SessionFactory) 
context.getService(reference);
-        SessionFactoryLocator.setSessionFactory(sessionFactory);
-    }
-
-    @Override
-    public void stop(BundleContext context) throws Exception {
-        // release the reference
-        if (reference != null) {
-            context.ungetService(reference);
-        }
-    }
-
-}
diff --git a/components/pom.xml b/components/pom.xml
index 8959c90f..6fe7159c 100644
--- a/components/pom.xml
+++ b/components/pom.xml
@@ -37,7 +37,6 @@
         <module>camel-blueprint-main</module>
         <module>camel-test-blueprint</module>
         <module>camel-test-blueprint-junit5</module>
-        <module>camel-cmis-osgi</module>
         <module>camel-cxf-blueprint</module>
         <module>camel-cxf-transport-blueprint</module>
         <module>camel-eventadmin</module>

Reply via email to