org.springframework.oxm RC1 -> RELEASE
[cdmlib.git] / cdmlib-remote / pom.xml
index 70e6c22d84dd152ad73759395066018f4694e0e9..ea18506f8ee307f337c1fd08fd800738660eea38 100644 (file)
 <?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" 
-  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <!-- 
-    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
+               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.4</version>
+       </parent>
        
   <modelVersion>4.0.0</modelVersion>
-  <groupId>eu.etaxonomy</groupId>
-       <artifactId>cdmlib-remote</artifactId>
+  <artifactId>cdmlib-remote</artifactId>
+  <properties>
+    <!--  
+      custom property to hold the patch version number     
+      should'nt this be set in the parent pom? 
+     -->
+    <project.patchversion>0</project.patchversion>
+  </properties> 
+  <name>CDM Remote</name>
+       <description>The EDIT CDM Remote package allows remote access to
+               the common data model via webservices in the wider sense</description>
   <packaging>war</packaging>
-  <version>0.1</version>
-  <name>EDIT 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>
+               <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>org.apache.cxf</groupId>
-                       <artifactId>cxf-rt-bindings-http</artifactId>
-                       <version>${cxf.version}</version>
+                       <groupId>eu.etaxonomy</groupId>
+                       <artifactId>cdmlib-services</artifactId>
                </dependency>
                <dependency>
-                       <groupId>org.apache.cxf</groupId>
-                       <artifactId>cxf-rt-transports-http</artifactId>
-                       <version>${cxf.version}</version>
+                       <groupId>eu.etaxonomy</groupId>
+                       <artifactId>cdmlib-io</artifactId>
                </dependency>
-               <!-- different JSON libs -->
                <dependency>
-                       <groupId>org.codehaus.jettison</groupId>
-                       <artifactId>jettison</artifactId>
-                       <version>1.0-RC2</version>
+                       <groupId>javax.servlet</groupId>
+                       <artifactId>servlet-api</artifactId>
+                       <scope>provided</scope>
                </dependency>
                <dependency>
-                       <groupId>com.sdicons.jsontools</groupId>
-                       <artifactId>jsontools-core</artifactId>
-                       <version>1.5</version>
+                       <groupId>org.springframework</groupId>
+                       <artifactId>org.springframework.web</artifactId>
                </dependency>
                <dependency>
-                       <groupId>net.sf.json-lib</groupId>
-                       <artifactId>json-lib</artifactId>
-                       <version>2.2</version>
-                       <classifier>jdk15</classifier>   
+            <groupId>org.springframework</groupId>
+            <artifactId>org.springframework.context.support</artifactId>
+        </dependency>
+               <dependency>
+                       <groupId>org.springframework</groupId>
+                       <artifactId>org.springframework.web.servlet</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>
-               -->
-       </dependencies>
+               <dependency>
+                <groupId>org.springmodules</groupId>
+                <artifactId>spring-modules-cache</artifactId>
+                <version>0.7</version>
+                <exclusions>
+                 <exclusion>
+                   <groupId>org.springframework</groupId>
+                   <artifactId>spring</artifactId>
+                 </exclusion>
+                 <exclusion>
+                   <groupId>org.springframework</groupId>
+                   <artifactId>spring-mock</artifactId>
+                 </exclusion>
+               </exclusions>
+           </dependency>
+               <dependency>
+                       <groupId>com.ibm.lsid</groupId>
+                       <artifactId>lsid-server</artifactId>
+               </dependency>
+               <dependency>
+                       <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>org.springframework.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>org.hibernate</groupId>
+         <artifactId>hibernate-ehcache</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</groupId>
+         <artifactId>org.springframework.oxm</artifactId>
+         <version>${spring.version}</version>
+       </dependency>
 
-       <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>
-               
+               <!-- 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>
+                       <version>1.1.2</version>
+               </dependency>
+               <dependency>
+                       <groupId>taglibs</groupId>
+                       <artifactId>x</artifactId>
+                       <version>1.1.2</version>
+                       <type>tld</type>
+               </dependency>
+               <!--  Connection Pooling  -->
+        <dependency> 
+            <groupId>org.hibernate</groupId> 
+            <artifactId>hibernate-c3p0</artifactId>         
+               </dependency>
+\r
+               <!--  SQL Profiling  -->\r
+               <dependency>\r
+                   <groupId>p6spy</groupId>\r
+                   <artifactId>p6spy</artifactId>\r
+                   <version>1.3</version>
+               </dependency>
+       </dependencies>
        <build>
-               <finalName>cdmserver</finalName>
+               <!-- Configure the webapp -->\r
+               <finalName>cdmserver</finalName> 
                <plugins>
-                       <!-- use mvn cxf-codegen:java2wsdl  OR  mvn process-classes  -->
-                       <!-- 
-
-                                                               ONLY FOR SOAP !!!
-                       
+               <!-- 
+                       <plugin>
+                           <groupId>net.sf.alchim</groupId>
+                           <artifactId>winstone-maven-plugin</artifactId>
+                           <executions>
+                               <execution>
+                                   <goals>
+                                       <goal>embed</goal>
+                                   </goals>
+                                   <phase>deploy</phase>
+                               </execution>
+                           </executions>
+                       </plugin>
+                -->
                        <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>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-war-plugin</artifactId>
+                               <version>2.1-beta-1</version>
+                               <!-- 
+                               <configuration>
+                                       <archive>
+                                               <manifest>
+                                                       <addClasspath>true</addClasspath>
+                                                       <mainClass>eu.etaxonomy.cdm.server.CdmServer
+                                                       </mainClass>
+                                               </manifest>
+                                       </archive>
+                               </configuration>
                                <executions>
                                        <execution>
-                                               <id>generate-wsdl</id>
-                                               <phase>process-classes</phase>
+                                               <id>move-main-class</id>
+                                               <phase>compile</phase>
                                                <configuration>
-                                                       <className>
-                                               eu.etaxonomy.cdm.remote.service.HelloWorld
-                                                       </className>
+                                                       <tasks>
+                                                                 Ant tasks 
+                                                               <echo>Moving CdmServer.class to ${project.build.directory}/${project.artifactId}</echo>
+                                                               <move todir="${project.build.directory}/${project.artifactId}">
+                                                                       <fileset dir="${project.build.directory}/classes/">
+                                                                               <include name="**/CdmServer.class" />
+                                                                       </fileset>
+                                                               </move>
+                                                       </tasks>
                                                </configuration>
                                                <goals>
-                                                       <goal>java2wsdl</goal>
+                                                       <goal>war</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-->
-                               </configuration>
+                                -->
                        </plugin>
                </plugins>
        </build>
-       
 </project>