Project

General

Profile

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

    
137
    <!-- ******* DATABASES DRIVER ******* -->
138

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

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

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