You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2020/03/24 12:36:53 UTC
[camel-karaf] branch master updated: CAMEL-14775:
camel-cxf-transport - Move OSGi blueprint out into
camel-cxf-transport-blueprint
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-karaf.git
The following commit(s) were added to refs/heads/master by this push:
new 5094d45 CAMEL-14775: camel-cxf-transport - Move OSGi blueprint out into camel-cxf-transport-blueprint
5094d45 is described below
commit 5094d450ca7ab1646f92167caa1bf48c1d92a35e
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Tue Mar 24 13:26:52 2020 +0100
CAMEL-14775: camel-cxf-transport - Move OSGi blueprint out into camel-cxf-transport-blueprint
---
components/camel-cxf-transport-blueprint/pom.xml | 96 ++++++++++++++++++++++
.../services/org/apache/camel/other.properties | 7 ++
.../resources/cxf-transport-blueprint.json | 12 +++
.../blueprint/AbstractBeanDefinitionParser.java | 80 ++++++++++++++++++
.../blueprint/CamelConduitDefinitionParser.java | 30 +++++++
.../CamelDestinationDefinitionParser.java | 31 +++++++
.../blueprint/CamelTransportNameSpaceHandler.java | 71 ++++++++++++++++
.../OSGI-INF/blueprint/camel-transport.xml | 31 +++++++
.../src/main/resources/schema/blueprint/camel.xsd | 56 +++++++++++++
components/pom.xml | 3 +-
.../karaf/features/src/main/resources/features.xml | 5 +-
11 files changed, 419 insertions(+), 3 deletions(-)
diff --git a/components/camel-cxf-transport-blueprint/pom.xml b/components/camel-cxf-transport-blueprint/pom.xml
new file mode 100644
index 0000000..8dacbf3
--- /dev/null
+++ b/components/camel-cxf-transport-blueprint/pom.xml
@@ -0,0 +1,96 @@
+<?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/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.camel.karaf</groupId>
+ <artifactId>components</artifactId>
+ <version>3.2.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>camel-cxf-transport-blueprint</artifactId>
+ <packaging>jar</packaging>
+ <name>Camel Karaf :: CXF Transport Blueprint</name>
+ <description>Camel CXF Transport for OSGi Blueprint</description>
+
+ <properties>
+ </properties>
+
+ <dependencies>
+
+ <dependency>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-cxf-transport</artifactId>
+ </dependency>
+
+ <!-- OSGi, Blueprint -->
+ <dependency>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-blueprint</artifactId>
+ <scope>provided</scope>
+ <optional>true</optional>
+ </dependency>
+ <dependency>
+ <groupId>org.osgi</groupId>
+ <artifactId>osgi.core</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.osgi</groupId>
+ <artifactId>osgi.cmpn</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.aries.blueprint</groupId>
+ <artifactId>org.apache.aries.blueprint.core</artifactId>
+ <scope>provided</scope>
+ </dependency>
+
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>attach-artifacts</id>
+ <phase>package</phase>
+ <goals>
+ <goal>attach-artifact</goal>
+ </goals>
+ <configuration>
+ <artifacts>
+ <artifact>
+ <file>./src/main/resources/schema/blueprint/camel.xsd</file>
+ <classifier>blueprint</classifier>
+ <type>xsd</type>
+ </artifact>
+ </artifacts>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
diff --git a/components/camel-cxf-transport-blueprint/src/generated/resources/META-INF/services/org/apache/camel/other.properties b/components/camel-cxf-transport-blueprint/src/generated/resources/META-INF/services/org/apache/camel/other.properties
new file mode 100644
index 0000000..87215ff
--- /dev/null
+++ b/components/camel-cxf-transport-blueprint/src/generated/resources/META-INF/services/org/apache/camel/other.properties
@@ -0,0 +1,7 @@
+# Generated by camel build tools - do NOT edit this file!
+name=cxf-transport-blueprint
+groupId=org.apache.camel.karaf
+artifactId=camel-cxf-transport-blueprint
+version=3.2.0-SNAPSHOT
+projectName=Camel Karaf :: CXF Transport Blueprint
+projectDescription=Camel CXF Transport for OSGi Blueprint
diff --git a/components/camel-cxf-transport-blueprint/src/generated/resources/cxf-transport-blueprint.json b/components/camel-cxf-transport-blueprint/src/generated/resources/cxf-transport-blueprint.json
new file mode 100644
index 0000000..ff690d6
--- /dev/null
+++ b/components/camel-cxf-transport-blueprint/src/generated/resources/cxf-transport-blueprint.json
@@ -0,0 +1,12 @@
+{
+ "other": {
+ "kind": "other",
+ "name": "cxf-transport-blueprint",
+ "title": "Cxf Transport Blueprint",
+ "description": "Camel CXF Transport for OSGi Blueprint",
+ "deprecated": false,
+ "groupId": "org.apache.camel.karaf",
+ "artifactId": "camel-cxf-transport-blueprint",
+ "version": "3.2.0-SNAPSHOT"
+ }
+}
diff --git a/components/camel-cxf-transport-blueprint/src/main/java/org/apache/camel/component/cxf/transport/blueprint/AbstractBeanDefinitionParser.java b/components/camel-cxf-transport-blueprint/src/main/java/org/apache/camel/component/cxf/transport/blueprint/AbstractBeanDefinitionParser.java
new file mode 100644
index 0000000..ef76e53
--- /dev/null
+++ b/components/camel-cxf-transport-blueprint/src/main/java/org/apache/camel/component/cxf/transport/blueprint/AbstractBeanDefinitionParser.java
@@ -0,0 +1,80 @@
+/*
+ * 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.cxf.transport.blueprint;
+
+import java.util.StringTokenizer;
+
+import org.w3c.dom.Attr;
+import org.w3c.dom.Element;
+import org.w3c.dom.NamedNodeMap;
+
+import org.apache.aries.blueprint.ParserContext;
+import org.apache.aries.blueprint.mutable.MutableBeanMetadata;
+import org.apache.cxf.common.util.StringUtils;
+import org.apache.cxf.configuration.blueprint.AbstractBPBeanDefinitionParser;
+import org.osgi.service.blueprint.reflect.BeanMetadata;
+import org.osgi.service.blueprint.reflect.Metadata;
+
+public class AbstractBeanDefinitionParser extends AbstractBPBeanDefinitionParser {
+
+ public static String getIdOrName(Element elem) {
+ String id = elem.getAttribute("id");
+
+ if (null == id || "".equals(id)) {
+ String names = elem.getAttribute("name");
+ if (null != names) {
+ StringTokenizer st = new StringTokenizer(names, ",");
+ if (st.countTokens() > 0) {
+ id = st.nextToken();
+ }
+ }
+ }
+ return id;
+ }
+
+ public MutableBeanMetadata createBeanMetadata(Element element, ParserContext context, Class<?> runtimeClass) {
+ MutableBeanMetadata answer = context.createMetadata(MutableBeanMetadata.class);
+ answer.setRuntimeClass(runtimeClass);
+ if (!StringUtils.isEmpty(getIdOrName(element))) {
+ answer.setId(getIdOrName(element));
+ } else {
+ // TODO we may need to throw exception for it
+ answer.setId("camel.cxf.transport." + runtimeClass.getSimpleName() + "." + context.generateId());
+ }
+ return answer;
+ }
+
+ public Metadata parse(Element element, ParserContext context, Class<?> runtime) {
+ MutableBeanMetadata config = createBeanMetadata(element, context, runtime);
+ config.setScope(BeanMetadata.SCOPE_PROTOTYPE);
+ String camelContextId = "camelContext";
+ NamedNodeMap atts = element.getAttributes();
+ for (int i = 0; i < atts.getLength(); i++) {
+ Attr node = (Attr) atts.item(i);
+ String val = node.getValue();
+ //String pre = node.getPrefix();
+ String name = node.getLocalName();
+ if ("camelContextId".equals(name)) {
+ camelContextId = val;
+ }
+ }
+ config.addDependsOn(camelContextId);
+ config.addProperty("camelContext", createRef(context, camelContextId));
+ return config;
+ }
+
+}
diff --git a/components/camel-cxf-transport-blueprint/src/main/java/org/apache/camel/component/cxf/transport/blueprint/CamelConduitDefinitionParser.java b/components/camel-cxf-transport-blueprint/src/main/java/org/apache/camel/component/cxf/transport/blueprint/CamelConduitDefinitionParser.java
new file mode 100644
index 0000000..cd34e64
--- /dev/null
+++ b/components/camel-cxf-transport-blueprint/src/main/java/org/apache/camel/component/cxf/transport/blueprint/CamelConduitDefinitionParser.java
@@ -0,0 +1,30 @@
+/*
+ * 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.cxf.transport.blueprint;
+
+import org.w3c.dom.Element;
+
+import org.apache.aries.blueprint.ParserContext;
+import org.apache.camel.component.cxf.transport.CamelConduit;
+import org.osgi.service.blueprint.reflect.Metadata;
+
+public class CamelConduitDefinitionParser extends AbstractBeanDefinitionParser {
+ public Metadata parse(Element element, ParserContext context) {
+ return parse(element, context, CamelConduit.class);
+ }
+
+}
diff --git a/components/camel-cxf-transport-blueprint/src/main/java/org/apache/camel/component/cxf/transport/blueprint/CamelDestinationDefinitionParser.java b/components/camel-cxf-transport-blueprint/src/main/java/org/apache/camel/component/cxf/transport/blueprint/CamelDestinationDefinitionParser.java
new file mode 100644
index 0000000..6278687
--- /dev/null
+++ b/components/camel-cxf-transport-blueprint/src/main/java/org/apache/camel/component/cxf/transport/blueprint/CamelDestinationDefinitionParser.java
@@ -0,0 +1,31 @@
+/*
+ * 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.cxf.transport.blueprint;
+
+import org.w3c.dom.Element;
+
+import org.apache.aries.blueprint.ParserContext;
+import org.apache.camel.component.cxf.transport.CamelDestination;
+import org.osgi.service.blueprint.reflect.Metadata;
+
+public class CamelDestinationDefinitionParser extends AbstractBeanDefinitionParser {
+ public Metadata parse(Element element, ParserContext context) {
+ return parse(element, context, CamelDestination.class);
+ }
+
+
+}
diff --git a/components/camel-cxf-transport-blueprint/src/main/java/org/apache/camel/component/cxf/transport/blueprint/CamelTransportNameSpaceHandler.java b/components/camel-cxf-transport-blueprint/src/main/java/org/apache/camel/component/cxf/transport/blueprint/CamelTransportNameSpaceHandler.java
new file mode 100644
index 0000000..a9482ad
--- /dev/null
+++ b/components/camel-cxf-transport-blueprint/src/main/java/org/apache/camel/component/cxf/transport/blueprint/CamelTransportNameSpaceHandler.java
@@ -0,0 +1,71 @@
+/*
+ * 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.cxf.transport.blueprint;
+
+import java.net.URL;
+import java.util.Arrays;
+import java.util.HashSet;
+import java.util.Set;
+
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+
+import org.apache.aries.blueprint.ParserContext;
+import org.apache.cxf.helpers.BaseNamespaceHandler;
+import org.osgi.service.blueprint.reflect.ComponentMetadata;
+import org.osgi.service.blueprint.reflect.Metadata;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class CamelTransportNameSpaceHandler extends BaseNamespaceHandler {
+ private static final Logger LOG = LoggerFactory.getLogger(CamelTransportNameSpaceHandler.class);
+
+ @Override
+ public ComponentMetadata decorate(Node node, ComponentMetadata componentMetadata, ParserContext parserContext) {
+ return null;
+ }
+
+ @Override
+ @SuppressWarnings("rawtypes")
+ public Set<Class> getManagedClasses() {
+ return new HashSet<>(Arrays.asList(CamelTransportNameSpaceHandler.class));
+ }
+
+ @Override
+ public URL getSchemaLocation(String s) {
+ if ("http://cxf.apache.org/transports/camel/blueprint".equals(s)) {
+ return getClass().getClassLoader().getResource("schema/blueprint/camel.xsd");
+ }
+ return super.findCoreSchemaLocation(s);
+ }
+
+ @Override
+ public Metadata parse(Element element, ParserContext context) {
+ Metadata answer = null;
+ String s = element.getLocalName();
+ if ("conduit".equals(s)) {
+ LOG.debug("parsing the conduit element");
+ answer = new CamelConduitDefinitionParser().parse(element, context);
+ }
+ if ("destination".equals(s)) {
+ LOG.debug("parsing the detination element");
+ answer = new CamelDestinationDefinitionParser().parse(element, context);
+ }
+ return answer;
+ }
+
+}
diff --git a/components/camel-cxf-transport-blueprint/src/main/resources/OSGI-INF/blueprint/camel-transport.xml b/components/camel-cxf-transport-blueprint/src/main/resources/OSGI-INF/blueprint/camel-transport.xml
new file mode 100644
index 0000000..8b06f03
--- /dev/null
+++ b/components/camel-cxf-transport-blueprint/src/main/resources/OSGI-INF/blueprint/camel-transport.xml
@@ -0,0 +1,31 @@
+<?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.
+
+-->
+<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0"
+ xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd">
+
+ <service interface="org.apache.aries.blueprint.NamespaceHandler">
+ <service-properties>
+ <entry key="osgi.service.blueprint.namespace" value="http://cxf.apache.org/transports/camel/blueprint"/>
+ </service-properties>
+ <bean class="org.apache.camel.component.cxf.transport.blueprint.CamelTransportNameSpaceHandler"/>
+ </service>
+</blueprint>
diff --git a/components/camel-cxf-transport-blueprint/src/main/resources/schema/blueprint/camel.xsd b/components/camel-cxf-transport-blueprint/src/main/resources/schema/blueprint/camel.xsd
new file mode 100644
index 0000000..43b224f
--- /dev/null
+++ b/components/camel-cxf-transport-blueprint/src/main/resources/schema/blueprint/camel.xsd
@@ -0,0 +1,56 @@
+<?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.
+
+-->
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:camel="http://cxf.apache.org/transports/camel"
+ xmlns:beans="http://www.osgi.org/xmlns/blueprint/v1.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:cxf-beans="http://cxf.apache.org/configuration/beans"
+ xmlns:camel-blueprint="http://camel.apache.org/schema/blueprint"
+ targetNamespace="http://cxf.apache.org/transports/camel/blueprint"
+ elementFormDefault="qualified" attributeFormDefault="unqualified"
+ xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd">
+
+ <xsd:import namespace="http://www.osgi.org/xmlns/blueprint/v1.0.0" schemaLocation="https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd"/>
+ <xsd:import namespace="http://cxf.apache.org/configuration/beans" schemaLocation="http://cxf.apache.org/schemas/configuration/cxf-beans.xsd"/>
+
+ <xsd:element name="destination">
+ <xsd:complexType>
+ <xsd:complexContent>
+ <xsd:extension base="beans:Tcomponent">
+ <!-- here we need to specify the CamelContext reference -->
+ <xsd:attribute name="camelContextId" type="xsd:string" />
+ </xsd:extension>
+ </xsd:complexContent>
+ </xsd:complexType>
+ </xsd:element>
+
+ <xsd:element name="conduit">
+ <xsd:complexType>
+ <xsd:complexContent>
+ <xsd:extension base="beans:Tcomponent">
+ <!-- here we need to specify the CamelContext reference -->
+ <xsd:attribute name="camelContextId" type="xsd:string" />
+ </xsd:extension>
+ </xsd:complexContent>
+ </xsd:complexType>
+ </xsd:element>
+
+
+</xsd:schema>
diff --git a/components/pom.xml b/components/pom.xml
index fd4477e..3ccab0a 100644
--- a/components/pom.xml
+++ b/components/pom.xml
@@ -33,10 +33,11 @@
<modules>
<module>camel-blueprint</module>
+ <module>camel-test-blueprint</module>
<module>camel-cxf-blueprint</module>
+ <module>camel-cxf-transport-blueprint</module>
<module>camel-kura</module>
<module>camel-paxlogging</module>
- <module>camel-test-blueprint</module>
</modules>
<properties>
diff --git a/platforms/karaf/features/src/main/resources/features.xml b/platforms/karaf/features/src/main/resources/features.xml
index dbaa535..b8598ce 100644
--- a/platforms/karaf/features/src/main/resources/features.xml
+++ b/platforms/karaf/features/src/main/resources/features.xml
@@ -798,9 +798,10 @@
<feature version='${cxf-version-range}'>cxf-features-logging</feature>
<bundle>mvn:org.apache.camel/camel-attachments/${project.version}</bundle>
<bundle>mvn:org.apache.camel/camel-http-base/${project.version}</bundle>
- <bundle>mvn:org.apache.camel.karaf/camel-cxf-blueprint/${project.version}</bundle>
- <bundle>mvn:org.apache.camel/camel-cxf-transport/${project.version}</bundle>
<bundle>mvn:org.apache.camel/camel-cxf/${project.version}</bundle>
+ <bundle>mvn:org.apache.camel/camel-cxf-transport/${project.version}</bundle>
+ <bundle>mvn:org.apache.camel.karaf/camel-cxf-blueprint/${project.version}</bundle>
+ <bundle>mvn:org.apache.camel.karaf/camel-cxf-transport-blueprint/${project.version}</bundle>
</feature>
<feature name='camel-digitalocean' version='${project.version}' start-level='50'>
<feature version='${project.version}'>camel-core</feature>