dist.deploy.nuxeo.plugins=${dist.deploy.nuxeo}/${nuxeo.plugins}
#JEE Application Server
-jee.release=apache-tomcat-6.0.33
+jee.release=apache-tomcat-7.0.57
jee.dir=${env.CSPACE_JEESERVER_HOME}
jee.home=${jee.dir}
jee.bin=${jee.home}/bin
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<cspace.services.version>4.5-SNAPSHOT</cspace.services.version>
<cspace.services.client.version>4.5-SNAPSHOT</cspace.services.client.version>
- <nuxeo.general.release>7.10</nuxeo.general.release>
+ <nuxeo.general.release>7.10-HF17</nuxeo.general.release>
<nuxeo.shell.version>${nuxeo.general.release}</nuxeo.shell.version>
<nuxeo.platform.version>${nuxeo.general.release}</nuxeo.platform.version>
<nuxeo.core.version>${nuxeo.general.release}</nuxeo.core.version>
<enabled>false</enabled>
</snapshots>
</repository>
-
+
<repository>
<id>public-snapshot</id>
<url>http://maven.nuxeo.org/public-snapshot</url>
</snapshots>
</repository>
+ <repository>
+ <id>nightly-staging</id>
+ <name>nuxeo-nightly-staging</name>
+ <url>http://mavenin.nuxeo.com/nexus/content/repositories/nightly-staging</url>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </repository>
+
<repository>
<snapshots>
<enabled>false</enabled>
<dependency>
<groupId>jaxen</groupId>
<artifactId>jaxen</artifactId>
- <version>1.1.1</version>
+ <version>1.1.6</version>
<scope>provided</scope>
</dependency>
<dependency>
<artifactId>jsp-2.1</artifactId>
<groupId>org.mortbay.jetty</groupId>
</exclusion>
+ <exclusion>
+ <artifactId>jaxb-impl</artifactId>
+ <groupId>com.sun.xml.bind</groupId>
+ </exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
</dependency>
- <dependency>
- <groupId>org.jboss.resteasy</groupId>
- <artifactId>jaxrs-api</artifactId>
- </dependency>
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-jaxrs</artifactId>
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-jaxb-provider</artifactId>
+ <exclusions>
+ <exclusion>
+ <artifactId>jaxb-impl</artifactId>
+ <groupId>com.sun.xml.bind</groupId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
<groupId>org.jboss.resteasy</groupId>
<dependency>
<groupId>org.nuxeo.common</groupId>
<artifactId>nuxeo-common</artifactId>
- <version>${nuxeo.core.version}</version>
</dependency>
<dependency>
<groupId>org.nuxeo.runtime</groupId>
<artifactId>nuxeo-runtime</artifactId>
- <version>${nuxeo.core.version}</version>
</dependency>
<dependency>
<groupId>org.nuxeo.ecm.core</groupId>
<artifactId>nuxeo-core</artifactId>
- <version>${nuxeo.core.version}</version>
<exclusions>
<exclusion>
<groupId>xerces</groupId>
<dependency>
<groupId>org.nuxeo.ecm.core</groupId>
<artifactId>nuxeo-core-convert</artifactId>
- <version>${nuxeo.core.version}</version>
</dependency>
<dependency>
<groupId>org.nuxeo.lib.core</groupId>
<dependency>
<groupId>org.nuxeo.ecm.core</groupId>
<artifactId>nuxeo-core-storage-sql-ra</artifactId>
- <version>${nuxeo.core.version}</version>
</dependency>
<dependency>
<groupId>org.nuxeo.ecm.core</groupId>
<artifactId>nuxeo-core-query</artifactId>
- <version>${nuxeo.core.version}</version>
+ <version>${nuxeo.core.version}</version>
</dependency>
<dependency>
<groupId>org.nuxeo.ecm.core</groupId>
<artifactId>nuxeo-core-schema</artifactId>
- <version>${nuxeo.core.version}</version>
</dependency>
+ <!--
<dependency>
<groupId>org.nuxeo.ecm.core</groupId>
<artifactId>nuxeo-core-io</artifactId>
- <version>${nuxeo.core.version}</version>
</dependency>
-<!--
- <dependency>
- <groupId>org.nuxeo.runtime</groupId>
- <artifactId>nuxeo-runtime-scripting</artifactId>
- <version>${nuxeo.core.version}</version>
- </dependency>
- -->
+ -->
<dependency>
<groupId>org.nuxeo.runtime</groupId>
<artifactId>nuxeo-runtime-jtajca</artifactId>
- <version>${nuxeo.core.version}</version>
<!-- Until issue http://issues.collectionspace.org/browse/CSPACE-4639 is resolved, we
<version>5.5-NXP-8140</version>
need to use this patched Nuxeo artifact that is only available on our public Maven
<dependency>
<groupId>org.nuxeo.runtime</groupId>
<artifactId>nuxeo-runtime-datasource</artifactId>
- <version>${nuxeo.core.version}</version>
</dependency>
<dependency>
<groupId>org.nuxeo.ecm.platform</groupId>
<groupId>org.nuxeo.ecm.platform</groupId>
<artifactId>nuxeo-platform-audit-api</artifactId>
<version>${nuxeo.core.version}</version>
+ <exclusions>
+ <exclusion>
+ <artifactId>jersey-client</artifactId>
+ <groupId>com.sun.jersey</groupId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
<groupId>org.nuxeo.runtime</groupId>
<artifactId>nuxeo-runtime-osgi</artifactId>
<version>${nuxeo.core.version}</version>
</dependency>
+
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.core</artifactId>
<version>4.1.0</version>
</dependency>
-
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<dependency>
<groupId>com.sun.xml.bind</groupId>
- <artifactId>jaxb-impl</artifactId>
+ <artifactId>jaxb-core</artifactId>
</dependency>
<dependency>
<groupId>org.jvnet.jaxb2-commons</groupId>
<dependencies>
<dependency>
<groupId>com.sun.xml.bind</groupId>
- <artifactId>jaxb-impl</artifactId>
+ <artifactId>jaxb-core</artifactId>
</dependency>
<dependency>
<groupId>org.jvnet.jaxb2-commons</groupId>
<dependencies>
<dependency>
<groupId>com.sun.xml.bind</groupId>
- <artifactId>jaxb-impl</artifactId>
+ <artifactId>jaxb-core</artifactId>
</dependency>
<dependency>
<groupId>org.jvnet.jaxb2-commons</groupId>
</dependency>
<dependency>
<groupId>org.jboss.logging</groupId>
- <artifactId>jboss-logging-log4j</artifactId>
- <version>2.1.0.GA</version>
+ <artifactId>jboss-logging</artifactId>
+ <version>3.1.4.GA</version>
</dependency>
<dependency>
<!--
<dependencies>
<dependency>
<groupId>com.sun.xml.bind</groupId>
- <artifactId>jaxb-impl</artifactId>
+ <artifactId>jaxb-core</artifactId>
</dependency>
<dependency>
<groupId>org.jvnet.jaxb2-commons</groupId>
<packaging>pom</packaging>
<dependencies>
- <!-- CollectionSpace dependencies
- <dependency>
- <groupId>org.collectionspace.services</groupId>
- <artifactId>org.collectionspace.services.common-api</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>org.collectionspace.services</groupId>
- <artifactId>org.collectionspace.services.jaxb</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>org.collectionspace.services</groupId>
- <artifactId>org.collectionspace.services.client</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>org.collectionspace.services</groupId>
- <artifactId>org.collectionspace.services.common</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>org.collectionspace.services</groupId>
- <artifactId>org.collectionspace.services.authentication.jaxb</artifactId>
- <version>${project.version}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.collectionspace.services</groupId>
- <artifactId>org.collectionspace.services.authentication.service</artifactId>
- <version>${project.version}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.collectionspace.services</groupId>
- <artifactId>org.collectionspace.services.authorization.jaxb</artifactId>
- <version>${project.version}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.collectionspace.services</groupId>
- <artifactId>org.collectionspace.services.authorization.service</artifactId>
- <version>${project.version}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.collectionspace.services</groupId>
- <artifactId>org.collectionspace.services.relation.service</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>org.collectionspace.services</groupId>
- <artifactId>org.collectionspace.services.relation.client</artifactId>
- <version>${project.version}</version>
- </dependency>
- -->
-
-
- <!-- Utilities -->
-
- <!--
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-log4j12</artifactId>
- <scope>provided</scope>
- </dependency>
- -->
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.0</version>
<scope>provided</scope>
</dependency>
- <!--
- <dependency>
- <groupId>dom4j</groupId>
- <artifactId>dom4j</artifactId>
- <version>1.6.1</version>
- <scope>provided</scope>
- </dependency>
- -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
<!-- jboss -->
- <dependency>
- <groupId>org.jboss.resteasy</groupId>
- <artifactId>jaxrs-api</artifactId>
- </dependency>
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-jaxrs</artifactId>
<version>2.2.2.SP8</version>
<scope>provided</scope>
</dependency>
- <!-- nuxeo -->
-<!--
- <dependency>
- <groupId>org.nuxeo.ecm.platform</groupId>
- <artifactId>nuxeo-platform-mimetype-api</artifactId>
- <version>${nuxeo.platform.version}</version>
- </dependency>
- <dependency>
- <groupId>org.nuxeo.ecm.platform</groupId>
- <artifactId>nuxeo-platform-imaging-api</artifactId>
- <version>${nuxeo.platform.version}</version>
- </dependency>
- <dependency>
- <groupId>org.nuxeo.ecm.platform</groupId>
- <artifactId>nuxeo-platform-filemanager-api</artifactId>
- <version>${nuxeo.platform.version}</version>
- </dependency>
--->
- <!--
- <dependency>
- <groupId>org.nuxeo.common</groupId>
- <artifactId>nuxeo-common</artifactId>
- <version>${nuxeo.core.version}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.nuxeo.runtime</groupId>
- <artifactId>nuxeo-runtime</artifactId>
- <version>${nuxeo.core.version}</version>
- </dependency>
- <dependency>
- <groupId>org.nuxeo.ecm.core</groupId>
- <artifactId>nuxeo-core-api</artifactId>
- <version>${nuxeo.core.version}</version>
- </dependency>
- <dependency>
- <groupId>org.nuxeo.ecm.core</groupId>
- <artifactId>nuxeo-core-client</artifactId>
- <version>${nuxeo.core.version}</version>
- </dependency>
- <dependency>
- <groupId>org.nuxeo.ecm.core</groupId>
- <artifactId>nuxeo-core-query</artifactId>
- <version>${nuxeo.core.version}</version>
- </dependency>
- <dependency>
- <groupId>org.nuxeo.ecm.core</groupId>
- <artifactId>nuxeo-core-schema</artifactId>
- <version>${nuxeo.core.version}</version>
- </dependency>
- <dependency>
- <groupId>org.nuxeo.ecm.core</groupId>
- <artifactId>nuxeo-core-io</artifactId>
- <version>${nuxeo.core.version}</version>
- </dependency>
- <dependency>
- <groupId>org.nuxeo.ecm.core</groupId>
- <artifactId>nuxeo-core-io</artifactId>
- <version>${nuxeo.core.version}</version>
- </dependency>
- <dependency>
- <groupId>org.nuxeo.runtime</groupId>
- <artifactId>nuxeo-runtime-osgi</artifactId>
- <version>${nuxeo.core.version}</version>
- </dependency>
- <dependency>
- <groupId>org.osgi</groupId>
- <artifactId>org.osgi.core</artifactId>
- <version>4.1.0</version>
- </dependency>
- -->
</dependencies>
<modules>
<dependency>
<groupId>com.sun.xml.bind</groupId>
- <artifactId>jaxb-impl</artifactId>
+ <artifactId>jaxb-core</artifactId>
</dependency>
<dependency>
<groupId>org.jvnet.jaxb2-commons</groupId>
</dependency>
<!-- jboss -->
- <dependency>
- <groupId>org.jboss.resteasy</groupId>
- <artifactId>jaxrs-api</artifactId>
- </dependency>
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-jaxrs</artifactId>
<dependency>
<groupId>org.nuxeo.common</groupId>
<artifactId>nuxeo-common</artifactId>
- <version>${nuxeo.core.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.nuxeo.runtime</groupId>
<artifactId>nuxeo-runtime</artifactId>
- <version>${nuxeo.core.version}</version>
</dependency>
<dependency>
<groupId>org.nuxeo.ecm.core</groupId>
<dependency>
<groupId>org.nuxeo.ecm.core</groupId>
<artifactId>nuxeo-core-schema</artifactId>
- <version>${nuxeo.core.version}</version>
</dependency>
<dependency>
<groupId>org.nuxeo.ecm.core</groupId>
<artifactId>nuxeo-core-storage-sql</artifactId>
- <version>${nuxeo.core.version}</version>
</dependency>
+ <!--
<dependency>
<groupId>org.nuxeo.ecm.core</groupId>
<artifactId>nuxeo-core-io</artifactId>
- <version>${nuxeo.core.version}</version>
</dependency>
+ -->
<dependency>
<groupId>org.nuxeo.runtime</groupId>
<artifactId>nuxeo-runtime-osgi</artifactId>
import javax.ws.rs.core.Response;
import javax.ws.rs.core.UriBuilder;
import javax.ws.rs.core.UriInfo;
+import javax.ws.rs.core.MultivaluedHashMap;
import org.collectionspace.services.client.IClientQueryParams;
import org.collectionspace.services.client.IQueryManager;
String parentcsid = lookupParentCSID(ctx, parentspecifier, "getReferencingObjects(parent)", "GET_ITEM_REF_OBJS", uriInfo);
String itemcsid = lookupItemCSID(ctx, itemspecifier, parentcsid, "getReferencingObjects(item)", "GET_ITEM_REF_OBJS");
- List<String> serviceTypes = queryParams.remove(ServiceBindingUtils.SERVICE_TYPE_PROP);
+ // RESTEasy returns a read-only set of query params, so we need to make a read-write copy of them
+ MultivaluedHashMap<String, String> tmpQueryParams = new MultivaluedHashMap<String, String>();
+ tmpQueryParams.putAll(queryParams);
+ // Set the original query params to the new copy
+ queryParams = tmpQueryParams;
+ // Update the service context with the new copy
+ ctx.setQueryParams(queryParams);
+
+ // Remove the "type" property from the query params
+ List<String> serviceTypes = queryParams.remove(ServiceBindingUtils.SERVICE_TYPE_PROP);
if (serviceTypes == null || serviceTypes.isEmpty()) {
serviceTypes = ServiceBindingUtils.getCommonServiceTypes(true); //CSPACE-5359: Should now include objects, procedures, and authorities
}
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-jaxb-provider</artifactId>
</dependency>
+ <!--
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-multipart-provider</artifactId>
</dependency>
+ -->
<dependency>
<groupId>commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
<properties>
</properties>
<dependencies>
+ <dependency>
+ <groupId>com.sun.xml.bind</groupId>
+ <artifactId>jaxb-core</artifactId>
+ </dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<!-- jboss -->
<dependency>
<groupId>org.jboss.logging</groupId>
- <artifactId>jboss-logging-log4j</artifactId>
- <version>2.1.0.GA</version>
+ <artifactId>jboss-logging</artifactId>
+ <version>3.1.4.GA</version>
</dependency>
<dependency>
<groupId>jboss</groupId>
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
- <version>2.9.1</version>
+ <version>2.11.0</version>
</dependency>
<dependency>
<groupId>org.jboss.resteasy</groupId>
</dependency>
<dependency>
<groupId>org.jboss.resteasy</groupId>
- <artifactId>jaxrs-api</artifactId>
+ <artifactId>resteasy-jaxrs</artifactId>
</dependency>
<dependency>
<groupId>org.jboss.resteasy</groupId>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-multipart-provider</artifactId>
</dependency>
+ <dependency>
+ <groupId>org.jboss.logging</groupId>
+ <artifactId>jboss-logging</artifactId>
+ <version>3.1.4.GA</version>
+ <scope>runtime</scope>
+ </dependency>
<!-- Set TestNG scope to default (compile), rather than test -->
<!-- to allow import(s) in AbstractServiceTest class -->
<dependency>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
- <artifactId>jaxb-impl</artifactId>
- <version>2.2.7</version>
+ <artifactId>jaxb-core</artifactId>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>jaxen</groupId>
<artifactId>jaxen</artifactId>
- <version>1.1.1</version>
+ <version>1.1.6</version>
</dependency>
</dependencies>
</exclusion>
</exclusions>
</dependency>
- <dependency>
- <groupId>org.jboss.resteasy</groupId>
- <artifactId>jaxrs-api</artifactId>
- </dependency>
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-jaxb-provider</artifactId>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
- <artifactId>dbcp</artifactId>
- <version>6.0.33</version>
+ <artifactId>tomcat-dbcp</artifactId>
+ <version>7.0.64</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
- <artifactId>catalina</artifactId>
- <version>6.0.33</version>
+ <artifactId>tomcat-catalina</artifactId>
+ <version>7.0.64</version>
<scope>provided</scope>
</dependency>
</dependency>
<!-- jboss -->
- <dependency>
- <groupId>org.jboss.resteasy</groupId>
- <artifactId>jaxrs-api</artifactId>
- </dependency>
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-jaxrs</artifactId>
<dependency>
<groupId>org.nuxeo.common</groupId>
<artifactId>nuxeo-common</artifactId>
- <version>${nuxeo.core.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.nuxeo.runtime</groupId>
<artifactId>nuxeo-runtime</artifactId>
- <version>${nuxeo.core.version}</version>
</dependency>
<dependency>
<groupId>org.nuxeo.ecm.core</groupId>
<dependency>
<groupId>org.nuxeo.ecm.core</groupId>
<artifactId>nuxeo-core-schema</artifactId>
- <version>${nuxeo.core.version}</version>
</dependency>
<dependency>
<groupId>org.nuxeo.ecm.core</groupId>
<artifactId>nuxeo-core-storage-sql</artifactId>
- <version>${nuxeo.core.version}</version>
</dependency>
<dependency>
<groupId>org.nuxeo.ecm.core</groupId>
<artifactId>nuxeo-core-storage-sql-ra</artifactId>
- <version>${nuxeo.core.version}</version>
</dependency>
+ <!--
<dependency>
<groupId>org.nuxeo.ecm.core</groupId>
<artifactId>nuxeo-core-io</artifactId>
- <version>${nuxeo.core.version}</version>
</dependency>
+ -->
<dependency>
<groupId>org.nuxeo.ecm.core</groupId>
<artifactId>nuxeo-core-convert</artifactId>
- <version>${nuxeo.core.version}</version>
</dependency>
- <!-- <dependency> <groupId>org.nuxeo.ecm.core</groupId> <artifactId>nuxeo-core-facade</artifactId>
- <version>${nuxeo.core.version}</version> </dependency> -->
<dependency>
<groupId>org.nuxeo.runtime</groupId>
<artifactId>nuxeo-runtime-osgi</artifactId>
<version>${nuxeo.core.version}</version>
</dependency>
+ <dependency>
+ <groupId>org.nuxeo.ecm.core</groupId>
+ <artifactId>nuxeo-opencmis-impl</artifactId>
+ </dependency>
<dependency>
<groupId>org.nuxeo.ecm.core</groupId>
<artifactId>nuxeo-opencmis-bindings</artifactId>
- <version>${nuxeo.core.version}</version>
<exclusions>
<exclusion>
<artifactId>jsr311-api</artifactId>
import org.collectionspace.services.common.config.TenantBindingUtils;
import org.collectionspace.services.common.storage.PreparedStatementBuilder;
import org.collectionspace.services.common.vocabulary.RefNameServiceUtils.AuthorityItemSpecifier;
-import org.collectionspace.services.common.vocabulary.RefNameServiceUtils.Specifier;
import org.collectionspace.services.config.tenant.TenantBindingType;
import org.collectionspace.services.config.tenant.RepositoryDomainType;
* @throws TransactionException
* @throws DocumentException
*/
- @Override
+ @Override
public void get(ServiceContext ctx, String id, DocumentHandler handler)
throws DocumentNotFoundException, TransactionException, DocumentException {
try {
docModel = repoSession.getDocument(docRef);
assertWorkflowState(ctx, docModel);
- } catch (ClientException ce) {
- String msg = logException(ce, "Could not find document with CSID=" + id);
+ } catch (org.nuxeo.ecm.core.api.DocumentNotFoundException ce) {
+ String msg = logException(ce,
+ String.format("Could not find %s resource/record with CSID=%s", ctx.getDocumentType(), id));
throw new DocumentNotFoundException(msg, ce);
}
//
* cannot be successfully completed
* @throws DocumentException
*/
- @Override
+ @Override
public void update(ServiceContext ctx, String csid, DocumentHandler handler)
throws BadRequestException, DocumentNotFoundException, TransactionException,
DocumentException {
DocumentModel doc = null;
try {
doc = repoSession.getDocument(docRef);
- } catch (ClientException ce) {
- String msg = logException(ce, "Could not find document to update with CSID=" + csid);
+ } catch (org.nuxeo.ecm.core.api.DocumentNotFoundException ce) {
+ String msg = logException(ce,
+ String.format("Could not find %s resource/record to update with CSID=%s", ctx.getDocumentType(), csid));
throw new DocumentNotFoundException(msg, ce);
}
// Check for a versioned document, and check In and Out before we proceed.
} else {
result = false; // delete failed for some reason
}
- } catch (ClientException ce) {
- String msg = logException(ce, "Could not find document to delete with CSID=" + id);
+ } catch (org.nuxeo.ecm.core.api.DocumentNotFoundException ce) {
+ String msg = logException(ce,
+ String.format("Could not find %s resource/record to delete with CSID=%s", ctx.getDocumentType(), id));
throw new DocumentNotFoundException(msg, ce);
}
repoSession.save();
<dependencies>
<dependency>
<groupId>com.sun.xml.bind</groupId>
- <artifactId>jaxb-impl</artifactId>
+ <artifactId>jaxb-core</artifactId>
</dependency>
<dependency>
<groupId>org.jvnet.jaxb2_commons</groupId>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
- <artifactId>jaxb-impl</artifactId>
+ <artifactId>jaxb-core</artifactId>
</dependency>
<!--
<dependency>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
- <artifactId>jaxb-impl</artifactId>
+ <artifactId>jaxb-core</artifactId>
</dependency>
<!--
<dependency>
<annox.version>0.5.0</annox.version>
<jaxb2-basics.version>0.6.2</jaxb2-basics.version>
<maven-jaxb2-plugin.version>0.12.3</maven-jaxb2-plugin.version>
- <jaxb.version>2.2.4-1</jaxb.version>
- <resteasy.version>3.0.9.Final</resteasy.version>
+ <jaxb.version>2.2.11</jaxb.version>
+ <resteasy.version>3.0.19.Final</resteasy.version>
<mysql.driver.version>5.1.8</mysql.driver.version>
<postgres.driver.version>9.1-901.jdbc4</postgres.driver.version>
<!-- The default life cycle policy for Nuxeo document types -->
<plugin>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
- <version>2.1</version>
+ <version>${jaxb.version}</version>
</plugin>
<plugin>
<groupId>org.jvnet.jaxb2_commons</groupId>
<groupId>javax.servlet</groupId>
<version>2.5</version>
</dependency>
+
+ <!-- Start of Nuxeo dependencies -->
+ <dependency>
+ <groupId>org.nuxeo.ecm.core</groupId>
+ <artifactId>nuxeo-core</artifactId>
+ <version>${nuxeo.core.version}</version>
+ </dependency>
<dependency>
<groupId>org.nuxeo.ecm.core</groupId>
<artifactId>nuxeo-core-api</artifactId>
- <version>${nuxeo.core.version}</version>
+ <version>${nuxeo.core.version}</version>
</dependency>
+ <dependency>
+ <groupId>org.nuxeo.common</groupId>
+ <artifactId>nuxeo-common</artifactId>
+ <version>${nuxeo.core.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.nuxeo.runtime</groupId>
+ <artifactId>nuxeo-runtime</artifactId>
+ <version>${nuxeo.core.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.nuxeo.ecm.core</groupId>
+ <artifactId>nuxeo-core-schema</artifactId>
+ <version>${nuxeo.core.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.nuxeo.ecm.core</groupId>
+ <artifactId>nuxeo-core-storage-sql</artifactId>
+ <version>${nuxeo.core.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.nuxeo.ecm.core</groupId>
+ <artifactId>nuxeo-core-storage-sql-ra</artifactId>
+ <version>${nuxeo.core.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.nuxeo.ecm.core</groupId>
+ <artifactId>nuxeo-core-io</artifactId>
+ <version>${nuxeo.core.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.nuxeo.ecm.core</groupId>
+ <artifactId>nuxeo-core-convert</artifactId>
+ <version>${nuxeo.core.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.nuxeo.ecm.core</groupId>
+ <artifactId>nuxeo-opencmis-impl</artifactId>
+ <version>${nuxeo.core.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.nuxeo.ecm.core</groupId>
+ <artifactId>nuxeo-opencmis-bindings</artifactId>
+ <version>${nuxeo.core.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.nuxeo.runtime</groupId>
+ <artifactId>nuxeo-runtime-jtajca</artifactId>
+ <version>${nuxeo.core.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.nuxeo.runtime</groupId>
+ <artifactId>nuxeo-runtime-datasource</artifactId>
+ <version>${nuxeo.core.version}</version>
+ </dependency>
+ <!-- End of Nuxeo dependencies -->
+
<dependency>
<groupId>net.java.dev.jaxb2-commons</groupId>
<artifactId>jaxb-fluent-api</artifactId>
<artifactId>jaxb2-basics-runtime</artifactId>
<version>${jaxb2-basics.version}</version>
</dependency>
- <dependency>
- <groupId>org.jboss.resteasy</groupId>
- <artifactId>jaxrs-api</artifactId>
- <version>${resteasy.version}</version>
- </dependency>
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-jaxrs</artifactId>
<artifactId>commons-cli</artifactId>
<version>1.2</version>
</dependency>
+ <dependency>
+ <groupId>com.sun.xml.bind</groupId>
+ <artifactId>jaxb-core</artifactId>
+ <version>${jaxb.version}</version>
+ </dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<!-- jboss -->
- <dependency>
- <groupId>org.jboss.resteasy</groupId>
- <artifactId>jaxrs-api</artifactId>
- </dependency>
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-jaxrs</artifactId>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
- <artifactId>jaxb-impl</artifactId>
+ <artifactId>jaxb-core</artifactId>
</dependency>
<!--
<dependency>