From b71266e7c639f19ea87115f586286cce803a19f2 Mon Sep 17 00:00:00 2001 From: Richard Millet Date: Thu, 30 Apr 2009 00:04:37 +0000 Subject: [PATCH] CSPACE-84: Removing dead code from source tree restructure work. --- JaxRsServiceProvider/README.txt | 14 + JaxRsServiceProvider/build.properties | 4 + JaxRsServiceProvider/build.xml | 13 + JaxRsServiceProvider/nb-configuration.xml | 21 ++ JaxRsServiceProvider/nbactions.xml | 74 +++++ JaxRsServiceProvider/pom.xml | 283 ++++++++++++++++++ .../src/main/resources/jndi.properties | 3 + .../src/main/resources/nuxeo.properties | 2 + .../src/main/webapp/WEB-INF/web.xml | 34 +++ 9 files changed, 448 insertions(+) create mode 100644 JaxRsServiceProvider/README.txt create mode 100644 JaxRsServiceProvider/build.properties create mode 100644 JaxRsServiceProvider/build.xml create mode 100644 JaxRsServiceProvider/nb-configuration.xml create mode 100644 JaxRsServiceProvider/nbactions.xml create mode 100644 JaxRsServiceProvider/pom.xml create mode 100644 JaxRsServiceProvider/src/main/resources/jndi.properties create mode 100644 JaxRsServiceProvider/src/main/resources/nuxeo.properties create mode 100644 JaxRsServiceProvider/src/main/webapp/WEB-INF/web.xml diff --git a/JaxRsServiceProvider/README.txt b/JaxRsServiceProvider/README.txt new file mode 100644 index 000000000..b1aa460dd --- /dev/null +++ b/JaxRsServiceProvider/README.txt @@ -0,0 +1,14 @@ +Helloworld service interfacing with Nuxeo repository through Nuxeo +REST apis. + +System Requirements: +==================== +- Maven 2.0.9 or higher +- Nuxeo CollectionSpace Extensions + +Building the project: +==================== +In root directoy... +1. customize build.properties for your environment +2. mvn clean package +3. ant diff --git a/JaxRsServiceProvider/build.properties b/JaxRsServiceProvider/build.properties new file mode 100644 index 000000000..50c373854 --- /dev/null +++ b/JaxRsServiceProvider/build.properties @@ -0,0 +1,4 @@ +jboss.dir=C:/dev/jboss-4.2.3.GA +nuxeo.dir=${jboss.dir}/server/default/deploy/nuxeo.ear/system +nuxeo.local.repo.dir=file:///C:/dev/jboss-4.2.3.GA/server/default/deploy/nuxeo.ear/system +nuxeo.local.repo.client.dir=file:///C:/dev/nuxeo/nuxeo-core/nuxeo-core-client/target diff --git a/JaxRsServiceProvider/build.xml b/JaxRsServiceProvider/build.xml new file mode 100644 index 000000000..cdba8639c --- /dev/null +++ b/JaxRsServiceProvider/build.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/JaxRsServiceProvider/nb-configuration.xml b/JaxRsServiceProvider/nb-configuration.xml new file mode 100644 index 000000000..3e5cd988f --- /dev/null +++ b/JaxRsServiceProvider/nb-configuration.xml @@ -0,0 +1,21 @@ + + + + + + default + 8 + 80 + false + + diff --git a/JaxRsServiceProvider/nbactions.xml b/JaxRsServiceProvider/nbactions.xml new file mode 100644 index 000000000..9d30c239a --- /dev/null +++ b/JaxRsServiceProvider/nbactions.xml @@ -0,0 +1,74 @@ + + + + test + + * + + + test + + + + build + + * + + + install + + + + clean + + * + + + clean + + + + rebuild + + * + + + clean + install + + + true + + + + run + + war + ear + ejb + + + package + + + + true + + + + debug + + war + ear + ejb + + + package + + + + true + true + + + diff --git a/JaxRsServiceProvider/pom.xml b/JaxRsServiceProvider/pom.xml new file mode 100644 index 000000000..c9a855ed4 --- /dev/null +++ b/JaxRsServiceProvider/pom.xml @@ -0,0 +1,283 @@ + + + + + + 4.0.0 + org.collectionspace.services + CollectionSpace-JAXRS-ServiceProvider + war + 0.2 + CollectionSpace JAX-RS Service Provider + + + + java.net + http://download.java.net/maven/1 + legacy + + + maven repo + maven repo + http://repo1.maven.org/maven2/ + + + + jboss + jboss repo + http://repository.jboss.org/maven2 + + + mojo + mojo repo + http://svn.codehaus.org/mojo/trunk/mojo/jboss-maven-plugin + + + + maven-restlet + Public online Restlet repository + http://maven.restlet.org + + + + cspace.local.nuxeo + ${nuxeo.local.repo.dir} + + + cspace.local.nuxeo.client + ${nuxeo.local.repo.client.dir} + + + public + http://maven.nuxeo.org/public + + + + false + + + + public-snapshot + http://maven.nuxeo.org/public-snapshot + + false + + + + + + + + + + + public + http://maven.nuxeo.org/public + Nuxeo virtual release repository + + + + false + + + + public-snapshot + http://maven.nuxeo.org/public-snapshot + Nuxeo virtual snapshot repository + + false + + + + + + + + + 4.2.3.GA + 3.0 + UTF-8 + 1.5.1 + 0.9.7 + 5.2-SNAPSHOT + 1.5-SNAPSHOT + + + + + + org.collectionspace.services + collectionobject-jaxb + 0.2 + + + org.collectionspace.services + org-collectionspace-services-common + 0.2 + + + org.collectionspace.services + collectionobject-service + 0.2 + + + org.jboss.resteasy + resteasy-jaxrs + 1.0.2.GA + + + tjws + webserver + + + + + org.jboss.resteasy + resteasy-jaxb-provider + 1.0.2.GA + + + org.jboss.resteasy + resteasy-multipart-provider + 1.0.2.GA + + + junit + junit + 4.1 + test + + + + + + javax.security + jaas + 1.0.01 + provided + + + + dom4j + dom4j + 1.6.1 + provided + + + + + + + + org.nuxeo.ecm.core + nuxeo-core-api + ${nuxeo.version.1.5} + + + jboss-remoting + jboss + + + + + + + + org.restlet + org.restlet + 1.0.7 + + + com.noelios.restlet + com.noelios.restlet.ext.httpclient + 1.0.7 + + + com.noelios.restlet + com.noelios.restlet + 1.0.7 + + + jaxen + jaxen + 1.1.1 + + + + + CollectionSpace + + + org.codehaus.mojo + jboss-maven-plugin + + ${jboss.dir} + + + + jboss-undeploy + pre-integration-test + + undeploy + + + ${basedir}/target/CollectionSpace.war + + + + jboss-deploy + pre-integration-test + + deploy + + + ${basedir}/target/CollectionSpace.war + + + + + + org.apache.maven.plugins + maven-surefire-plugin + + + + surefire-it + integration-test + + test + + + false + + + + + + org.apache.maven.plugins + maven-war-plugin + 2.0 + + + org.apache.maven.plugins + maven-compiler-plugin + + 1.5 + 1.5 + + + + + diff --git a/JaxRsServiceProvider/src/main/resources/jndi.properties b/JaxRsServiceProvider/src/main/resources/jndi.properties new file mode 100644 index 000000000..a3aa40712 --- /dev/null +++ b/JaxRsServiceProvider/src/main/resources/jndi.properties @@ -0,0 +1,3 @@ +java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory +java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces +java.naming.provider.url=jnp://localhost:1099 \ No newline at end of file diff --git a/JaxRsServiceProvider/src/main/resources/nuxeo.properties b/JaxRsServiceProvider/src/main/resources/nuxeo.properties new file mode 100644 index 000000000..3c9d5afb5 --- /dev/null +++ b/JaxRsServiceProvider/src/main/resources/nuxeo.properties @@ -0,0 +1,2 @@ +org.nuxeo.runtime.server.enabled=false +org.nuxeo.runtime.streaming.isServer=false diff --git a/JaxRsServiceProvider/src/main/webapp/WEB-INF/web.xml b/JaxRsServiceProvider/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 000000000..0c188a4fb --- /dev/null +++ b/JaxRsServiceProvider/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,34 @@ + + + + HelloworldNuxeo + + + javax.ws.rs.Application + org.collectionspace.hello.services.HelloworldNuxeoApplication + + + + resteasy.servlet.mapping.prefix + /cspace-nuxeo + + + + + org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap + + + + + Resteasy + + org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher + + + + + Resteasy + /cspace-nuxeo/* + + + -- 2.47.3