Project

General

Profile

Download (6.42 KB) Statistics
| Branch: | Tag: | Revision:
1
<?xml version="1.0" encoding="UTF-8"?>
2
<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">
3
  <parent>
4
    <groupId>eu.etaxonomy</groupId>
5
    <artifactId>cdmlib-parent</artifactId>
6
    <version>5.18.0</version>
7
    <relativePath>../pom.xml</relativePath>
8
  </parent>
9

    
10
  <modelVersion>4.0.0</modelVersion>
11
  <artifactId>cdmlib-test</artifactId>
12
  <name>CDM Integration Tests</name>
13
  <description>EDIT CDM library integration test layer. Some base classes and resources for CDM Library integration testing</description>
14

    
15
  <build>
16
    <plugins>
17
    <!--       <plugin> -->
18
<!--         <groupId>org.codehaus.mojo</groupId> -->
19
<!--         <artifactId>hibernate3-maven-plugin</artifactId> -->
20
<!--         <version>3.0</version> -->
21
<!--         <configuration> -->
22
<!--           <components> -->
23
<!--             <component> -->
24
<!--               <name>hbm2ddl</name> -->
25
<!--               <implementation>annotationconfigurationX</implementation> -->
26
<!--             </component> -->
27
<!--           </components> -->
28
<!--           <componentProperties> -->
29
<!--             <namingstrategy>org.hibernate.cfg.DefaultComponentSafeNamingStrategy</namingstrategy> -->
30
<!--             <propertyfile>/src/test/resources/dbscripts/hibernate.properties</propertyfile> -->
31
<!--             <outputfilename>001_cdm.ddl</outputfilename> -->
32
<!--             <configurationfile>/src/main/resources/eu/etaxonomy/cdm/hibernate.cfg.xml</configurationfile> -->
33
<!--           </componentProperties> -->
34
<!--         </configuration> -->
35
<!--       </plugin> -->
36
      <plugin>
37
        <artifactId>maven-antrun-plugin</artifactId>
38
            <executions>
39
              <execution>
40
                  <!-- Generate DDL for test -->
41
                  <!-- Alternatives: http://jpdigital.github.io/hibernate5-ddl-maven-plugin/usage.html, 
42
                                     https://webdev.jhuep.com/~jcs/ejava-javaee/coursedocs/content/html/jpa-entitymgrex-dbschemagen.html -->
43
                  <id>generate-ddl-create</id>
44
                  <phase>process-classes</phase>
45
                  <goals>
46
                      <goal>run</goal>
47
                  </goals>
48
                  <configuration>
49
                      <target>
50
                         <!-- copy template file -->
51
                         <copy file="src/main/resources/dbscripts/001-cdm.h2.sql-template" tofile="src/main/resources/dbscripts/001-cdm.h2.sql">
52
                          </copy>
53
                          <!-- run DdlCreator -->
54
                          <java classname="eu.etaxonomy.cdm.test.unitils.DdlCreator" fork="false" failonerror="true" classpathref="maven.compile.classpath" />
55
                      </target>
56
                  </configuration>
57
              </execution>
58
          </executions>
59
      </plugin>
60
      <plugin>
61
        <groupId>org.apache.maven.plugins</groupId>
62
        <artifactId>maven-jar-plugin</artifactId>
63
        <version>3.2.0</version>
64
        <executions>
65
          <execution>
66
            <goals>
67
              <goal>test-jar</goal>
68
            </goals>
69
          </execution>
70
        </executions>
71
      </plugin>
72
    </plugins>
73
  </build>
74
  <dependencies>
75
    <dependency>
76
      <groupId>junit</groupId>
77
      <artifactId>junit</artifactId>
78
      <scope>compile</scope>
79
    </dependency>
80
    <dependency>
81
        <groupId>org.unitils</groupId>
82
        <artifactId>unitils-core</artifactId>
83
        <scope>compile</scope>
