1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!--
3
4   Licensed to the Apache Software Foundation (ASF) under one or more
5   contributor license agreements.  See the NOTICE file distributed with
6   this work for additional information regarding copyright ownership.
7   The ASF licenses this file to You under the Apache License, Version 2.0
8   (the "License"); you may not use this file except in compliance with
9   the License.  You may obtain a copy of the License at
10
11       http://www.apache.org/licenses/LICENSE-2.0
12
13   Unless required by applicable law or agreed to in writing, software
14   distributed under the License is distributed on an "AS IS" BASIS,
15   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   See the License for the specific language governing permissions and
17   limitations under the License.
18
19-->
20<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">
21  <modelVersion>4.0.0</modelVersion>
22  <parent>
23    <groupId>org.apache</groupId>
24    <artifactId>apache</artifactId>
25    <version>7</version>
26  </parent>
27  <groupId>org.apache.commons</groupId>
28  <artifactId>commons-parent</artifactId>
29  <packaging>pom</packaging>
30  <!-- TODO: dummy version. In Maven 2.1, this will be auto-versioned being a generic parent -->
31  <version>17</version>
32  <name>Commons Parent</name>
33  <url>http://commons.apache.org/</url>
34
35  <ciManagement>
36    <system>continuum</system>
37    <url>http://vmbuild.apache.org/continuum/</url>
38  </ciManagement>
39
40  <!--
41    This section *must* be overwritten by subprojects. It is only to allow
42    a release of the commons-parent POM.
43  -->
44  <scm>
45    <connection>scm:svn:http://svn.apache.org/repos/asf/commons/proper/commons-parent/tags/commons-parent-17</connection>
46    <developerConnection>scm:svn:https://svn.apache.org/repos/asf/commons/proper/commons-parent/tags/commons-parent-17</developerConnection>
47    <url>http://svn.apache.org/viewvc/commons/proper/commons-parent/tags/commons-parent-17</url>
48  </scm>
49
50  <mailingLists>
51    <!-- N.B. commons-site now uses the Apache POM so has its own copy of the mailing list definitions -->
52    <mailingList>
53      <name>Commons User List</name>
54      <subscribe>user-subscribe@commons.apache.org</subscribe>
55      <unsubscribe>user-unsubscribe@commons.apache.org</unsubscribe>
56      <post>user@commons.apache.org</post>
57      <archive>http://mail-archives.apache.org/mod_mbox/commons-user/</archive>
58      <otherArchives>
59        <otherArchive>http://markmail.org/list/org.apache.commons.users/</otherArchive>
60        <otherArchive>http://old.nabble.com/Commons---User-f319.html</otherArchive>
61        <otherArchive>http://www.mail-archive.com/user@commons.apache.org/</otherArchive>
62        <otherArchive>http://news.gmane.org/gmane.comp.jakarta.commons.user</otherArchive>
63      </otherArchives>
64    </mailingList>
65    <mailingList>
66      <name>Commons Dev List</name>
67      <subscribe>dev-subscribe@commons.apache.org</subscribe>
68      <unsubscribe>dev-unsubscribe@commons.apache.org</unsubscribe>
69      <post>dev@commons.apache.org</post>
70      <archive>http://mail-archives.apache.org/mod_mbox/commons-dev/</archive>
71      <otherArchives>
72        <otherArchive>http://markmail.org/list/org.apache.commons.dev/</otherArchive>
73        <otherArchive>http://old.nabble.com/Commons---Dev-f317.html</otherArchive>
74        <otherArchive>http://www.mail-archive.com/dev@commons.apache.org/</otherArchive>
75        <otherArchive>http://news.gmane.org/gmane.comp.jakarta.commons.devel</otherArchive>
76      </otherArchives>
77    </mailingList>
78    <mailingList>
79      <name>Commons Issues List</name>
80      <subscribe>issues-subscribe@commons.apache.org</subscribe>
81      <unsubscribe>issues-unsubscribe@commons.apache.org</unsubscribe>
82      <archive>http://mail-archives.apache.org/mod_mbox/commons-issues/</archive>
83      <otherArchives>
84        <otherArchive>http://markmail.org/list/org.apache.commons.issues/</otherArchive>
85        <otherArchive>http://old.nabble.com/Commons---Issues-f25499.html</otherArchive>
86        <otherArchive>http://www.mail-archive.com/issues@commons.apache.org/</otherArchive>
87      </otherArchives>
88    </mailingList>
89    <mailingList>
90      <name>Commons Commits List</name>
91      <subscribe>commits-subscribe@commons.apache.org</subscribe>
92      <unsubscribe>commits-unsubscribe@commons.apache.org</unsubscribe>
93      <archive>http://mail-archives.apache.org/mod_mbox/commons-commits/</archive>
94      <otherArchives>
95        <otherArchive>http://markmail.org/list/org.apache.commons.commits/</otherArchive>
96        <otherArchive>http://www.mail-archive.com/commits@commons.apache.org/</otherArchive>
97      </otherArchives>
98    </mailingList>
99    <mailingList>
100      <name>Apache Announce List</name>
101      <subscribe>announce-subscribe@apache.org</subscribe>
102      <unsubscribe>announce-unsubscribe@apache.org</unsubscribe>
103      <archive>http://mail-archives.apache.org/mod_mbox/www-announce/</archive>
104      <otherArchives>
105        <otherArchive>http://markmail.org/list/org.apache.announce/</otherArchive>
106        <otherArchive>http://old.nabble.com/Apache-News-and-Announce-f109.html</otherArchive>
107        <otherArchive>http://www.mail-archive.com/announce@apache.org/</otherArchive>
108        <otherArchive>http://news.gmane.org/gmane.comp.apache.announce</otherArchive>
109      </otherArchives>
110    </mailingList>
111  </mailingLists>
112  <build>
113    <resources>
114      <resource>
115        <directory>${basedir}</directory>
116        <targetPath>META-INF</targetPath>
117        <includes>
118          <include>NOTICE.txt</include>
119          <include>LICENSE.txt</include>
120        </includes>
121      </resource>
122    </resources>
123    <pluginManagement>
124      <plugins>
125        <!-- org.apache.maven.plugins, alpha order by artifact id -->
126        <plugin>
127          <groupId>org.apache.maven.plugins</groupId>
128          <artifactId>maven-antrun-plugin</artifactId>
129          <!--
130          Warning: 1.4 has regression bug, see: http://jira.codehaus.org/browse/MANTRUN-143
131           -->
132          <version>1.3</version>
133        </plugin>
134        <plugin>
135          <groupId>org.apache.maven.plugins</groupId>
136          <artifactId>maven-assembly-plugin</artifactId>
137          <version>2.2-beta-5</version>
138        </plugin>
139        <plugin>
140          <groupId>org.apache.maven.plugins</groupId>
141          <artifactId>maven-clean-plugin</artifactId>
142          <version>2.4</version>
143        </plugin>
144        <plugin>
145          <groupId>org.apache.maven.plugins</groupId>
146          <artifactId>maven-compiler-plugin</artifactId>
147          <version>2.1</version>
148          <configuration>
149            <source>${maven.compile.source}</source>
150            <target>${maven.compile.target}</target>
151            <encoding>${commons.encoding}</encoding>
152            <fork>${commons.compiler.fork}</fork>
153            <compilerVersion>${commons.compiler.compilerVersion}</compilerVersion>
154            <executable>${commons.compiler.javac}</executable>
155          </configuration>
156        </plugin>
157        <plugin>
158          <groupId>org.apache.maven.plugins</groupId>
159          <artifactId>maven-deploy-plugin</artifactId>
160          <version>2.5</version>
161        </plugin>
162        <plugin>
163          <groupId>org.apache.maven.plugins</groupId>
164          <artifactId>maven-gpg-plugin</artifactId>
165          <version>1.1</version>
166        </plugin>
167        <plugin>
168          <groupId>org.apache.maven.plugins</groupId>
169          <artifactId>maven-install-plugin</artifactId>
170          <version>2.3</version>
171        </plugin>
172        <plugin>
173          <groupId>org.apache.maven.plugins</groupId>
174          <artifactId>maven-jar-plugin</artifactId>
175          <version>2.3</version>
176        </plugin>
177        <plugin>
178          <groupId>org.apache.maven.plugins</groupId>
179          <artifactId>maven-javadoc-plugin</artifactId>
180          <version>2.5</version>
181          <configuration>
182            <!-- keep only errors and warnings -->
183            <quiet>true</quiet>
184            <encoding>${commons.encoding}</encoding>
185            <docEncoding>${commons.docEncoding}</docEncoding>
186            <archive>
187              <manifest>
188                <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
189                <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
190              </manifest>
191            </archive>
192          </configuration>
193        </plugin>
194        <plugin>
195          <groupId>org.apache.maven.plugins</groupId>
196          <artifactId>maven-release-plugin</artifactId>
197          <version>2.0</version>
198        </plugin>
199        <plugin>
200          <groupId>org.apache.maven.plugins</groupId>
201          <artifactId>maven-remote-resources-plugin</artifactId>
202          <!-- override version 1.1 from apache parent to ensure JDK 1.4 compatibilty -->
203          <version>1.0</version>
204          <configuration>
205            <!--
206                apache parent pom automatically adds "LICENSE" and "NOTICE" files
207                to jars - duplciating the "LICENSE.txt" and "NOTICE.txt"
208                files that components already have.
209             -->
210            <skip>true</skip>
211          </configuration>
212        </plugin>
213        <plugin>
214          <groupId>org.apache.maven.plugins</groupId>
215          <artifactId>maven-resources-plugin</artifactId>
216          <version>2.4.1</version>
217        </plugin>
218        <plugin>
219          <groupId>org.apache.maven.plugins</groupId>
220          <artifactId>maven-site-plugin</artifactId>
221          <version>2.0.1</version>
222        </plugin>
223        <plugin>
224          <groupId>org.apache.maven.plugins</groupId>
225          <artifactId>maven-source-plugin</artifactId>
226          <version>2.1.1</version>
227          <configuration>
228            <archive>
229              <manifest>
230                <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
231                <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
232              </manifest>
233            </archive>
234          </configuration>
235        </plugin>
236        <plugin>
237          <groupId>org.apache.maven.plugins</groupId>
238          <artifactId>maven-surefire-plugin</artifactId>
239          <version>${commons.surefire.version}</version>
240        </plugin>
241        <!-- Other plugins, alpha order by groupId and artifactId -->
242        <plugin>
243          <groupId>org.apache.commons</groupId>
244          <artifactId>commons-build-plugin</artifactId>
245          <version>1.3</version>
246          <configuration>
247            <commons.release.name>${commons.release.name}</commons.release.name>
248          </configuration>
249        </plugin>
250        <plugin>
251          <groupId>org.apache.felix</groupId>
252          <artifactId>maven-bundle-plugin</artifactId>
253          <!-- version 1.4.x is required for JDK 1.4 compatibilty -->
254          <version>1.4.3</version>
255          <inherited>true</inherited>
256        </plugin>
257      </plugins>
258    </pluginManagement>
259    <plugins>
260      <plugin>
261        <artifactId>maven-compiler-plugin</artifactId>
262      </plugin>
263      <plugin>
264        <artifactId>maven-surefire-plugin</artifactId>
265        <configuration>
266          <jvm>${commons.surefire.java}</jvm>
267        </configuration>
268      </plugin>
269      <plugin>
270        <artifactId>maven-jar-plugin</artifactId>
271        <configuration>
272          <archive>
273            <manifestFile>${commons.manifestfile}</manifestFile>
274            <manifestEntries>
275              <Specification-Title>${project.name}</Specification-Title>
276              <Specification-Version>${project.version}</Specification-Version>
277              <Specification-Vendor>${project.organization.name}</Specification-Vendor>
278              <Implementation-Title>${project.name}</Implementation-Title>
279              <Implementation-Version>${project.version}</Implementation-Version>
280              <Implementation-Vendor>${project.organization.name}</Implementation-Vendor>
281              <Implementation-Vendor-Id>org.apache</Implementation-Vendor-Id>
282              <X-Compile-Source-JDK>${maven.compile.source}</X-Compile-Source-JDK>
283              <X-Compile-Target-JDK>${maven.compile.target}</X-Compile-Target-JDK>
284            </manifestEntries>
285          </archive>
286        </configuration>
287      </plugin>
288      <plugin>
289        <groupId>org.apache.felix</groupId>
290        <artifactId>maven-bundle-plugin</artifactId>
291        <configuration>
292          <excludeDependencies>true</excludeDependencies>
293          <manifestLocation>target/osgi</manifestLocation>
294          <instructions>
295            <!-- stops the "uses" clauses being added to "Export-Package" manifest entry -->
296            <_nouses>true</_nouses>
297            <!-- Stop the JAVA_1_n_HOME variables from being treated as headers by Bnd -->
298            <_removeheaders>JAVA_1_3_HOME,JAVA_1_4_HOME,JAVA_1_5_HOME,JAVA_1_6_HOME</_removeheaders>
299            <Bundle-SymbolicName>${commons.osgi.symbolicName}</Bundle-SymbolicName>
300            <Export-Package>${commons.osgi.export}</Export-Package>
301            <Private-Package>${commons.osgi.private}</Private-Package>
302            <Import-Package>${commons.osgi.import}</Import-Package>
303            <DynamicImport-Package>${commons.osgi.dynamicImport}</DynamicImport-Package>
304            <Bundle-DocURL>${project.url}</Bundle-DocURL>
305          </instructions>
306        </configuration>
307        <executions>
308          <execution>
309            <id>bundle-manifest</id>
310            <phase>process-classes</phase>
311            <goals>
312              <goal>manifest</goal>
313            </goals>
314          </execution>
315        </executions>
316      </plugin>
317      <plugin>
318        <artifactId>maven-idea-plugin</artifactId>
319        <!--
320         | N.B. The version is deliberately not provided - see COMMONSSITE-56
321         |      This may result in some warnings, e.g. from the Maven 2 Eclipse plugin.
322         -->
323        <configuration>
324          <jdkLevel>${maven.compile.source}</jdkLevel>
325        </configuration>
326      </plugin>
327      <plugin>
328        <!--
329          - Copy LICENSE.txt and NOTICE.txt so that they are included
330          - in the -javadoc jar file for the component.
331          -->
332        <groupId>org.apache.maven.plugins</groupId>
333        <artifactId>maven-antrun-plugin</artifactId>
334        <executions>
335          <execution>
336            <id>javadoc.resources</id>
337            <phase>generate-sources</phase>
338            <goals>
339              <goal>run</goal>
340            </goals>
341            <configuration>
342              <tasks>
343                <copy todir="${project.build.directory}/apidocs/META-INF">
344                  <fileset dir="${basedir}">
345                    <include name="LICENSE.txt" />
346                    <include name="NOTICE.txt" />
347                  </fileset>
348                </copy>
349              </tasks>
350            </configuration>
351          </execution>
352        </executions>
353      </plugin>
354      <plugin>
355        <groupId>org.apache.commons</groupId>
356        <artifactId>commons-build-plugin</artifactId>
357      </plugin>
358    </plugins>
359  </build>
360
361  <reporting>
362    <!-- N.B. plugins defined here in the <reporting> section ignore what's defined in <pluginManagement>
363         in the <build> section above, so we have to define the versions here. -->
364    <plugins>
365      <plugin>
366        <groupId>org.apache.maven.plugins</groupId>
367        <artifactId>maven-project-info-reports-plugin</artifactId>
368        <version>2.1.2</version>
369      </plugin>
370      <plugin>
371        <groupId>org.apache.maven.plugins</groupId>
372        <artifactId>maven-javadoc-plugin</artifactId>
373        <version>2.5</version>
374        <configuration>
375          <!-- keep only errors and warnings -->
376          <quiet>true</quiet>
377          <source>${maven.compile.source}</source>
378          <encoding>${commons.encoding}</encoding>
379          <docEncoding>${commons.docEncoding}</docEncoding>
380          <linksource>true</linksource>
381          <links>
382            <link>http://java.sun.com/javase/6/docs/api/</link>
383          </links>
384        </configuration>
385      </plugin>
386      <plugin>
387        <groupId>org.apache.maven.plugins</groupId>
388        <artifactId>maven-jxr-plugin</artifactId>
389        <version>2.1</version>
390        <configuration>
391          <aggregate>false</aggregate>
392        </configuration>
393      </plugin>
394      <plugin>
395        <groupId>org.apache.maven.plugins</groupId>
396        <artifactId>maven-site-plugin</artifactId>
397        <version>2.0.1</version>
398        <configuration>
399          <!-- Exclude the navigation file for Maven 1 sites
400               and the changes file used by the changes-plugin,
401               as they interfere with the site generation. -->
402          <moduleExcludes>
403            <xdoc>navigation.xml,changes.xml</xdoc>
404          </moduleExcludes>
405        </configuration>
406      </plugin>
407      <plugin>
408        <groupId>org.apache.maven.plugins</groupId>
409        <artifactId>maven-surefire-report-plugin</artifactId>
410        <version>${commons.surefire.version}</version>
411      </plugin>
412      <plugin>
413        <groupId>org.codehaus.mojo</groupId>
414        <artifactId>jdepend-maven-plugin</artifactId>
415        <version>2.0-beta-2</version>
416      </plugin>
417      <plugin>
418        <groupId>org.codehaus.mojo</groupId>
419        <artifactId>rat-maven-plugin</artifactId>
420        <version>1.0-alpha-3</version>
421      </plugin>
422    </plugins>
423  </reporting>
424
425  <profiles>
426
427    <profile>
428      <id>ci</id>
429      <distributionManagement>
430        <repository>
431          <id>apache.snapshots</id>
432          <name>Apache Development Snapshot Repository</name>
433          <url>${commons.deployment.protocol}://people.apache.org/www/people.apache.org/repo/m2-snapshot-repository</url>
434        </repository>
435        <snapshotRepository>
436          <id>apache.snapshots</id>
437          <name>Apache Development Snapshot Repository</name>
438          <url>${commons.deployment.protocol}://people.apache.org/www/people.apache.org/repo/m2-snapshot-repository</url>
439        </snapshotRepository>
440      </distributionManagement>
441    </profile>
442
443    <profile>
444      <id>release</id>
445      <build>
446        <plugins>
447          <!-- We want to sign the artifact, the POM, and all attached artifacts -->
448          <plugin>
449            <artifactId>maven-gpg-plugin</artifactId>
450            <configuration>
451              <passphrase>${gpg.passphrase}</passphrase>
452            </configuration>
453            <executions>
454              <execution>
455                <id>sign-artifacts</id>
456                <phase>verify</phase>
457                <goals>
458                  <goal>sign</goal>
459                </goals>
460              </execution>
461            </executions>
462          </plugin>
463          <plugin>
464            <artifactId>maven-install-plugin</artifactId>
465            <configuration>
466              <createChecksum>true</createChecksum>
467            </configuration>
468          </plugin>
469          <plugin>
470            <artifactId>maven-source-plugin</artifactId>
471            <executions>
472              <execution>
473                <id>create-source-jar</id>
474                <goals>
475                  <goal>jar</goal>
476                </goals>
477                <phase>package</phase>
478              </execution>
479            </executions>
480          </plugin>
481          <plugin>
482            <artifactId>maven-release-plugin</artifactId>
483            <configuration>
484              <!-- Pass these arguments to the deploy plugin. -->
485              <arguments>-Prelease</arguments>
486            </configuration>
487          </plugin>
488          <plugin>
489            <artifactId>maven-javadoc-plugin</artifactId>
490            <executions>
491              <execution>
492                <id>create-javadoc-jar</id>
493                <goals>
494                  <goal>javadoc</goal>
495                  <goal>jar</goal>
496                </goals>
497                <phase>package</phase>
498              </execution>
499            </executions>
500            <configuration>
501              <source>${maven.compile.source}</source>
502            </configuration>
503          </plugin>
504          <plugin>
505            <artifactId>maven-assembly-plugin</artifactId>
506            <executions>
507              <execution>
508                <goals>
509                  <goal>attached</goal>
510                </goals>
511                <phase>package</phase>
512              </execution>
513            </executions>
514          </plugin>
515        </plugins>
516      </build>
517    </profile>
518
519    <profile>
520      <id>rc</id>
521      <distributionManagement>
522        <repository>
523          <id>apache.snapshots</id>
524          <name>Apache Development Snapshot Repository</name>
525          <url>${commons.deployment.protocol}://people.apache.org/www/people.apache.org/builds/commons/${commons.componentid}/${commons.release.version}/${commons.rc.version}/staged</url>
526        </repository>
527      </distributionManagement>
528      <build>
529        <plugins>
530          <!-- We want to sign the artifact, the POM, and all attached artifacts -->
531          <plugin>
532            <artifactId>maven-gpg-plugin</artifactId>
533            <configuration>
534              <passphrase>${gpg.passphrase}</passphrase>
535            </configuration>
536            <executions>
537              <execution>
538                <id>sign-artifacts</id>
539                <phase>verify</phase>
540                <goals>
541                  <goal>sign</goal>
542                </goals>
543              </execution>
544            </executions>
545          </plugin>
546          <plugin>
547            <artifactId>maven-install-plugin</artifactId>
548            <configuration>
549              <createChecksum>true</createChecksum>
550            </configuration>
551          </plugin>
552          <plugin>
553            <artifactId>maven-source-plugin</artifactId>
554            <executions>
555              <execution>
556                <id>create-source-jar</id>
557                <goals>
558                  <goal>jar</goal>
559                </goals>
560                <phase>package</phase>
561              </execution>
562            </executions>
563          </plugin>
564          <plugin>
565            <artifactId>maven-release-plugin</artifactId>
566            <configuration>
567              <!-- Pass these arguments to the deploy plugin. -->
568              <arguments>-Prc</arguments>
569            </configuration>
570          </plugin>
571          <plugin>
572            <artifactId>maven-javadoc-plugin</artifactId>
573            <executions>
574              <execution>
575                <id>create-javadoc-jar</id>
576                <goals>
577                  <goal>javadoc</goal>
578                  <goal>jar</goal>
579                </goals>
580                <phase>package</phase>
581              </execution>
582            </executions>
583            <configuration>
584              <source>${maven.compile.source}</source>
585            </configuration>
586          </plugin>
587          <plugin>
588            <artifactId>maven-assembly-plugin</artifactId>
589            <executions>
590              <execution>
591                <goals>
592                  <goal>attached</goal>
593                </goals>
594                <phase>package</phase>
595              </execution>
596            </executions>
597          </plugin>
598        </plugins>
599      </build>
600    </profile>
601
602    <!--
603       Profile for running the build using JDK 1.3
604       (JAVA_1_3_HOME needs to be defined, e.g. in settings.xml or an environment variable)
605      -->
606    <profile>
607      <id>java-1.3</id>
608      <properties>
609        <commons.compiler.fork>true</commons.compiler.fork>
610        <commons.compiler.compilerVersion>1.3</commons.compiler.compilerVersion>
611        <commons.compiler.javac>${JAVA_1_3_HOME}/bin/javac</commons.compiler.javac>
612        <commons.surefire.java>${JAVA_1_3_HOME}/bin/java</commons.surefire.java>
613        <commons.surefire.version>2.2</commons.surefire.version>
614      </properties>
615    </profile>
616
617    <!--
618       Profile for running the build using JDK 1.4
619       (JAVA_1_4_HOME needs to be defined, e.g. in settings.xml or an environment variable)
620      -->
621    <profile>
622      <id>java-1.4</id>
623      <properties>
624        <commons.compiler.fork>true</commons.compiler.fork>
625        <commons.compiler.compilerVersion>1.4</commons.compiler.compilerVersion>
626        <commons.compiler.javac>${JAVA_1_4_HOME}/bin/javac</commons.compiler.javac>
627        <commons.surefire.java>${JAVA_1_4_HOME}/bin/java</commons.surefire.java>
628      </properties>
629    </profile>
630
631    <!--
632       Profile for running the build using JDK 1.5
633       (JAVA_1_5_HOME needs to be defined, e.g. in settings.xml or an environment variable)
634      -->
635    <profile>
636      <id>java-1.5</id>
637      <properties>
638        <commons.compiler.fork>true</commons.compiler.fork>
639        <commons.compiler.compilerVersion>1.5</commons.compiler.compilerVersion>
640        <commons.compiler.javac>${JAVA_1_5_HOME}/bin/javac</commons.compiler.javac>
641        <commons.surefire.java>${JAVA_1_5_HOME}/bin/java</commons.surefire.java>
642      </properties>
643    </profile>
644
645    <!--
646       Profile for running the build using JDK 1.6
647       (JAVA_1_6_HOME needs to be defined, e.g. in settings.xml or an environment variable)
648      -->
649    <profile>
650      <id>java-1.6</id>
651      <properties>
652        <commons.compiler.fork>true</commons.compiler.fork>
653        <commons.compiler.compilerVersion>1.6</commons.compiler.compilerVersion>
654        <commons.compiler.javac>${JAVA_1_6_HOME}/bin/javac</commons.compiler.javac>
655        <commons.surefire.java>${JAVA_1_6_HOME}/bin/java</commons.surefire.java>
656      </properties>
657    </profile>
658
659    <!-- N.B. when adding new java profiles, be sure to update
660         the _removeheaders list in the maven_bundle_plugin configuration -->
661
662    <!--
663     | Profile to allow testing of deploy phase
664     | e.g.
665     | mvn deploy -Ptest-deploy -Prelease -Dgpg.skip
666     -->
667    <profile>
668      <id>test-deploy</id>
669      <properties>
670        <altDeploymentRepository>id::default::file:target/deploy</altDeploymentRepository>
671      </properties>
672    </profile>
673
674    <!--
675      Profile to build all Commons "proper" components.
676
677      The trunks of all "proper" components can be checked out using:
678          https://svn.apache.org/repos/asf/commons/trunks-proper/
679
680      This profile is a convenience which can be used, for example, to build all the component sites:
681          mvn -Ptrunks-proper site
682
683      or, to clean up:
684          mvn -Ptrunks-proper clean
685
686      see http://issues.apache.org/jira/browse/COMMONSSITE-30
687      -->
688    <profile>
689      <id>trunks-proper</id>
690      <modules>
691        <module>../beanutils</module>
692        <module>../betwixt</module>
693        <module>../chain</module>
694        <module>../cli</module>
695        <module>../codec</module>
696        <module>../collections</module>
697        <module>../compress</module>
698        <module>../configuration</module>
699        <module>../daemon</module>
700        <module>../dbcp</module>
701        <module>../dbutils</module>
702        <module>../digester</module>
703        <module>../discovery</module>
704        <module>../el</module>
705        <module>../email</module>
706        <module>../exec</module>
707        <module>../fileupload</module>
708        <module>../io</module>
709        <module>../jci</module>
710        <module>../jexl</module>
711        <module>../jxpath</module>
712        <module>../lang</module>
713        <module>../launcher</module>
714        <module>../logging</module>
715        <module>../math</module>
716        <module>../modeler</module>
717        <module>../net</module>
718        <module>../pool</module>
719        <module>../primitives</module>
720        <module>../proxy</module>
721        <module>../sanselan</module>
722        <module>../scxml</module>
723        <module>../validator</module>
724        <module>../vfs</module>
725      </modules>
726    </profile>
727  </profiles>
728
729  <properties>
730
731    <!-- Default configuration for compiler source and target JVM -->
732    <maven.compile.source>1.3</maven.compile.source>
733    <maven.compile.target>1.3</maven.compile.target>
734
735    <!-- compiler and surefire plugin settings for "java" profiles -->
736    <commons.compiler.fork>false</commons.compiler.fork>
737    <commons.compiler.compilerVersion />
738    <commons.compiler.javac />
739    <commons.surefire.java />
740    <commons.surefire.version>2.5</commons.surefire.version>
741
742    <!-- Default values for the download-page generation by commons-build-plugin -->
743    <commons.release.name>${project.artifactId}-${commons.release.version}</commons.release.name>
744    <commons.release.desc />
745    <commons.binary.suffix>-bin</commons.binary.suffix>
746    <commons.release.2.name>${project.artifactId}-${commons.release.2.version}</commons.release.2.name>
747    <commons.release.2.desc />
748    <commons.release.2.binary.suffix>-bin</commons.release.2.binary.suffix>
749
750    <!-- Commons Component Id -->
751    <commons.componentid>${project.artifactId}</commons.componentid>
752
753    <!-- The RC version used in the staging repository URL. -->
754    <commons.rc.version>RC1</commons.rc.version>
755
756    <!-- Configuration properties for the OSGi maven-bundle-plugin -->
757    <commons.osgi.symbolicName>org.apache.commons.${commons.componentid}</commons.osgi.symbolicName>
758    <commons.osgi.export>org.apache.commons.*;version=${project.version};-noimport:=true</commons.osgi.export>
759    <commons.osgi.import>*</commons.osgi.import>
760    <commons.osgi.dynamicImport />
761    <commons.osgi.private />
762
763    <!-- location of any manifest file used by maven-jar-plugin -->
764    <commons.manifestfile>target/osgi/MANIFEST.MF</commons.manifestfile>
765
766    <!--
767      Make the deployment protocol pluggable. This allows to switch to
768      other protocols like scpexe, which some users prefer over scp.
769    -->
770    <commons.deployment.protocol>scp</commons.deployment.protocol>
771
772    <!--
773      Encoding of Java source files: Make sure, that the compiler and
774      the javadoc generator use the right encoding. Subprojects may
775      overwrite this, if they are using another encoding.
776    -->
777    <commons.encoding>iso-8859-1</commons.encoding>
778    <commons.docEncoding>${commons.encoding}</commons.docEncoding>
779    <!-- Define encoding for filtering -->
780    <project.build.sourceEncoding>${commons.encoding}</project.build.sourceEncoding>
781    <project.reporting.outputEncoding>${commons.encoding}</project.reporting.outputEncoding>
782
783  </properties>
784
785</project>
786