ref #9204 preliminary revert maven-antrun-plugin version in cdmlib-model
[cdmlib.git] / cdmlib-test / pom.xml
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 <!-- <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 <version>3.0.0</version>
39 <executions>
40 <execution>
41 <!-- Generate DDL for test -->
42 <!-- Alternatives: http://jpdigital.github.io/hibernate5-ddl-maven-plugin/usage.html,
43 https://webdev.jhuep.com/~jcs/ejava-javaee/coursedocs/content/html/jpa-entitymgrex-dbschemagen.html -->
44 <id>generate-ddl-create</id>
45 <phase>process-classes</phase>
46 <goals>
47 <goal>run</goal>
48 </goals>
49 <configuration>
50 <target>
51 <!-- copy template file -->
52 <copy
53 file="src/main/resources/dbscripts/001-cdm.h2.sql-template"
54 tofile="src/main/resources/dbscripts/001-cdm.h2.sql">
55 </copy>
56 <!-- run DdlCreator -->
57 <java classname="eu.etaxonomy.cdm.test.unitils.DdlCreator"
58 fork="false" failonerror="true">
59 <!-- reference to the passed-in classpath reference -->
60 <classpath refid="maven.compile.classpath" />
61 </java>
62 </target>
63 </configuration>
64 </execution>
65 </executions>
66 </plugin>
67 <plugin>
68 <groupId>org.apache.maven.plugins</groupId>
69 <artifactId>maven-jar-plugin</artifactId>
70 <version>3.2.0</version>
71 <executions>
72 <execution>
73 <goals>
74 <goal>test-jar</goal>
75 </goals>
76 </execution>
77 </executions>
78 </plugin>
79 </plugins>
80 </build>
81 <dependencies>
82 <dependency>
83 <groupId>junit</groupId>
84 <artifactId>junit</artifactId>
85 <scope>compile</scope>
86 </dependency>
87 <dependency>
88 <groupId>org.unitils</groupId>
89 <artifactId>unitils-core</artifactId>
90 <scope>compile</scope>
91 </dependency>
92 <dependency>
93 <groupId>org.unitils</groupId>
94 <artifactId>unitils-database</artifactId>
95 <scope>compile</scope>
96 </dependency>
97 <dependency>
98 <groupId>org.unitils</groupId>
99 <artifactId>unitils-dbmaintainer</artifactId>
100 <scope>compile</scope>
101 </dependency>
102 <dependency>
103 <groupId>org.unitils</groupId>
104 <artifactId>unitils-dbunit</artifactId>
105 <scope>compile</scope>
106 </dependency>
107 <dependency>
108 <groupId>org.unitils</groupId>
109 <artifactId>unitils-easymock</artifactId>
110 <scope>compile</scope>
111 <exclusions>
112 <exclusion>
113 <!-- we try to use only cglib-nodep (#9206) -->
114 <groupId>cglib</groupId>
115 <artifactId>cglib</artifactId>
116 </exclusion>
117 </exclusions>
118 </dependency>
119 <dependency>
120 <groupId>org.unitils</groupId>
121 <artifactId>unitils-mock</artifactId>
122 <scope>compile</scope>
123 </dependency>
124 <dependency>
125 <groupId>org.unitils</groupId>
126 <artifactId>unitils-inject</artifactId>
127 <scope>compile</scope>
128 </dependency>
129 <dependency>
130 <groupId>org.unitils</groupId>
131 <artifactId>unitils-orm</artifactId>
132 <exclusions>
133 <exclusion>
134 <groupId>javax.persistence</groupId>
135 <artifactId>persistence-api</artifactId>
136 </exclusion>
137 </exclusions>
138 </dependency>
139 <dependency>
140 <groupId>org.unitils</groupId>
141 <artifactId>unitils-spring</artifactId>
142 <scope>compile</scope>
143 </dependency>
144 <!-- <dependency> -->
145 <!-- <groupId>org.dbunit</groupId> -->
146 <!-- <artifactId>dbunit</artifactId> -->
147 <!-- <scope>compile</scope> -->
148 <!-- </dependency> -->
149 <dependency>
150 <groupId>xmlunit</groupId>
151 <artifactId>xmlunit</artifactId>
152 <scope>compile</scope>
153 </dependency>
154 <dependency>
155 <groupId>com.carrotsearch</groupId>
156 <artifactId>junit-benchmarks</artifactId>
157 <scope>compile</scope>
158 </dependency>
159
160 <!-- ******* DATABASES DRIVER ******* -->
161
162 <dependency>
163 <groupId>com.h2database</groupId>
164 <artifactId>h2</artifactId>
165 <scope>compile</scope>
166 </dependency>
167
168 <!-- still creates problems in cdmlib-remote-webapp testing with MySQL connector -->
169 <!-- <dependency> -->
170 <!-- <groupId>eu.etaxonomy</groupId> -->
171 <!-- <artifactId>cdmlib-db</artifactId> -->
172 <!-- <version>${project.version}</version> -->
173 <!-- <scope>compile</scope> -->
174 <!-- </dependency> -->
175
176 <!-- Profiling -->
177 <dependency>
178 <groupId>com.yourkit</groupId>
179 <artifactId>yjp-controller-api-redist</artifactId>
180 <scope>compile</scope>
181 </dependency>
182
183 <dependency>
184 <groupId>org.hibernate</groupId>
185 <artifactId>hibernate-core</artifactId>
186 </dependency>
187 <dependency>
188 <groupId>eu.etaxonomy</groupId>
189 <artifactId>cdmlib-model</artifactId>
190 </dependency>
191 </dependencies>
192
193 </project>