dataportal release v2.0
[cdmlib.git] / cdmlib-remote / pom.xml
index 10cad5db42a9d41bb2405303d1186a3f6b4a851b..2b06b53631f76daecee6fa34db88f72d08e9021e 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.1</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-ext</artifactId>
+               </dependency>
+               <dependency>
+                       <groupId>eu.etaxonomy</groupId>
+                       <artifactId>cdmlib-persistence</artifactId>
+               </dependency>
                <dependency>
                        <groupId>eu.etaxonomy</groupId>
                        <artifactId>cdmlib-model</artifactId>
-                       <version>${cdmlib.version}</version>
+               </dependency>
+               <dependency>
+                       <groupId>eu.etaxonomy</groupId>
+                       <artifactId>cdmlib-services</artifactId>
                </dependency>
                <dependency>
                        <groupId>javax.servlet</groupId>
                        <artifactId>servlet-api</artifactId>
-                       <version>2.4</version>
                        <scope>provided</scope>
                </dependency>
-
                <dependency>
-                       <groupId>com.sdicons.jsontools</groupId>
-                       <artifactId>jsontools-core</artifactId>
-                       <version>1.5</version>
+                       <groupId>org.springframework</groupId>
+                       <artifactId>spring-webmvc</artifactId>
                </dependency>
                <dependency>
-                       <!-- good -->
-                       <groupId>net.sf.json-lib</groupId>
-                       <artifactId>json-lib</artifactId>
-                       <version>2.2</version>
-                       <classifier>jdk15</classifier>   
+                       <groupId>org.springframework</groupId>
+                       <artifactId>spring-web</artifactId>
                </dependency>
-
-               <!--
                <dependency>
-                       <groupId>com.caucho</groupId>
-                       <artifactId>hessian</artifactId>
-                       <version>3.1.3</version>
+                       <groupId>com.ibm.lsid</groupId>
+                       <artifactId>lsid-server</artifactId>
                </dependency>
-               -->
                <dependency>
-                       <groupId>org.springframework</groupId>
-                       <artifactId>spring-webmvc</artifactId>
-                       <version>${spring.version}</version>
+                       <groupId>com.ibm.lsid</groupId>
+                       <artifactId>lsid-client</artifactId>
+               </dependency>
+               <dependency>
+                       <groupId>org.easymock</groupId>
+                       <artifactId>easymock</artifactId>
                </dependency>
                <dependency>
+      <groupId>xmlunit</groupId>
+      <artifactId>xmlunit</artifactId>
+      </dependency>
+               <dependency>
                        <groupId>org.springframework</groupId>
-                       <artifactId>spring-web</artifactId>
-                       <version>${spring.version}</version>
+                       <artifactId>spring-test</artifactId>
                </dependency>
+               <dependency>
+                       <groupId>net.sf.dozer</groupId>
+                       <artifactId>dozer</artifactId>
+               </dependency>
+               <dependency>
+                       <groupId>joda-time</groupId>
+                       <artifactId>joda-time</artifactId>    
+               </dependency>
+               <dependency>
+      <groupId>org.hibernate</groupId>
+      <artifactId>hibernate-cglib-repack</artifactId>
+    </dependency>
+               <dependency>
+                       <groupId>org.hibernate</groupId>
+                       <artifactId>hibernate-core</artifactId>
+               </dependency>
+    <dependency>
+      <groupId>commons-io</groupId>
+      <artifactId>commons-io</artifactId>
+    </dependency>
+               <!-- JsonView -->
+    <dependency>
+      <groupId>net.sf.json-lib</groupId>
+      <artifactId>json-lib</artifactId>
+      <version>2.2.3</version>
+      <classifier>jdk15</classifier>   
+    </dependency>
+       <dependency>
+         <groupId>org.springframework.ws</groupId>
+         <artifactId>spring-oxm-tiger</artifactId>
+         <version>1.5.0</version>
+       </dependency>
 
-               <!-- TAG libs -->
+               <!-- XmlView -->
+               <dependency>
+                       <groupId>com.thoughtworks.xstream</groupId>
+                       <artifactId>xstream</artifactId>
+               </dependency>
+               <dependency>
+                       <groupId>xpp3</groupId>
+                       <artifactId>xpp3</artifactId>
+               </dependency>
+               <dependency>
+                 <groupId>stax</groupId>
+                 <artifactId>stax</artifactId>
+               </dependency>
+
+               <!-- JSP TAG LIBS -->
                <dependency>
                        <groupId>taglibs</groupId>
                        <artifactId>standard</artifactId>
                        <artifactId>x</artifactId>
                        <version>1.1.2</version>
                        <type>tld</type>
-               </dependency>
-
-               <!-- 
-                       <dependency>
-                       <groupId>org.apache.cxf</groupId>
-                       <artifactId>cxf-rt-bindings-http</artifactId>
-                       <version>${cxf.version}</version>
-                       </dependency>
-                       <dependency>
-                       <groupId>org.apache.cxf</groupId>
-                       <artifactId>cxf-rt-transports-http</artifactId>
-                       <version>${cxf.version}</version>
-                       </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>
-               <dependency>
-                       <groupId>org.codehaus.xfire</groupId>
-                       <artifactId>xfire-xmlbeans</artifactId>
-                       <version>1.2.3</version>
-               </dependency>   
-               <dependency>
-                       <groupId>org.codehaus.xfire</groupId>
-                       <artifactId>xfire-spring</artifactId>
-                       <version>1.2.3</version>
-                       <exclusions>
-                               <exclusion>
-                                       <groupId>org.springframework</groupId>
-                                       <artifactId>spring</artifactId>
-                               </exclusion>
-                       </exclusions>
-               </dependency>
-               -->
+               </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>
+       <!-- Configure the webapp -->\r
+       <finalName>cdmserver</finalName> 
+<!--           \r
+               <finalName>cdmserver-cichorieae</finalName> 
+               <finalName>cdmserver-palmae</finalName>\r
+               <finalName>cdmserver-diptera</finalName>
                <finalName>cdmserver</finalName>
+               <finalName>cdmserver-elsalvador</finalName>
+               <finalName>cdmserver-erms</finalName>\r
+-->
                <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>
-                                       <!--                                      
-                                               <server>tomcat-edit</server>
-                                               <url>http://search.biocase.org: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>
+
+                       <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>
-                               <dependencies>
-                                       <dependency>
-                                               <groupId>org.apache.geronimo.specs</groupId>
-                                               <artifactId>geronimo-j2ee_1.4_spec</artifactId>
-                                               <version>1.1</version>
-                                       </dependency>
-                               </dependencies>
                                <configuration>
+                                       <!-- Configure the webapp -->
+                                       <contextPath>/cdmserver-cichorieae/</contextPath>\r
+<!--                                   
+                                       <contextPath>/cdmserver-palmae/</contextPath>
+                                       <contextPath>/cdmserver-diptera/</contextPath>
+                                       <contextPath>/cdmserver/</contextPath>
+                                       <contextPath>/cdmserver-elsalvador/</contextPath>
+                                       <contextPath>/cdmserver-erms/</contextPath>\r
+-->
+                                       <!-- configure the container -->
+                                       <scanIntervalSeconds>0</scanIntervalSeconds>
                                        <connectors>
                                                <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
                                                        <port>8080</port>
-                                                       <maxIdleTime>3600000</maxIdleTime>
+                                                       <maxIdleTime>60000</maxIdleTime>
                                                </connector>
                                        </connectors>
-                                       <scanIntervalSeconds>5</scanIntervalSeconds>
+                                       <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>                       
+                       </plugin>
                </plugins>
        </build>