84
    </dependency>
85
    <dependency>
86
      <groupId>org.unitils</groupId>
87
      <artifactId>unitils-database</artifactId>
88
      <scope>compile</scope>
89
    </dependency>
90
    <dependency>
91
      <groupId>org.unitils</groupId>
92
      <artifactId>unitils-dbmaintainer</artifactId>
93
      <scope>compile</scope>
94
    </dependency>
95
    <dependency>
96
      <groupId>org.unitils</groupId>
97
      <artifactId>unitils-dbunit</artifactId>
98
      <scope>compile</scope>
99
    </dependency>
100
     <dependency>
101
      <groupId>org.unitils</groupId>
102
      <artifactId>unitils-easymock</artifactId>
103
      <scope>compile</scope>
104
      <exclusions>
105
        <exclusion>
106
            <!-- we try to use only cglib-nodep (#9206) -->
107
            <groupId>cglib</groupId>
108
            <artifactId>cglib</artifactId>
109
        </exclusion>
110
      </exclusions>
111
    </dependency>
112
    <dependency>
113
      <groupId>org.unitils</groupId>
114
      <artifactId>unitils-mock</artifactId>
115
      <scope>compile</scope>
116
    </dependency>
117
    <dependency>
118
      <groupId>org.unitils</groupId>
119
      <artifactId>unitils-inject</artifactId>
120
      <scope>compile</scope>
121
    </dependency>
122
     <dependency>
123
      <groupId>org.unitils</groupId>
124
      <artifactId>unitils-orm</artifactId>
125
      <exclusions>
126
      	<exclusion>
127
      		<groupId>javax.persistence</groupId>
128
	      	<artifactId>persistence-api</artifactId>
129
      	</exclusion>
130
      </exclusions>
131
    </dependency>
132
     <dependency>
133
      <groupId>org.unitils</groupId>
134
      <artifactId>unitils-spring</artifactId>
135
      <scope>compile</scope>
136
    </dependency>
137
<!--     <dependency> -->
138
<!--       <groupId>org.dbunit</groupId> -->
139
<!--       <artifactId>dbunit</artifactId> -->
140
<!--       <scope>compile</scope> -->
141
<!--     </dependency> -->
142
    <dependency>
143
		<groupId>xmlunit</groupId>
144
		<artifactId>xmlunit</artifactId>
145
        <scope>compile</scope>
146
    </dependency>
147
    <dependency>
148
      <groupId>com.carrotsearch</groupId>
149
      <artifactId>junit-benchmarks</artifactId>
150
      <scope>compile</scope>
151
    </dependency>
152

    
153
    <!-- ******* DATABASES DRIVER ******* -->
154

    
155
    <dependency>
156
      <groupId>com.h2database</groupId>
157
      <artifactId>h2</artifactId>
158
      <scope>compile</scope>
159
    </dependency>
160
    
161
    <!-- still creates problems in cdmlib-remote-webapp testing with MySQL connector -->
162
<!--     <dependency> -->
163
<!--       <groupId>eu.etaxonomy</groupId> -->
164
<!--       <artifactId>cdmlib-db</artifactId> -->
165
<!--       <version>${project.version}</version> -->
166
<!--       <scope>compile</scope> -->
167
<!--     </dependency> -->
168

    
169
	<!-- Profiling -->
170
	<dependency>
171
		<groupId>com.yourkit</groupId>
172
		<artifactId>yjp-controller-api-redist</artifactId>
173
        <scope>compile</scope>
174
	</dependency>
175

    
176
    <dependency>
177
      <groupId>org.hibernate</groupId>
178
      <artifactId>hibernate-core</artifactId>
179
    </dependency>
180
    <dependency>
181
      <groupId>eu.etaxonomy</groupId>
182
      <artifactId>cdmlib-model</artifactId>
183
    </dependency>
184
  </dependencies>
185
  
186
</project>
(4-4/4)