Project

General

Profile

Download (6 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.29.0-SNAPSHOT</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
	<pluginManagement>
17
	    <plugins>
18
	      <plugin>
19
	        <artifactId>maven-antrun-plugin</artifactId>
20
	            <executions>
21
	              <execution>
22
	                  <!-- Generate DDL for test -->
23
	                  <!-- Alternatives: http://jpdigital.github.io/hibernate5-ddl-maven-plugin/usage.html, 
24
	                                     https://webdev.jhuep.com/~jcs/ejava-javaee/coursedocs/content/html/jpa-entitymgrex-dbschemagen.html -->
25
	                  <!-- manual execution of the below ant task:  -->
26
	                  <!-- mvn antrun:run@generate-ddl-create       -->
27
	                  <id>generate-ddl-create</id>
28
	                  <phase>process-classes</phase>
29
	                  <goals>
30
	                      <goal>run</goal>
31
	                  </goals>
32
	                  <configuration>
33
	                      <target>
34
	                          <delete file="${project.build.outputDirectory}/dbscripts/001-cdm.h2.sql" />
35
	                          <!-- copy template file -->
36
	                          <copy file="${basedir}/src/main/resources/dbscripts/001-cdm.h2.template.sql" tofile="${project.build.outputDirectory}/dbscripts/001-cdm.h2.sql" />
37
	                                <!-- for directory shortcuts: https://stackoverflow.com/questions/13354531/maven-project-build-directory   but a short cut to /src/main/resources did not work for me -->
38
	                          <!-- run DdlCreator -->
39
	                          <java classname="eu.etaxonomy.cdm.test.unitils.DdlCreator" fork="false" failonerror="true" classpathref="maven.compile.classpath" /> 
40
	                      </target>
41
	                  </configuration>
42
	              </execution>
43
	          </executions>
44
	      </plugin>
45
	      <plugin>
46
	        <groupId>org.apache.maven.plugins</groupId>
47
	        <artifactId>maven-jar-plugin</artifactId>
48
	        <version>3.2.0</version>
49
	        <executions>
50
	          <execution>
51
	            <goals>
52
	              <goal>test-jar</goal>
53
	            </goals>
54
	          </execution>
55
	        </executions>
56
	      </plugin>
57
	    </plugins>
58
	</pluginManagement>
59
  </build>
60
  <dependencies>
61
    <dependency>
62
      <groupId>junit</groupId>
63
      <artifactId>junit</artifactId>
64
      <scope>compile</scope>
65
    </dependency>
66
    <dependency>
67
        <groupId>org.unitils</groupId>
68
        <artifactId>unitils-core</artifactId>
69
        <scope>compile</scope>
70
    </dependency>
71
    <dependency>
72
      <groupId>org.unitils</groupId>
73
      <artifactId>unitils-database</artifactId>
74
      <scope>compile</scope>
75
    </dependency>
76
    <dependency>
77
      <groupId>org.unitils</groupId>
78
      <artifactId>unitils-dbmaintainer</artifactId>
79
      <scope>compile</scope>
80
    </dependency>
81
    <dependency>
82
      <groupId>org.unitils</groupId>
83
      <artifactId>unitils-dbunit</artifactId>
84
      <scope>compile</scope>
85
    </dependency>
86
     <dependency>
87
      <groupId>org.unitils</groupId>
88
      <artifactId>unitils-easymock</artifactId>
89
      <scope>compile</scope>
90
      <exclusions>
91
        <exclusion>
92
            <!-- we try to use only cglib-nodep (#9206) -->
93
            <groupId>cglib</groupId>
94
            <artifactId>cglib</artifactId>
95
        </exclusion>
96
      </exclusions>
97
    </dependency>
98
    <dependency>
99
      <groupId>org.unitils</groupId>
100
      <artifactId>unitils-mock</artifactId>
101
      <scope>compile</scope>
102
    </dependency>
103
    <dependency>
104
      <groupId>org.unitils</groupId>
105
      <artifactId>unitils-inject</artifactId>
106
      <scope>compile</scope>
107
    </dependency>
108
     <dependency>
109
      <groupId>org.unitils</groupId>
110
      <artifactId>unitils-orm</artifactId>
111
      <exclusions>
112
      	<exclusion>
113
      		<groupId>javax.persistence</groupId>
114
	      	<artifactId>persistence-api</artifactId>
115
      	</exclusion>
116
      </exclusions>
117
    </dependency>
118
     <dependency>
119
      <groupId>org.unitils</groupId>
120
      <artifactId>unitils-spring</artifactId>
121
      <scope>compile</scope>
122
    </dependency>
123
<!--     <dependency> -->
124
<!--       <groupId>org.dbunit</groupId> -->
125
<!--       <artifactId>dbunit</artifactId> -->
126
<!--       <scope>compile</scope> -->
127
<!--     </dependency> -->
128
    <dependency>
129
		<groupId>xmlunit</groupId>
130
		<artifactId>xmlunit</artifactId>
131
        <scope>compile</scope>
132
    </dependency>
133
    <dependency>
134
      <groupId>com.carrotsearch</groupId>
135
      <artifactId>junit-benchmarks</artifactId>
136
      <scope>compile</scope>
137
    </dependency>
138

    
139
    <!-- ******* DATABASES DRIVER ******* -->
140

    
141
    <!-- for other databases see also #6025 -->
142
    <dependency>
143
      <groupId>com.h2database</groupId>
144
      <artifactId>h2</artifactId>
145
      <scope>compile</scope>
146
    </dependency>
147
    
148
    <!-- still creates problems in cdmlib-remote-webapp testing with MySQL connector -->
149
<!--     <dependency> -->
150
<!--       <groupId>eu.etaxonomy</groupId> -->
151
<!--       <artifactId>cdmlib-db</artifactId> -->
152
<!--       <version>${project.version}</version> -->
153
<!--       <scope>compile</scope> -->
154
<!--     </dependency> -->
155

    
156
	<!-- Profiling -->
157
	<dependency>
158
		<groupId>com.yourkit</groupId>
159
		<artifactId>yjp-controller-api-redist</artifactId>
160
        <scope>compile</scope>
161
	</dependency>
162

    
163
    <dependency>
164
      <groupId>org.hibernate</groupId>
165
      <artifactId>hibernate-core</artifactId>
166
    </dependency>
167
    <dependency>
168
      <groupId>eu.etaxonomy</groupId>
169
      <artifactId>cdmlib-model</artifactId>
170
    </dependency>
171
  </dependencies>
172
  
173
</project>
(4-4/4)