updating poms for branch'release/5.18.0' with non-snapshot versions
[cdmlib.git] / cdmlib-test / pom.xml
index 99ed47a9aa65d4ac8cc2da7dabe70b2fb888e52b..d59e6a4e0fd8a9afe1f0b566f46ac594e68dd81b 100644 (file)
@@ -3,7 +3,7 @@
   <parent>
     <groupId>eu.etaxonomy</groupId>
     <artifactId>cdmlib-parent</artifactId>
-    <version>5.5.2</version>
+    <version>5.18.0</version>
     <relativePath>../pom.xml</relativePath>
   </parent>
 
 
   <build>
     <plugins>
-      <plugin>
-        <groupId>org.codehaus.mojo</groupId>
-        <artifactId>hibernate3-maven-plugin</artifactId>
-        <version>3.0</version>
-        <configuration>
-          <components>
-            <component>
-              <name>hbm2ddl</name>
-              <implementation>annotationconfigurationX</implementation>
-            </component>
-          </components>
-          <componentProperties>
-            <namingstrategy>org.hibernate.cfg.DefaultComponentSafeNamingStrategy</namingstrategy>
-            <propertyfile>/src/test/resources/dbscripts/hibernate.properties</propertyfile>
-            <outputfilename>001_cdm.ddl</outputfilename>
-            <configurationfile>/src/main/resources/eu/etaxonomy/cdm/hibernate.cfg.xml</configurationfile>
-          </componentProperties>
-        </configuration>
-        <dependencies>
-          <dependency>
-            <groupId>eu.etaxonomy</groupId>
-            <artifactId>cdmlib-db</artifactId>
-            <version>${project.version}</version>
-          </dependency>
-          <dependency>
-            <groupId>org.hibernate</groupId>
-            <artifactId>hibernate-annotations</artifactId>
-            <version>3.5.6-FINAL</version>
-          </dependency>
-        </dependencies>
-      </plugin>
+    <!--       <plugin> -->
+<!--         <groupId>org.codehaus.mojo</groupId> -->
+<!--         <artifactId>hibernate3-maven-plugin</artifactId> -->
+<!--         <version>3.0</version> -->
+<!--         <configuration> -->
+<!--           <components> -->
+<!--             <component> -->
+<!--               <name>hbm2ddl</name> -->
+<!--               <implementation>annotationconfigurationX</implementation> -->
+<!--             </component> -->
+<!--           </components> -->
+<!--           <componentProperties> -->
+<!--             <namingstrategy>org.hibernate.cfg.DefaultComponentSafeNamingStrategy</namingstrategy> -->
+<!--             <propertyfile>/src/test/resources/dbscripts/hibernate.properties</propertyfile> -->
+<!--             <outputfilename>001_cdm.ddl</outputfilename> -->
+<!--             <configurationfile>/src/main/resources/eu/etaxonomy/cdm/hibernate.cfg.xml</configurationfile> -->
+<!--           </componentProperties> -->
+<!--         </configuration> -->
+<!--       </plugin> -->
       <plugin>
         <artifactId>maven-antrun-plugin</artifactId>
-        <configuration>
-          <tasks>
-            <taskdef name="hibernatetool" classname="org.hibernate.tool.ant.EnversHibernateToolTask">
-              <classpath refid="maven.plugin.classpath" />
-            </taskdef>
-            <mkdir dir="target/generated-sources/hibernate3" />
-            <hibernatetool destdir=".">
-              <classpath>
-                <path refid="maven.plugin.classpath" />
-                <path refid="maven.compile.classpath" />
-                <path refid="maven.test.classpath" />
-              </classpath>
-              <jpaconfiguration persistenceunit="cdm" />
-              <hbm2ddl drop="false" create="true" export="false" outputfilename="target/generated-sources/hibernate3/001_cdm.ddl" delimiter=";" format="true" />
-              </hibernatetool>
-          </tasks>
-        </configuration>
-         <dependencies>
-          <dependency>
-            <groupId>eu.etaxonomy</groupId>
-            <artifactId>cdmlib-db</artifactId>
-            <version>${project.version}</version>
-          </dependency>
-          <dependency>
-            <groupId>org.hibernate</groupId>
-            <artifactId>hibernate-envers</artifactId>
-            <version>${hibernate.version}</version>
-          </dependency>
-          <dependency>
-            <groupId>org.hibernate</groupId>
-            <artifactId>hibernate-entitymanager</artifactId>
-            <version>${hibernate.version}</version>
-          </dependency>
-          <dependency>
-               <!-- is this still needed ?? -->
-            <groupId>org.hibernate</groupId>
-            <artifactId>hibernate-tools</artifactId>
-            <version>3.2.4.GA</version>
-          </dependency>
-          <dependency>
-            <groupId>org.slf4j</groupId>
-            <artifactId>slf4j-log4j12</artifactId>
-            <version>${slf4j.version}</version>
-          </dependency>
-          <dependency>
-            <groupId>commons-logging</groupId>
-            <artifactId>commons-logging</artifactId>
-              <version>${commons-logging.version}</version>
-          </dependency>
-        </dependencies>
+            <executions>
+              <execution>
+                  <!-- Generate DDL for test -->
+                  <!-- Alternatives: http://jpdigital.github.io/hibernate5-ddl-maven-plugin/usage.html, 
+                                     https://webdev.jhuep.com/~jcs/ejava-javaee/coursedocs/content/html/jpa-entitymgrex-dbschemagen.html -->
+                  <id>generate-ddl-create</id>
+                  <phase>process-classes</phase>
+                  <goals>
+                      <goal>run</goal>
+                  </goals>
+                  <configuration>
+                      <target>
+                         <!-- copy template file -->
+                         <copy file="src/main/resources/dbscripts/001-cdm.h2.sql-template" tofile="src/main/resources/dbscripts/001-cdm.h2.sql">
+                          </copy>
+                          <!-- run DdlCreator -->
+                          <java classname="eu.etaxonomy.cdm.test.unitils.DdlCreator" fork="false" failonerror="true" classpathref="maven.compile.classpath" />
+                      </target>
+                  </configuration>
+              </execution>
+          </executions>
       </plugin>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-jar-plugin</artifactId>
-        <version>2.3.2</version>
+        <version>3.2.0</version>
         <executions>
           <execution>
             <goals>
       <groupId>org.unitils</groupId>
       <artifactId>unitils-easymock</artifactId>
       <scope>compile</scope>
+      <exclusions>
+        <exclusion>
+            <!-- we try to use only cglib-nodep (#9206) -->
+            <groupId>cglib</groupId>
+            <artifactId>cglib</artifactId>
+        </exclusion>
+      </exclusions>
     </dependency>
     <dependency>
       <groupId>org.unitils</groupId>
     </dependency>
 
     <!-- ******* DATABASES DRIVER ******* -->
-    <!-- not really in use anymore -->
-    <dependency>
-      <groupId>org.hsqldb</groupId>
-      <artifactId>hsqldb</artifactId>
-      <scope>compile</scope>
-    </dependency>
 
     <dependency>
       <groupId>com.h2database</groupId>
 <!--       <scope>compile</scope> -->
 <!--     </dependency> -->
 
-  
        <!-- Profiling -->
        <dependency>
                <groupId>com.yourkit</groupId>
         <scope>compile</scope>
        </dependency>
 
-    <!-- required by Xerces 2.11.0 -->
-    <dependency>
-      <groupId>org.apache.xmlgraphics</groupId>
-      <artifactId>batik-ext</artifactId>
-    </dependency>  
-
     <dependency>
       <groupId>org.hibernate</groupId>
       <artifactId>hibernate-core</artifactId>