partial interim implementation of reference REST service, JSON view works, XML view...
[cdmlib.git] / cdmlib-remote / pom.xml
index 70e6c22d84dd152ad73759395066018f4694e0e9..b6e5939f5dce85cf28af885aebad7f1ad111fb01 100644 (file)
   <!-- 
     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
    -->
-  <parent>
-    <artifactId>cdmParent</artifactId>
-    <groupId>eu.etaxonomy</groupId>
-       <version>${cdmlib.version}</version>
-    <relativePath>../cdmParent/pom.xml</relativePath>
-  </parent>
+       <parent>
+               <groupId>eu.etaxonomy</groupId>
+               <artifactId>cdmlib-parent</artifactId>
+               <version>2.0</version>
+       </parent>
        
   <modelVersion>4.0.0</modelVersion>
-  <groupId>eu.etaxonomy</groupId>
-       <artifactId>cdmlib-remote</artifactId>
+  <artifactId>cdmlib-remote</artifactId>
   <packaging>war</packaging>
-  <version>0.1</version>
-  <name>EDIT CDM Community Server</name>
+  <name>CDM Community Server</name>
   <description>The EDIT CDM Community Server allows remote access to the common data model via webservices in the wider sense</description>
   <scm>
     <connection>scm:svn:http://dev.e-taxonomy.eu/svn/trunk/cdmlib/cdmlib-remote/</connection>
        <developerConnection>scm:svn:https://dev.e-taxonomy.eu/svn/trunk/cdmlib/cdmlib-remote/</developerConnection>
        <url>http://dev.e-taxonomy.eu/trac/browser/trunk/cdmlib/cdmlib-remote/</url>
   </scm>
-       
-       <properties>
-               <cxf.version>2.0.4-incubator</cxf.version>
-       </properties>
 
        <dependencies>
                <dependency>
                        <groupId>eu.etaxonomy</groupId>
-                       <artifactId>cdmlib-model</artifactId>
-                       <version>${cdmlib.version}</version>
+                       <artifactId>cdmlib-ext</artifactId>
                </dependency>
                <dependency>
-                       <groupId>org.apache.cxf</groupId>
-                       <artifactId>cxf-rt-bindings-http</artifactId>
-                       <version>${cxf.version}</version>
+                       <groupId>eu.etaxonomy</groupId>
+                       <artifactId>cdmlib-persistence</artifactId>
                </dependency>
                <dependency>
-                       <groupId>org.apache.cxf</groupId>
-                       <artifactId>cxf-rt-transports-http</artifactId>
-                       <version>${cxf.version}</version>
+                       <groupId>javax.servlet</groupId>
+                       <artifactId>servlet-api</artifactId>
+                       <scope>provided</scope>
                </dependency>
-               <!-- different JSON libs -->
                <dependency>
-                       <groupId>org.codehaus.jettison</groupId>
-                       <artifactId>jettison</artifactId>
-                       <version>1.0-RC2</version>
+                       <groupId>org.springframework</groupId>
+                       <artifactId>spring-webmvc</artifactId>
                </dependency>
                <dependency>
-                       <groupId>com.sdicons.jsontools</groupId>
-                       <artifactId>jsontools-core</artifactId>
-                       <version>1.5</version>
+                       <groupId>org.springframework</groupId>
+                       <artifactId>spring-web</artifactId>
                </dependency>
+               
+               <!-- JsonView -->
+    <dependency>
+      <groupId>net.sf.json-lib</groupId>
+      <artifactId>json-lib</artifactId>
+      <version>2.2.2</version>
+      <classifier>jdk15</classifier>   
+    </dependency>
+
+
+               <!-- XmlView -->
                <dependency>
-                       <groupId>net.sf.json-lib</groupId>
-                       <artifactId>json-lib</artifactId>
-                       <version>2.2</version>
-                       <classifier>jdk15</classifier>   
+                       <groupId>xstream</groupId>
+                       <artifactId>xstream</artifactId>
                </dependency>
-               <!-- 
-                       <dependency>
-                       <groupId>org.apache.cxf</groupId>
-                       <artifactId>cxf-rt-frontend-jaxws</artifactId>
-                       <version>${cxf.version}</version>
-                       </dependency>
-                       <dependency>
-                       <groupId>org.apache.cxf</groupId>
-                       <artifactId>cxf-rt-transports-http-jetty</artifactId>
-                       <version>${cxf.version}</version>
+               <dependency>
+                       <groupId>xpp3</groupId>
+                       <artifactId>xpp3</artifactId>
+               </dependency>
+
+               <!-- JSP TAG LIBS -->
+               <dependency>
+                       <groupId>taglibs</groupId>
+                       <artifactId>standard</artifactId>
+                       <version>1.1.2</version>
                </dependency>
-               -->
+               <dependency>
+                       <groupId>taglibs</groupId>
+                       <artifactId>x</artifactId>
+                       <version>1.1.2</version>
+                       <type>tld</type>
+               </dependency>           \r
+               \r
+               <!--  SQL Profiling  -->\r
+               <dependency>\r
+    <groupId>p6spy</groupId>\r
+    <artifactId>p6spy</artifactId>\r
+    <version>1.3</version>\r
+</dependency>
        </dependencies>
 
