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