Project

General

Profile

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

    
135
    <!-- ******* DATABASES DRIVER ******* -->
136

    
137
    <dependency>
138
      <groupId>com.h2database</groupId>
139
      <artifactId>h2</artifactId>
140
      <scope>compile</scope>
141
    </dependency>
142
    
143
    <!-- still creates problems in cdmlib-remote-webapp testing with MySQL connector -->
144
<!--     <dependency> -->
145
<!--       <groupId>eu.etaxonomy</groupId> -->
146
<!--       <artifactId>cdmlib-db</artifactId> -->
147
<!--       <version>${project.version}</version> -->
148
<!--       <scope>compile</scope> -->
149
<!--     </dependency> -->
150

    
151
	<!-- Profiling -->
152
	<dependency>
153
		<groupId>com.yourkit</groupId>
154
		<artifactId>yjp-controller-api-redist</artifactId>
155
        <scope>compile</scope>
156
	</dependency>
157

    
158
    <dependency>
159
      <groupId>org.hibernate</groupId>
160
      <artifactId>hibernate-core</artifactId>
161
    </dependency>
162
    <dependency>
163
      <groupId>eu.etaxonomy</groupId>
164
      <artifactId>cdmlib-model</artifactId>
165
    </dependency>
166
  </dependencies>
167
  
168
</project>
(4-4/4)