Now working with both hibernate and eclipselink
[utils] / pom.xml
1 <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">
2     <modelVersion>4.0.0</modelVersion>
3     <groupId>org.wamblee</groupId>
4     <artifactId>wamblee-utils</artifactId>
5     <packaging>pom</packaging>
6     <version>0.2.3-SNAPSHOT</version>
7     <name>/</name>
8     <description>wamblee.org utilities library</description>
9     <url>http://wamblee.org</url>
10     <licenses>
11         <license>
12             <name>The Apache Software License, Version 2.0</name>
13             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
14             <distribution>repo</distribution>
15         </license>
16     </licenses>
17     <scm>
18         <url>https://wamblee.org/viewvc/utils</url>
19         <connection>scm:svn:https://wamblee.org/svn/public/utils/trunk</connection>
20         <developerConnection>scm:svn:https://wamblee.org/svn/public/utils/trunk</developerConnection>
21     </scm>
22     <developers>
23         <developer>
24             <email>erik@wamblee.org</email>
25             <name>Erik Brakkee</name>
26             <url>http://brakkee.org</url>
27         </developer>
28     </developers>
29
30     <modules>
31         <module>support</module>
32         <module>system</module>
33         <module>hibernate-jpa</module>
34         <module>security</module>
35         <module>test</module>
36     </modules>
37     <dependencies>
38         <dependency>
39             <groupId>junit</groupId>
40             <artifactId>junit</artifactId>
41             <scope>test</scope>
42         </dependency>
43         <dependency>
44             <groupId>org.dbunit</groupId>
45             <artifactId>dbunit</artifactId>
46             <scope>test</scope>
47         </dependency>
48         <dependency>
49             <groupId>org.apache.derby</groupId>
50             <artifactId>derby</artifactId>
51             <scope>test</scope>
52         </dependency>
53         <dependency>
54             <groupId>org.apache.derby</groupId>
55             <artifactId>derbyclient</artifactId>
56             <scope>test</scope>
57         </dependency>
58         <dependency>
59             <groupId>org.apache.derby</groupId>
60             <artifactId>derbynet</artifactId>
61             <scope>test</scope>
62         </dependency>
63         <dependency>
64             <groupId>org.slf4j</groupId>
65             <artifactId>slf4j-api</artifactId>
66             <scope>test</scope>
67         </dependency>
68         <dependency>
69             <groupId>org.slf4j</groupId>
70             <artifactId>slf4j-jdk14</artifactId>
71             <scope>test</scope>
72         </dependency>
73
74         <dependency>
75             <groupId>mysql</groupId>
76             <artifactId>mysql-connector-java</artifactId>
77             <scope>test</scope>
78         </dependency>
79         <dependency>
80             <groupId>org.mockito</groupId>
81             <artifactId>mockito-all</artifactId>
82             <version>1.8.0</version>
83             <scope>test</scope>
84         </dependency>
85
86         <!-- dependency>
87           <groupId>org.testng</groupId>
88           <artifactId>testng</artifactId>
89           <version>5.7</version>
90           <scope>test</scope>
91           <classifier>jdk15</classifier>
92         </dependency -->
93     </dependencies>
94
95     <dependencyManagement>
96         <dependencies>
97
98             <dependency>
99                 <groupId>oro</groupId>
100                 <artifactId>oro</artifactId>
101                 <version>2.0.6</version>
102             </dependency>
103
104
105             <dependency>
106                 <groupId>javax.transaction</groupId>
107                 <artifactId>transaction-api</artifactId>
108                 <version>1.1</version>
109             </dependency>
110
111             <dependency>
112                 <groupId>junit</groupId>
113                 <artifactId>junit</artifactId>
114                 <version>4.4</version>
115             </dependency>
116             <dependency>
117                 <groupId>org.dbunit</groupId>
118                 <artifactId>dbunit</artifactId>
119                 <version>2.4.7</version>
120             </dependency>
121             <dependency>
122                 <groupId>org.slf4j</groupId>
123                 <artifactId>slf4j-api</artifactId>
124                 <version>1.5.11</version>
125             </dependency>
126             <dependency>
127                 <groupId>org.slf4j</groupId>
128                 <artifactId>slf4j-jdk14</artifactId>
129                 <version>1.5.11</version>
130             </dependency>
131
132             <dependency>
133                 <groupId>javax.persistence</groupId>
134                 <artifactId>persistence-api</artifactId>
135                 <version>1.0</version>
136                 <scope>provided</scope>
137             </dependency>
138             <dependency>
139                 <groupId>javax.activation</groupId>
140                 <artifactId>activation</artifactId>
141                 <version>1.1</version>
142             </dependency>
143             <dependency>
144                 <groupId>javax.mail</groupId>
145                 <artifactId>mail</artifactId>
146                 <version>1.4.1</version>
147             </dependency>
148             <dependency>
149                 <groupId>javax.servlet</groupId>
150                 <artifactId>servlet-api</artifactId>
151                 <version>2.3</version>
152                 <type>jar</type>
153                 <scope>provided</scope>
154             </dependency>
155             <dependency>
156                 <groupId>mysql</groupId>
157                 <artifactId>mysql-connector-java</artifactId>
158                 <version>5.1.12</version>
159             </dependency>
160             <dependency>
161                 <groupId>org.apache.derby</groupId>
162                 <artifactId>derby</artifactId>
163                 <version>10.5.3.0_1</version>
164             </dependency>
165             <dependency>
166                 <groupId>org.apache.derby</groupId>
167                 <artifactId>derbyclient</artifactId>
168                 <version>10.5.3.0_1</version>
169             </dependency>
170             <dependency>
171                 <groupId>org.apache.derby</groupId>
172                 <artifactId>derbynet</artifactId>
173                 <version>10.5.3.0_1</version>
174             </dependency>
175             <dependency>
176                 <groupId>quartz</groupId>
177                 <artifactId>quartz</artifactId>
178                 <version>1.5.1</version>
179             </dependency>
180             <dependency>
181                 <groupId>jtidy</groupId>
182                 <artifactId>jtidy</artifactId>
183                 <version>4aug2000r7-dev</version>
184             </dependency>
185
186
187             <dependency>
188                 <groupId>commons-logging</groupId>
189                 <artifactId>commons-logging</artifactId>
190                 <version>1.0.2</version>
191             </dependency>
192             <dependency>
193                 <groupId>commons-httpclient</groupId>
194                 <artifactId>commons-httpclient</artifactId>
195                 <version>3.0</version>
196             </dependency>
197             <dependency>
198                 <groupId>commons-beanutils</groupId>
199                 <artifactId>commons-beanutils</artifactId>
200                 <version>1.7.0</version>
201             </dependency>
202             <dependency>
203                 <groupId>org.springframework</groupId>
204                 <artifactId>spring-beans</artifactId>
205                 <version>${spring.version}</version>
206             </dependency>
207             <dependency>
208                 <groupId>org.springframework</groupId>
209                 <artifactId>spring-web</artifactId>
210                 <version>${spring.version}</version>
211             </dependency>
212             <dependency>
213                 <groupId>org.springframework</groupId>
214                 <artifactId>spring-jms</artifactId>
215                 <version>${spring.version}</version>
216             </dependency>
217             <dependency>
218                 <groupId>org.springframework</groupId>
219                 <artifactId>spring-context</artifactId>
220                 <version>${spring.version}</version>
221             </dependency>
222             <dependency>
223                 <groupId>org.springframework</groupId>
224                 <artifactId>spring-hibernate3</artifactId>
225                 <version>${spring.version}</version>
226             </dependency>
227             <dependency>
228                 <groupId>org.springframework</groupId>
229                 <artifactId>spring-jpa</artifactId>
230                 <version>${spring.version}</version>
231             </dependency>
232             <dependency>
233                 <groupId>org.springframework</groupId>
234                 <artifactId>spring-aop</artifactId>
235                 <version>${spring.version}</version>
236             </dependency>
237
238             <!-- should be possible to remove the dependence on log4j -->
239             <dependency>
240                 <groupId>log4j</groupId>
241                 <artifactId>log4j</artifactId>
242                 <version>1.2.8</version>
243             </dependency>
244             <dependency>
245                 <groupId>dom4j</groupId>
246                 <artifactId>dom4j</artifactId>
247                 <version>1.6</version>
248                 <exclusions>
249                     <exclusion>
250                         <groupId>xml-apis</groupId>
251                         <artifactId>xml-apis</artifactId>
252                     </exclusion>
253                 </exclusions>
254             </dependency>
255             <dependency>
256                 <groupId>net.sf.ehcache</groupId>
257                 <artifactId>ehcache</artifactId>
258                 <version>1.2.3</version>
259             </dependency>
260
261             <dependency>
262                 <groupId>commons-email</groupId>
263                 <artifactId>commons-email</artifactId>
264                 <version>1.0</version>
265             </dependency>
266             <dependency>
267                 <groupId>jaxen</groupId>
268                 <artifactId>jaxen</artifactId>
269                 <version>1.1-beta-9</version>
270                 <exclusions>
271                     <exclusion>
272                         <groupId>xom</groupId>
273                         <artifactId>xom</artifactId>
274                     </exclusion>
275                     <exclusion>
276                         <groupId>xerces</groupId>
277                         <artifactId>xmlParserAPIs</artifactId>
278                     </exclusion>
279                 </exclusions>
280             </dependency>
281             <dependency>
282                 <groupId>jstl</groupId>
283                 <artifactId>jstl</artifactId>
284                 <version>1.1.2</version>
285             </dependency>
286             <dependency>
287                 <groupId>taglibs</groupId>
288                 <artifactId>standard</artifactId>
289                 <version>1.1.2</version>
290             </dependency>
291             <dependency>
292                 <groupId>jfree</groupId>
293                 <artifactId>jfreechart</artifactId>
294                 <version>1.0.1</version>
295             </dependency>
296             <dependency>
297                 <groupId>jfree</groupId>
298                 <artifactId>jcommon</artifactId>
299                 <version>1.0.2</version>
300             </dependency>
301
302             <dependency>
303                 <groupId>javax</groupId>
304                 <artifactId>javaee-api</artifactId>
305                 <version>6.0</version>
306                 <scope>provided</scope>
307             </dependency>
308
309             <dependency>
310                 <groupId>commons-codec</groupId>
311                 <artifactId>commons-codec</artifactId>
312                 <version>1.3</version>
313             </dependency>
314
315             <dependency>
316                 <groupId>commons-dbcp</groupId>
317                 <artifactId>commons-dbcp</artifactId>
318                 <version>1.4</version>
319             </dependency>
320             <dependency>
321                 <groupId>toplink.essentials</groupId>
322                 <artifactId>toplink-essentials</artifactId>
323                 <version>2.0-36</version>
324             </dependency>
325             <dependency>
326                 <groupId>org.eclipse.persistence</groupId>
327                 <artifactId>eclipselink</artifactId>
328                 <version>2.0.2</version>
329                 <scope>compile</scope>
330             </dependency>
331
332         </dependencies>
333     </dependencyManagement>
334
335     <build>
336         <plugins>
337             <plugin>
338                 <groupId>org.apache.maven.plugins</groupId>
339                 <artifactId>maven-release-plugin</artifactId>
340                 <version>2.0</version>
341                 <configuration>
342                     <autoVersionSubmodules>true</autoVersionSubmodules>
343                     <goals>javadoc:jar deploy</goals>
344                 </configuration>
345             </plugin>
346             <plugin>
347                 <groupId>org.apache.maven.plugins</groupId>
348                 <artifactId>maven-checkstyle-plugin</artifactId>
349                 <version>2.5</version>
350                 <dependencies>
351                     <dependency>
352                         <groupId>org.wamblee</groupId>
353                         <artifactId>wamblee-code-style</artifactId>
354                         <version>1.0</version>
355                     </dependency>
356                 </dependencies>
357             </plugin>
358
359             <plugin>
360                 <artifactId>maven-clean-plugin</artifactId>
361                 <version>2.4</version>
362                 <configuration>
363                     <filesets>
364                         <fileset>
365                             <directory>.</directory>
366                             <includes>
367                                 <include>derby.log</include>
368                                 <include>createDDL.jdbc</include>
369                                 <include>dropDDL.jdbc</include>
370                             </includes>
371                             <excludes>
372                                 <exclude>**/important.log</exclude>
373                                 <exclude>**/another-important.log</exclude>
374                             </excludes>
375                             <followSymlinks>false</followSymlinks>
376                         </fileset>
377                     </filesets>
378                 </configuration>
379             </plugin>
380
381             <plugin>
382                 <groupId>org.codehaus.mojo</groupId>
383                 <artifactId>jalopy-maven-plugin</artifactId>
384                 <configuration>
385                     <fileFormat>UNIX</fileFormat>
386                     <convention>org.wamblee.jalopy.xml</convention>
387                 </configuration>
388                 <dependencies>
389                     <dependency>
390                         <groupId>org.wamblee</groupId>
391                         <artifactId>wamblee-code-style</artifactId>
392                         <version>1.1-SNAPSHOT</version>
393                     </dependency>
394                 </dependencies>
395             </plugin>
396             <plugin>
397                 <groupId>org.apache.maven.plugins</groupId>
398                 <artifactId>maven-compiler-plugin</artifactId>
399                 <configuration>
400                     <source>1.6</source>
401                     <target>1.6</target>
402                 </configuration>
403             </plugin>
404
405             <plugin>
406                 <groupId>org.apache.maven.plugins</groupId>
407                 <artifactId>maven-surefire-plugin</artifactId>
408                 <configuration>
409                     <includes>
410                         <include>**/*Test.java</include>
411                     </includes>
412                     <redirectTestOutputToFile>true</redirectTestOutputToFile>
413                 </configuration>
414             </plugin>
415
416             <!-- Make sure other projects can use (or the test support
417            and test classes from the projects it uses. To use
418            a dependence on a test library of a project, an additinoal
419            dependence must be added with <type>test-jar</type>
420         -->
421
422             <plugin>
423                 <groupId>org.apache.maven.plugins</groupId>
424                 <artifactId>maven-jar-plugin</artifactId>
425                 <executions>
426                     <execution>
427                         <goals>
428                             <goal>test-jar</goal>
429                         </goals>
430                     </execution>
431                 </executions>
432             </plugin>
433
434             <plugin>
435                 <groupId>org.codehaus.mojo</groupId>
436                 <artifactId>cobertura-maven-plugin</artifactId>
437                 <version>2.3</version>
438                 <executions>
439                     <execution>
440                         <goals>
441                             <goal>clean</goal>
442                         </goals>
443                     </execution>
444                 </executions>
445                 <configuration>
446                     <instrumentation>
447                         <excludes> </excludes>
448                     </instrumentation>
449                 </configuration>
450             </plugin>
451
452
453         </plugins>
454
455     </build>
456
457     <reporting>
458         <plugins>
459             <plugin>
460                 <groupId>org.apache.maven.plugins</groupId>
461                 <artifactId>maven-project-info-reports-plugin</artifactId>
462                 <reportSets>
463                     <reportSet>
464                         <reports>
465                             <report>checkstyle</report>
466                             <report>javadoc</report>
467                             <report>dependencies</report>
468                             <report>project-team</report>
469                             <report>mailing-list</report>
470                             <report>issue-tracking</report>
471                             <report>license</report>
472                             <report>scm</report>
473                         </reports>
474                     </reportSet>
475                 </reportSets>
476             </plugin>
477             <plugin>
478                 <groupId>org.codehaus.mojo</groupId>
479                 <artifactId>findbugs-maven-plugin</artifactId>
480                 <version>2.3.1</version>
481                 <configuration>
482                     <xmlOutput>true</xmlOutput>
483                     <!-- Optional derectory to put findbugs xdoc xml report -->
484                     <xmlOutputDirectory>target/site</xmlOutputDirectory>
485                     <findbugsXmlOutput>true</findbugsXmlOutput>
486                     <!-- Optional directory to put findbugs xml report -->
487                     <findbugsXmlOutputDirectory>target/site</findbugsXmlOutputDirectory>
488                 </configuration>
489
490             </plugin>
491
492             <plugin>
493                 <groupId>org.codehaus.mojo</groupId>
494                 <artifactId>changes-maven-plugin</artifactId>
495                 <version>2.0-beta-1</version>
496                 <reportSets>
497                     <reportSet>
498                         <reports>
499                             <report>changes-report</report>
500                         </reports>
501                     </reportSet>
502                 </reportSets>
503             </plugin>
504             <plugin>
505                 <groupId>org.apache.maven.plugins</groupId>
506                 <artifactId>maven-javadoc-plugin</artifactId>
507             </plugin>
508             <plugin>
509                 <groupId>org.codehaus.mojo</groupId>
510                 <artifactId>surefire-report-maven-plugin</artifactId>
511             </plugin>
512             <!-- Test coverage reporting -->
513             <plugin>
514                 <groupId>org.codehaus.mojo</groupId>
515                 <artifactId>cobertura-maven-plugin</artifactId>
516                 <version>2.3</version>
517                 <configuration>
518                     <formats>
519                         <format>xml</format>
520                         <format>html</format>
521                     </formats>
522                 </configuration>
523             </plugin>
524
525             <!-- checkstyle -->
526             <plugin>
527                 <groupId>org.apache.maven.plugins</groupId>
528                 <artifactId>maven-checkstyle-plugin</artifactId>
529                 <version>2.5</version>
530                 <configuration>
531                     <configLocation>org.wamblee.checkstyle.xml</configLocation>
532                 </configuration>
533             </plugin>
534
535             <!-- taglist -->
536             <plugin>
537                 <groupId>org.codehaus.mojo</groupId>
538                 <artifactId>taglist-maven-plugin</artifactId>
539                 <configuration>
540                     <tags>
541                         <tag>TODO</tag>
542                         <tag>@todo</tag>
543                         <tag>FIXME</tag>
544                     </tags>
545                 </configuration>
546             </plugin>
547
548         </plugins>
549     </reporting>
550
551     <profiles>
552         <profile>
553             <id>release</id>
554             <activation>
555                 <property>
556                     <name>performRelease</name>
557                     <value>true</value>
558                 </property>
559             </activation>
560             <build>
561                 <plugins>
562                     <plugin>
563                         <groupId>org.apache.maven.plugins</groupId>
564                         <artifactId>maven-gpg-plugin</artifactId>
565                         <executions>
566                             <execution>
567                                 <id>sign-artifacts</id>
568                                 <phase>verify</phase>
569                                 <goals>
570                                     <goal>sign</goal>
571                                 </goals>
572                             </execution>
573                         </executions>
574                     </plugin>
575                 </plugins>
576             </build>
577             <distributionManagement>
578                 <repository>
579                     <id>sonatype-nexus-staging</id>
580                     <name>Nexus Release Repository</name>
581                     <url>http://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
582                 </repository>
583             </distributionManagement>
584
585         </profile>
586         <profile>
587             <id>all</id>
588             <activation>
589                 <property>
590                     <name>!performRelease</name>
591                 </property>
592             </activation>
593             <distributionManagement>
594                 <repository>
595                     <id>local</id>
596                     <name>Local directory</name>
597                     <url>file:${user.home}/java/workspace/deploy</url>
598                 </repository>
599             </distributionManagement>
600         </profile>
601     </profiles>
602
603
604     <properties>
605         <spring.version>2.0.8</spring.version>
606         <jmock.version>2.4.0</jmock.version>
607     </properties>
608
609 </project>