Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

cdmlib / cdmlib-test / pom.xml @ ed59dfa5

History | View | Annotate | Download (5.72 KB)

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

    
141
    <!-- ******* DATABASES DRIVER ******* -->
142

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

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

    
165
    <dependency>
166
      <groupId>org.hibernate</groupId>
167
      <artifactId>hibernate-core</artifactId>
168
    </dependency>
169
    <dependency>
170
      <groupId>eu.etaxonomy</groupId>
171
      <artifactId>cdmlib-model</artifactId>
172
    </dependency>
173
  </dependencies>
174
  
175
</project>
Add picture from clipboard (Maximum size: 40 MB)