-       <repositories>
-               <repository>
-                       <id>apache-snapshots</id>
-                       <name>Apache SNAPSHOT Repository</name>
-                       <url>http://people.apache.org/repo/m2-snapshot-repository/</url>
-                       <snapshots>
-                               <enabled>true</enabled>
-                       </snapshots>
-               </repository>
-               <repository>
-                       <id>apache-incubating</id>
-                       <name>Apache Incubating Repository</name>
-                       <url>http://people.apache.org/repo/m2-incubating-repository/</url>
-               </repository>
-               <!-- for jaxb-impl -->
-               <repository>
-                       <id>java.net</id>
-                       <url>http://download.java.net/maven/1/</url>
-                       <layout>legacy</layout>
-               </repository>
-       </repositories>
-       
-       <pluginRepositories>
-               <pluginRepository>
-                       <id>apache-plugin-snapshots</id>
-                       <name>Apache Maven Plugin Snapshots</name>
-                       <url>http://people.apache.org/repo/m2-snapshot-repository</url>
-                       <releases>
-                               <enabled>false</enabled>
-                       </releases>
-                       <snapshots>
-                               <enabled>true</enabled>
-                       </snapshots>
-               </pluginRepository>
-               <pluginRepository>
-                       <id>apache-plugin-incubating</id>
-                       <name>Apache Plugin Incubating Repository</name>
-                       <url>http://people.apache.org/repo/m2-incubating-repository/</url>
-               </pluginRepository>
-       </pluginRepositories>
-               
        <build>
-               <finalName>cdmserver</finalName>
+<!--           <finalName>cdmserver</finalName>-->
+<!--           <finalName>cdmserver-palmae</finalName>-->
+<!--           <finalName>cdmserver-diptera</finalName>-->
+               <finalName>cdmserver-cichorieae</finalName>
+<!--           <finalName>cdmserver-elsalvador</finalName>-->
+<!--           <finalName>cdmserver-erms</finalName>-->
                <plugins>
-                       <!-- use mvn cxf-codegen:java2wsdl  OR  mvn process-classes  -->
-                       <!-- 
-
-                                                               ONLY FOR SOAP !!!
-                       
-                       <plugin>
-                               <groupId>org.apache.cxf</groupId>
-                               <artifactId>cxf-codegen-plugin</artifactId>
-                                               <version>${cxf.version}</version>
-                               <dependencies>
-                                       <dependency>
-                                               <groupId>org.apache.cxf</groupId>
-                                               <artifactId>cxf-rt-frontend-jaxws</artifactId>
-                                               <version>${cxf.version}</version>
-                                       </dependency>
-                               </dependencies>
-                               <executions>
-                                       <execution>
-                                               <id>generate-wsdl</id>
-                                               <phase>process-classes</phase>
-                                               <configuration>
-                                                       <className>
-                                               eu.etaxonomy.cdm.remote.service.HelloWorld
-                                                       </className>
-                                               </configuration>
-                                               <goals>
-                                                       <goal>java2wsdl</goal>
-                                               </goals>
-                                       </execution>
-                               </executions>
-                       </plugin>
-                       -->             
                        <plugin><!--use mvn tomcat:deploy -->
                                <groupId>org.codehaus.mojo</groupId>
                                <artifactId>tomcat-maven-plugin</artifactId>
                                <configuration>
-                                       <server>tomcat-local</server>
-                                       <!--url>Place URL if different from http://localhost:8080/manager</url-->
+                                                                                 
+                               <!--Uncomment tomcat to deploy to-->
+                                       <!-- current production -->
+                                       <update>true</update>
+                                       <server>tomcat-edit</server>
+                                       <url>http://search.biocase.org:8080/manager</url>
+                                       
+                                       <!-- remote testing-->
+<!--                                   <update>true</update>
+                                       <server>tomcat-cdm</server>
+                                       <url>http://160.45.63.201:8080/manager</url>
+       -->                             
+                                       
+<!--                           <server>tomcat-local</server>-->
+                               </configuration>
+                       </plugin>
+
+                       <plugin><!-- \r
+                         to run use:\r
+                           mvn jetty:run\r
+                          \r
+                         for debugging: \r
+                           export MAVEN_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=n"\r
+          mvn jetty:run\r
+         \r
+        for faster startup offline mode & skip tests:\r
+          mvn -o -Dmaven.test.skip=true jetty:run-war\r
+        \r
+        an eclipse plugin to start/restart/stop jetty6\r
+          http://dbpowder.sourceforge.net/etc/jettylauncher6/updates/\r
+          \r
+        see also: \r
+          http://docs.codehaus.org/display/JETTY/Debugging+with+the+Maven+Jetty+Plugin+inside+Eclipse\r
+          http://mahertb.blogspot.com/2006/08/debugging-maven-web-application-with.html\r
+                         -->
+                               <groupId>org.mortbay.jetty</groupId>
+                               <artifactId>maven-jetty-plugin</artifactId>
+                               <configuration>
+                                       <!-- Configure the webapp -->
+<!--                                   <contextPath>/cdmserver/</contextPath>-->
+                                       <contextPath>/cdmserver-cichorieae/</contextPath>
+<!--                                   <contextPath>/cdmserver-diptera/</contextPath>-->
+<!--                                   <contextPath>/cdmserver-palmae/</contextPath>-->
+<!--                                   <contextPath>/cdmserver-elsalvador/</contextPath>-->
+<!--                                   <contextPath>/cdmserver-erms/</contextPath>-->
+                                       <!-- configure the container                 -->
+                                       <scanIntervalSeconds>0</scanIntervalSeconds>
+                                       <connectors>
+                                               <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
+                                                       <port>8080</port>
+                                                       <maxIdleTime>60000</maxIdleTime>
+                                               </connector>
+                                       </connectors>
+                                       <requestLog implementation="org.mortbay.jetty.NCSARequestLog">
+                                               <filename>target/request.log</filename>
+                                               <retainDays>30</retainDays>
+                                               <append>true</append>
+                                               <extended>false</extended>
+                                               <logTimeZone>GMT</logTimeZone>
+                                       </requestLog>
                                </configuration>
                        </plugin>
                </plugins>