Skip to content

Commit

Permalink
[resolves #1989] Add support for component cmis
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesnetherton committed Apr 11, 2018
1 parent c833e4c commit 8e136ff
Show file tree
Hide file tree
Showing 20 changed files with 442 additions and 2 deletions.
2 changes: 1 addition & 1 deletion catalog/src/main/resources/component.roadmap
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ chronicle-engine
chunk
class
cm-sms
cmis
coap
consul
controlbus
Expand Down Expand Up @@ -255,7 +256,6 @@ zookeeper
zookeeper-master

[planned]
cmis #1989 Blocked by camel-2.21.x
restlet #2024 Blocked by camel-2.21.x

[undecided]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public void before() throws Exception {
mapping.put("version.camel.lucene", "lucene-version");
mapping.put("version.camel.qpid.proton", "qpid-proton-j-version");
mapping.put("version.camel.netty41", "netty-version");
mapping.put("version.camel.opencmis", "cmis-version");
mapping.put("version.wildfly.arquillian", "version.org.wildfly.arquillian");
mapping.put("version.wildfly.cxf", "version.org.apache.cxf");
mapping.put("version.wildfly.fasterxml.jackson", "version.com.fasterxml.jackson");
Expand Down
3 changes: 3 additions & 0 deletions docs/guide/components/camel-cmis.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### camel-cmis

The https://github.com/apache/camel/blob/camel-{camel-version}/components/camel-cmis/src/main/docs/cmis-component.adoc[cmis,window=_blank] component uses the http://chemistry.apache.org/java/opencmis.html[Apache Chemistry,window=_blank] client API and allows you to add / read nodes to / from a CMIS compliant content repositories.
2 changes: 2 additions & 0 deletions docs/guide/components/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ include::camel-chunk.adoc[]

include::camel-cm-sms.adoc[]

include::camel-cmis.adoc[]

include::camel-coap.adoc[]

include::camel-consul.adoc[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
<module name="org.apache.camel.component.chunk" export="true" services="export" optional="true" />
<module name="org.apache.camel.component.chronicle" export="true" services="export" optional="true" />
<module name="org.apache.camel.component.cm.sms" export="true" services="export" optional="true" />
<module name="org.apache.camel.component.cmis" export="true" services="export" optional="true" />
<module name="org.apache.camel.component.coap" export="true" services="export" optional="true" />
<module name="org.apache.camel.component.consul" export="true" services="export" optional="true" />
<module name="org.apache.camel.component.context" export="true" services="export" optional="true" />
Expand Down
20 changes: 20 additions & 0 deletions feature/modules/etc/smartics/camel-modules.xml
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,26 @@
</dependencies>
</module>

<module name="org.apache.camel.component.cmis">
<include artifact="org.apache.camel:camel-cmis"/>
<apply-to-dependencies skip="true">
<include module="org.apache.camel.apt"/>
<include module="org.springframework.boot"/>
</apply-to-dependencies>
<dependencies>
<module name="org.apache.chemistry.opencmis" export="true">
<exports>
<exclude path="org/apache/chemistry/opencmis/client/osgi"/>
<exclude path="wsdl**"/>
</exports>
</module>
<module name="org.slf4j"/>
</dependencies>
<exports>
<exclude path="org/apache/camel/component/cmis/osgi"/>
</exports>
</module>

<module name="org.apache.camel.component.chronicle">
<include artifact="org.apache.camel:camel-chronicle"/>
<apply-to-dependencies skip="true">
Expand Down
14 changes: 14 additions & 0 deletions feature/modules/etc/smartics/other-modules.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1178,6 +1178,20 @@
</dependencies>
</module>

<module name="org.apache.chemistry.opencmis">
<properties>
<property name="jboss.api" value="private"/>
</properties>
<include artifact="org.apache.chemistry.opencmis:chemistry-opencmis-client-api"/>
<include artifact="org.apache.chemistry.opencmis:chemistry-opencmis-client-bindings"/>
<include artifact="org.apache.chemistry.opencmis:chemistry-opencmis-client-impl"/>
<include artifact="org.apache.chemistry.opencmis:chemistry-opencmis-commons-api"/>
<include artifact="org.apache.chemistry.opencmis:chemistry-opencmis-commons-impl"/>
<dependencies>
<module name="javax.api"/>
</dependencies>
</module>

<module name="org.apache.commons.compress">
<properties>
<property name="jboss.api" value="private"/>
Expand Down
6 changes: 6 additions & 0 deletions feature/modules/etc/wildfly-feature-pack.xml
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@
<artifact groupId="org.apache.camel" artifactId="camel-chronicle" version="2.21.0"/>
<artifact groupId="org.apache.camel" artifactId="camel-chunk" version="2.21.0"/>
<artifact groupId="org.apache.camel" artifactId="camel-cm-sms" version="2.21.0"/>
<artifact groupId="org.apache.camel" artifactId="camel-cmis" version="2.21.0"/>
<artifact groupId="org.apache.camel" artifactId="camel-coap" version="2.21.0"/>
<artifact groupId="org.apache.camel" artifactId="camel-connector" version="2.21.0"/>
<artifact groupId="org.apache.camel" artifactId="camel-consul" version="2.21.0"/>
Expand Down Expand Up @@ -493,6 +494,11 @@
<artifact groupId="org.apache.camel" artifactId="camel-zipkin" version="2.21.0"/>
<artifact groupId="org.apache.camel" artifactId="camel-zookeeper" version="2.21.0"/>
<artifact groupId="org.apache.camel" artifactId="camel-zookeeper-master" version="2.21.0"/>
<artifact groupId="org.apache.chemistry.opencmis" artifactId="chemistry-opencmis-client-api" version="1.1.0"/>
<artifact groupId="org.apache.chemistry.opencmis" artifactId="chemistry-opencmis-client-bindings" version="1.1.0"/>
<artifact groupId="org.apache.chemistry.opencmis" artifactId="chemistry-opencmis-client-impl" version="1.1.0"/>
<artifact groupId="org.apache.chemistry.opencmis" artifactId="chemistry-opencmis-commons-api" version="1.1.0"/>
<artifact groupId="org.apache.chemistry.opencmis" artifactId="chemistry-opencmis-commons-impl" version="1.1.0"/>
<artifact groupId="org.apache.commons" artifactId="commons-collections4" version="4.1"/>
<artifact groupId="org.apache.commons" artifactId="commons-compress" version="1.16.1"/>
<artifact groupId="org.apache.commons" artifactId="commons-csv" version="1.5"/>
Expand Down
4 changes: 4 additions & 0 deletions feature/modules/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,10 @@
<groupId>org.apache.camel</groupId>
<artifactId>camel-cm-sms</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-cmis</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-coap</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.1" name="org.apache.camel.component.cmis">
<resources>
<artifact name="${org.apache.camel:camel-cmis}" />
</resources>
<dependencies>
<module name="org.apache.chemistry.opencmis" export="true">
<exports>
<exclude path="org/apache/chemistry/opencmis/client/osgi" />
<exclude path="wsdl**" />
</exports>
</module>
<module name="org.slf4j" />
<module name="javax.xml.bind.api" />
<module name="org.apache.camel.core" />
</dependencies>
<exports>
<exclude path="org/apache/camel/component/cmis/osgi" />
</exports>
</module>
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
<module name="org.apache.camel.component.chunk" export="true" services="export" optional="true" />
<module name="org.apache.camel.component.chronicle" export="true" services="export" optional="true" />
<module name="org.apache.camel.component.cm.sms" export="true" services="export" optional="true" />
<module name="org.apache.camel.component.cmis" export="true" services="export" optional="true" />
<module name="org.apache.camel.component.coap" export="true" services="export" optional="true" />
<module name="org.apache.camel.component.consul" export="true" services="export" optional="true" />
<module name="org.apache.camel.component.context" export="true" services="export" optional="true" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.1" name="org.apache.chemistry.opencmis">
<properties>
<property name="jboss.api" value="private" />
</properties>
<resources>
<artifact name="${org.apache.chemistry.opencmis:chemistry-opencmis-client-api}" />
<artifact name="${org.apache.chemistry.opencmis:chemistry-opencmis-client-bindings}" />
<artifact name="${org.apache.chemistry.opencmis:chemistry-opencmis-client-impl}" />
<artifact name="${org.apache.chemistry.opencmis:chemistry-opencmis-commons-api}" />
<artifact name="${org.apache.chemistry.opencmis:chemistry-opencmis-commons-impl}" />
</resources>
<dependencies>
<module name="javax.api" />
<module name="com.squareup.okhttp3" />
<module name="org.apache.cxf.impl" />
<module name="org.apache.httpcomponents" />
<module name="org.codehaus.woodstox" />
<module name="org.osgi.core" />
<module name="org.slf4j" />
</dependencies>
</module>
8 changes: 7 additions & 1 deletion itests/standalone/basic/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,12 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.chemistry.opencmis</groupId>
<artifactId>chemistry-opencmis-server-inmemory</artifactId>
<version>${version.camel.opencmis}</version>
<type>war</type>
</dependency>
<dependency>
<groupId>org.apache.ftpserver</groupId>
<artifactId>ftpserver-core</artifactId>
Expand Down Expand Up @@ -286,7 +292,7 @@
<goal>copy-dependencies</goal>
</goals>
<configuration>
<includeGroupIds>org.apache.activemq,com.icegreen</includeGroupIds>
<includeGroupIds>org.apache.activemq,com.icegreen,org.apache.chemistry.opencmis</includeGroupIds>
<includeTypes>rar,war</includeTypes>
<stripVersion>true</stripVersion>
<outputDirectory>${project.build.directory}/dependencies</outputDirectory>
Expand Down
Loading

0 comments on commit 8e136ff

Please sign in to comment.