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