pom.xml revision 721
736e78aff9e67436c35d4835c24fca667f3cadf3Julian Kornberger<?xml version="1.0" encoding="iso-8859-1"?>
736e78aff9e67436c35d4835c24fca667f3cadf3Julian Kornberger<!--
736e78aff9e67436c35d4835c24fca667f3cadf3Julian Kornberger
736e78aff9e67436c35d4835c24fca667f3cadf3Julian Kornberger DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
736e78aff9e67436c35d4835c24fca667f3cadf3Julian Kornberger
736e78aff9e67436c35d4835c24fca667f3cadf3Julian Kornberger Copyright (c) 1997-2015 Oracle and/or its affiliates. All rights reserved.
736e78aff9e67436c35d4835c24fca667f3cadf3Julian Kornberger
736e78aff9e67436c35d4835c24fca667f3cadf3Julian Kornberger The contents of this file are subject to the terms of either the GNU
802014878b7383de536e4fa0ceced1bce3217eadDaniel Couto Vale General Public License Version 2 only ("GPL") or the Common Development
736e78aff9e67436c35d4835c24fca667f3cadf3Julian Kornberger and Distribution License("CDDL") (collectively, the "License"). You
736e78aff9e67436c35d4835c24fca667f3cadf3Julian Kornberger may not use this file except in compliance with the License. You can
e2586f58230ac2938db5ee91191108988b206e2fEugen Kuksa obtain a copy of the License at
736e78aff9e67436c35d4835c24fca667f3cadf3Julian Kornberger https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html
492757fbefce7e6aee4a7515983a44d19a542ccchardik or packager/legal/LICENSE.txt. See the License for the specific
7daf1bcad83f7bcb6f4e1076f925664bbd2d4f36hardik language governing permissions and limitations under the License.
492757fbefce7e6aee4a7515983a44d19a542ccchardik
7daf1bcad83f7bcb6f4e1076f925664bbd2d4f36hardik When distributing the software, include this License Header Notice in each
ea882c814a23a8acf059ae9e0e49e7a35ddba148hardik file and include the License file at packager/legal/LICENSE.txt.
736e78aff9e67436c35d4835c24fca667f3cadf3Julian Kornberger
736e78aff9e67436c35d4835c24fca667f3cadf3Julian Kornberger GPL Classpath Exception:
736e78aff9e67436c35d4835c24fca667f3cadf3Julian Kornberger Oracle designates this particular file as subject to the "Classpath"
87a46b6e4db760590780a339528decb20e0c2d8bEugen Kuksa exception as provided by Oracle in the GPL Version 2 section of the License
87a46b6e4db760590780a339528decb20e0c2d8bEugen Kuksa file that accompanied this code.
87a46b6e4db760590780a339528decb20e0c2d8bEugen Kuksa
736e78aff9e67436c35d4835c24fca667f3cadf3Julian Kornberger Modifications:
736e78aff9e67436c35d4835c24fca667f3cadf3Julian Kornberger If applicable, add the following below the License Header, with the fields
736e78aff9e67436c35d4835c24fca667f3cadf3Julian Kornberger enclosed by brackets [] replaced by your own identifying information:
736e78aff9e67436c35d4835c24fca667f3cadf3Julian Kornberger "Portions Copyright [year] [name of copyright owner]"
d6cf50ae9519bdb5252081061b3d6a7e0ccde20bEugen Kuksa
d6cf50ae9519bdb5252081061b3d6a7e0ccde20bEugen Kuksa Contributor(s):
d6cf50ae9519bdb5252081061b3d6a7e0ccde20bEugen Kuksa If you wish your version of this file to be governed by only the CDDL or
d6cf50ae9519bdb5252081061b3d6a7e0ccde20bEugen Kuksa only the GPL Version 2, indicate your decision by adding "[Contributor]
d6cf50ae9519bdb5252081061b3d6a7e0ccde20bEugen Kuksa elects to include this software in this distribution under the [CDDL or GPL
d6cf50ae9519bdb5252081061b3d6a7e0ccde20bEugen Kuksa Version 2] license." If you don't indicate a single choice of license, a
d6cf50ae9519bdb5252081061b3d6a7e0ccde20bEugen Kuksa recipient has the option to distribute your version of this file under
d6cf50ae9519bdb5252081061b3d6a7e0ccde20bEugen Kuksa either the CDDL, the GPL Version 2 or to extend the choice of license to
54e3222dbd97122749ba5bac2a10d9d6ba1a2283Eugen Kuksa its licensees as provided above. However, if you add GPL Version 2 code
d6cf50ae9519bdb5252081061b3d6a7e0ccde20bEugen Kuksa and therefore, elected the GPL Version 2 license, then the option applies
d6cf50ae9519bdb5252081061b3d6a7e0ccde20bEugen Kuksa only if the new code is made subject to such option by the copyright
d6cf50ae9519bdb5252081061b3d6a7e0ccde20bEugen Kuksa holder.
d6cf50ae9519bdb5252081061b3d6a7e0ccde20bEugen Kuksa
736e78aff9e67436c35d4835c24fca667f3cadf3Julian Kornberger-->
736e78aff9e67436c35d4835c24fca667f3cadf3Julian Kornberger
736e78aff9e67436c35d4835c24fca667f3cadf3Julian Kornberger<project xmlns="http://maven.apache.org/POM/4.0.0"
736e78aff9e67436c35d4835c24fca667f3cadf3Julian Kornberger xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
736e78aff9e67436c35d4835c24fca667f3cadf3Julian Kornberger xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
7e1eade6e5b88f9a1efa7d3cef366d973ddc1ee4Eugen Kuksa http://maven.apache.org/maven-v4_0_0.xsd">
7e1eade6e5b88f9a1efa7d3cef366d973ddc1ee4Eugen Kuksa <parent>
7e1eade6e5b88f9a1efa7d3cef366d973ddc1ee4Eugen Kuksa <groupId>net.java</groupId>
7e1eade6e5b88f9a1efa7d3cef366d973ddc1ee4Eugen Kuksa <artifactId>jvnet-parent</artifactId>
cf6b6be762502d02736a68d9c94fa3cc9977e474Tim Reddehase <version>1</version>
cf6b6be762502d02736a68d9c94fa3cc9977e474Tim Reddehase </parent>
cf6b6be762502d02736a68d9c94fa3cc9977e474Tim Reddehase <modelVersion>4.0.0</modelVersion>
83fda1d7ef5feb39a07c88d231d2343e89057b98Eugen Kuksa <groupId>com.sun.mail</groupId>
83fda1d7ef5feb39a07c88d231d2343e89057b98Eugen Kuksa <artifactId>all</artifactId>
83fda1d7ef5feb39a07c88d231d2343e89057b98Eugen Kuksa <packaging>pom</packaging>
83fda1d7ef5feb39a07c88d231d2343e89057b98Eugen Kuksa <version>1.5.4-SNAPSHOT</version>
83fda1d7ef5feb39a07c88d231d2343e89057b98Eugen Kuksa <name>JavaMail API distribution</name>
736e78aff9e67436c35d4835c24fca667f3cadf3Julian Kornberger <description>${project.name}</description>
736e78aff9e67436c35d4835c24fca667f3cadf3Julian Kornberger <url>http://javamail.java.net</url>
736e78aff9e67436c35d4835c24fca667f3cadf3Julian Kornberger
736e78aff9e67436c35d4835c24fca667f3cadf3Julian Kornberger <scm>
736e78aff9e67436c35d4835c24fca667f3cadf3Julian Kornberger <connection>scm:hg:http://java.net/hg/javamail~mercurial</connection>
736e78aff9e67436c35d4835c24fca667f3cadf3Julian Kornberger <developerConnection>scm:hg:https://java.net/hg/javamail~mercurial</developerConnection>
736e78aff9e67436c35d4835c24fca667f3cadf3Julian Kornberger <url>http://java.net/hg/javamail~mercurial</url>
736e78aff9e67436c35d4835c24fca667f3cadf3Julian Kornberger </scm>
736e78aff9e67436c35d4835c24fca667f3cadf3Julian Kornberger
736e78aff9e67436c35d4835c24fca667f3cadf3Julian Kornberger <issueManagement>
736e78aff9e67436c35d4835c24fca667f3cadf3Julian Kornberger <system>Bugzilla</system>
736e78aff9e67436c35d4835c24fca667f3cadf3Julian Kornberger <url>http://kenai.com/bugzilla</url>
736e78aff9e67436c35d4835c24fca667f3cadf3Julian Kornberger </issueManagement>
555b7fd96768daf9592e7ddbd4217d784b08e451henning mueller
e5b8591fc3e19ccd4a33757ebcabff27b4ca01ceEugen Kuksa <licenses>
e5b8591fc3e19ccd4a33757ebcabff27b4ca01ceEugen Kuksa <license>
e5b8591fc3e19ccd4a33757ebcabff27b4ca01ceEugen Kuksa <name>CDDL/GPLv2+CE</name>
e5b8591fc3e19ccd4a33757ebcabff27b4ca01ceEugen Kuksa <url>https://glassfish.java.net/public/CDDL+GPL_1_1.html</url>
e5b8591fc3e19ccd4a33757ebcabff27b4ca01ceEugen Kuksa <distribution>repo</distribution>
e5b8591fc3e19ccd4a33757ebcabff27b4ca01ceEugen Kuksa <comments>CDDL or GPL version 2 plus the Classpath Exception</comments>
583cfb88a9eb83c4e7691eb3dbd66247b643229fEugen Kuksa </license>
e5b8591fc3e19ccd4a33757ebcabff27b4ca01ceEugen Kuksa </licenses>
e5b8591fc3e19ccd4a33757ebcabff27b4ca01ceEugen Kuksa
e5b8591fc3e19ccd4a33757ebcabff27b4ca01ceEugen Kuksa <organization>
e5b8591fc3e19ccd4a33757ebcabff27b4ca01ceEugen Kuksa <name>Oracle</name>
250e5c1ec05ffb6d1b933f913c3c65934b206957Eugen Kuksa <url>http://www.oracle.com</url>
250e5c1ec05ffb6d1b933f913c3c65934b206957Eugen Kuksa </organization>
2f0eba71c311b096362f3603d17addad30213c4dEugen Kuksa
e5b8591fc3e19ccd4a33757ebcabff27b4ca01ceEugen Kuksa <properties>
815d84cbac89ad1cb14135028f3fea1d1d44a75fEugen Kuksa <mail.version>1.5.4-SNAPSHOT</mail.version>
815d84cbac89ad1cb14135028f3fea1d1d44a75fEugen Kuksa <!-- like mail.version, but with underscores instead of dots -->
815d84cbac89ad1cb14135028f3fea1d1d44a75fEugen Kuksa <mail.zipversion>1_5_4-SNAPSHOT</mail.zipversion>
815d84cbac89ad1cb14135028f3fea1d1d44a75fEugen Kuksa <mail.spec.version>1.5</mail.spec.version>
815d84cbac89ad1cb14135028f3fea1d1d44a75fEugen Kuksa <activation-api.version>1.1</activation-api.version>
815d84cbac89ad1cb14135028f3fea1d1d44a75fEugen Kuksa <!-- defaults that are overridden in mail module -->
815d84cbac89ad1cb14135028f3fea1d1d44a75fEugen Kuksa <mail.extensionName>
2767a9811a1ffeae0f808bfd8c4847326f703f7aTim Reddehase ${project.groupId}.${project.artifactId}
2767a9811a1ffeae0f808bfd8c4847326f703f7aTim Reddehase </mail.extensionName>
815d84cbac89ad1cb14135028f3fea1d1d44a75fEugen Kuksa <mail.specificationTitle>
b27c7f227c8516589a2bd127c0f74338cf56f0b2Julian Kornberger ${project.groupId}.${project.artifactId}
b27c7f227c8516589a2bd127c0f74338cf56f0b2Julian Kornberger </mail.specificationTitle>
402d5f74ba78451acf2ccda16b41398535028a3bEugen Kuksa <mail.implementationTitle>
cf5a6d3745ac43a950c2315b07a1713bae300a97Tim Reddehase ${project.groupId}.${project.artifactId}
cf5a6d3745ac43a950c2315b07a1713bae300a97Tim Reddehase </mail.implementationTitle>
cf5a6d3745ac43a950c2315b07a1713bae300a97Tim Reddehase <mail.bundle.symbolicName>
2244a7dffeed06ee129d0c94648c6a47615a7a0aEugen Kuksa ${project.groupId}.${project.artifactId}
2244a7dffeed06ee129d0c94648c6a47615a7a0aEugen Kuksa </mail.bundle.symbolicName>
2244a7dffeed06ee129d0c94648c6a47615a7a0aEugen Kuksa <mail.bundle.symbolicName>
2244a7dffeed06ee129d0c94648c6a47615a7a0aEugen Kuksa ${project.groupId}.${project.artifactId}
2244a7dffeed06ee129d0c94648c6a47615a7a0aEugen Kuksa </mail.bundle.symbolicName>
2244a7dffeed06ee129d0c94648c6a47615a7a0aEugen Kuksa <mail.packages.export>
2244a7dffeed06ee129d0c94648c6a47615a7a0aEugen Kuksa javax.mail.*; version=${mail.spec.version}
b27c7f227c8516589a2bd127c0f74338cf56f0b2Julian Kornberger </mail.packages.export>
490da89281b7ee019c87406fb8ce7359aff0932cEugen Kuksa <mail.packages.import>
490da89281b7ee019c87406fb8ce7359aff0932cEugen Kuksa javax.security.sasl;resolution:=optional,
490da89281b7ee019c87406fb8ce7359aff0932cEugen Kuksa sun.security.util;resolution:=optional,
555b7fd96768daf9592e7ddbd4217d784b08e451henning mueller *
555b7fd96768daf9592e7ddbd4217d784b08e451henning mueller </mail.packages.import>
555b7fd96768daf9592e7ddbd4217d784b08e451henning mueller <mail.packages.private>
555b7fd96768daf9592e7ddbd4217d784b08e451henning mueller com.sun.mail.*
555b7fd96768daf9592e7ddbd4217d784b08e451henning mueller </mail.packages.private>
555b7fd96768daf9592e7ddbd4217d784b08e451henning mueller <mail.probeFile/>
7b8fe34340b2727bb31fe0be67fdf684e47c3609Tim Reddehase <!-- for the osgiversion-maven-plugin -->
7b8fe34340b2727bb31fe0be67fdf684e47c3609Tim Reddehase <hk2.plugin.version>2.0.0</hk2.plugin.version>
1cbb38d1d07f559b4a1c012a4833513053716007Daniel Couto Vale <javac.path>/opt/jdk1.5/bin/javac</javac.path>
1cbb38d1d07f559b4a1c012a4833513053716007Daniel Couto Vale <project.build.sourceEncoding>iso-8859-1</project.build.sourceEncoding>
7cd362a86385a020b8c674cf9199771ae3267359henning mueller <findbugs.threshold>
7cd362a86385a020b8c674cf9199771ae3267359henning mueller High
281daea23435eab756481c0dc1a516d78d1b14bbEugen Kuksa </findbugs.threshold>
281daea23435eab756481c0dc1a516d78d1b14bbEugen Kuksa <findbugs.version>
281daea23435eab756481c0dc1a516d78d1b14bbEugen Kuksa 2.5.2
281daea23435eab756481c0dc1a516d78d1b14bbEugen Kuksa </findbugs.version>
281daea23435eab756481c0dc1a516d78d1b14bbEugen Kuksa <findbugs.skip>
281daea23435eab756481c0dc1a516d78d1b14bbEugen Kuksa true
281daea23435eab756481c0dc1a516d78d1b14bbEugen Kuksa </findbugs.skip>
281daea23435eab756481c0dc1a516d78d1b14bbEugen Kuksa <findbugs.exclude/>
281daea23435eab756481c0dc1a516d78d1b14bbEugen Kuksa </properties>
291d5c781e5ce4a7c15cfb16fa4a800177135b3ehenning mueller
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski <developers>
2635b9bca67d93aec1bed63d10d5f92fefce06e7Till Mossakowski <developer>
0c07cc350bdb8afe9b01b4340b33d89500a43106Till Mossakowski <id>shannon</id>
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski <name>Bill Shannon</name>
0c07cc350bdb8afe9b01b4340b33d89500a43106Till Mossakowski <email>bill.shannon@oracle.com</email>
0c07cc350bdb8afe9b01b4340b33d89500a43106Till Mossakowski <organization>Oracle</organization>
0c07cc350bdb8afe9b01b4340b33d89500a43106Till Mossakowski <roles>
2635b9bca67d93aec1bed63d10d5f92fefce06e7Till Mossakowski <role>lead</role>
2635b9bca67d93aec1bed63d10d5f92fefce06e7Till Mossakowski </roles>
2635b9bca67d93aec1bed63d10d5f92fefce06e7Till Mossakowski </developer>
2635b9bca67d93aec1bed63d10d5f92fefce06e7Till Mossakowski </developers>
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski <!-- following to enable use of "mvn site:stage" -->
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski <distributionManagement>
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski <site>
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski <id>oracle.com</id>
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski <url>file:/tmp</url> <!-- not used -->
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski </site>
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski </distributionManagement>
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski <modules>
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski <module>mail</module>
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski <module>mailapi</module>
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski <module>mailapijar</module>
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski <module>smtp</module>
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski <module>imap</module>
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski <module>gimap</module>
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski <module>pop3</module>
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski <module>dsn</module>
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski <module>mailhandler</module>
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski </modules>
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski <profiles>
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski <!--
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski This profile contains modules that should only be built
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski but not installed or deployed.
5ad93833caec560945adbce7b6f1342ef731ae83henning mueller -->
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski <profile>
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski <id>build-only</id>
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski <modules>
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski <module>mbox</module>
0c07cc350bdb8afe9b01b4340b33d89500a43106Till Mossakowski <module>demo</module>
0c07cc350bdb8afe9b01b4340b33d89500a43106Till Mossakowski <module>client</module>
0c07cc350bdb8afe9b01b4340b33d89500a43106Till Mossakowski <module>servlet</module>
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski <module>webapp</module>
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski <module>taglib</module>
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski <module>logging</module>
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski <module>outlook</module>
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski <module>javadoc</module>
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski <module>publish</module>
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski </modules>
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski <activation>
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski <activeByDefault>true</activeByDefault>
291d5c781e5ce4a7c15cfb16fa4a800177135b3ehenning mueller </activation>
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski </profile>
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski <!--
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski This profile is used for deploying a JavaMail final release.
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski Activating this profile manually for deployment causes
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski the above profile to be deactivated, which works around
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski an apparent bug in maven that prevents me from manually
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski deactivating a profile. This profile purposely has none
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski of the modules I don't want to be deployed.
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski -->
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski <profile>
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski <id>deploy-release</id>
1543bf02d52779c4bc29f75de1de4d14636d0e47Till Mossakowski <modules>
<module>parent-distrib</module>
</modules>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<!--
This profile is used for deploying a JavaMail SNAPSHOT release.
It's identical to the above deploy-release profile except that
artifacts aren't signed.
-->
<profile>
<id>deploy-snapshot</id>
<modules>
<module>parent-distrib</module>
</modules>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<!--
A special profile for compiling with the real JDK 1.5
compiler, to make sure there are no accidental dependencies
on JDK 1.6 or newer APIs. Set the property javac.path to the path
to the JDK 1.5 compiler, e.g.,
"mvn -P1.5 -Djavac.path=/opt/jdk1.5/bin/javac".
-->
<profile>
<id>1.5</id>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
<execution>
<id>default-compile</id>
<configuration>
<fork>true</fork>
<executable>${javac.path}</executable>
<compilerVersion>1.5</compilerVersion>
<source>1.5</source>
<target>1.5</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<build>
<defaultGoal>install</defaultGoal>
<plugins>
<!--
Make sure we're using the correct version of maven.
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>enforce-version</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireMavenVersion>
<version>[2.2.1,)</version>
</requireMavenVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<!--
This plugin is reponsible for packaging artifacts
as OSGi bundles. Please refer to
http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html
for more information about how to use this plugin.
-->
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<configuration>
<instructions>
<Bundle-SymbolicName>
${mail.bundle.symbolicName}
</Bundle-SymbolicName>
<Export-Package>
${mail.packages.export}
</Export-Package>
<Import-Package>
${mail.packages.import}
</Import-Package>
<Private-Package>
${mail.packages.private}
</Private-Package>
<DynamicImport-Package>
*
</DynamicImport-Package>
</instructions>
</configuration>
<!--
Since we don't change the packaging type to bundle, we
need to configure the plugin to execute the manifest goal
during the process-classes phase of the build life cycle.
-->
<executions>
<execution>
<id>osgi-manifest</id>
<phase>process-classes</phase>
<goals>
<goal>manifest</goal>
</goals>
</execution>
</executions>
</plugin>
<!--
Since we don't want a qualifier like b05 or SNAPSHOT to
appear in the OSGi package version attribute, we use
the following plugin to populate a project property
with an OSGi version that is equivalent to the maven
version without the qualifier.
-->
<plugin>
<groupId>org.glassfish.hk2</groupId>
<artifactId>osgiversion-maven-plugin</artifactId>
<version>${hk2.plugin.version}</version>
<configuration>
<dropVersionComponent>qualifier</dropVersionComponent>
<versionPropertyName>mail.osgiversion</versionPropertyName>
</configuration>
<executions>
<execution>
<id>compute-osgi-version</id>
<goals>
<goal>compute-osgi-version</goal>
</goals>
</execution>
</executions>
</plugin>
<!--
Use the 1.5 compiler for JavaMail itself and the test classes.
-->
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
<execution>
<id>default-compile</id>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</execution>
<execution>
<id>default-testCompile</id>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<!-- need at least this version to make excludes work -->
<configuration>
<finalName>${project.artifactId}</finalName>
<archive>
<!--
Configure the maven-jar-plugin to pick up
META-INF/MANIFEST.MF that's generated by
the maven-bundle-plugin.
-->
<manifestFile>
${project.build.outputDirectory}/META-INF/MANIFEST.MF
</manifestFile>
<manifestEntries>
<Extension-Name>
${mail.extensionName}
</Extension-Name>
<Specification-Title>
${mail.specificationTitle}
</Specification-Title>
<Specification-Version>
${mail.spec.version}
</Specification-Version>
<Specification-Vendor>
${project.organization.name}
</Specification-Vendor>
<Implementation-Title>
${mail.implementationTitle}
</Implementation-Title>
<Implementation-Version>
${project.version}
</Implementation-Version>
<Implementation-Vendor>
${project.organization.name}
</Implementation-Vendor>
<Implementation-Vendor-Id>
com.sun
</Implementation-Vendor-Id>
<Probe-Provider-XML-File-Names>
${mail.probeFile}
</Probe-Provider-XML-File-Names>
</manifestEntries>
</archive>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</configuration>
</plugin>
<!--
Tell the source plugin about the sources that may have
been downloaded by the maven-dependency-plugin.
Also, need this plugin to define target/classes as another
source directory so that the filtered Version.java
that's copied there will also be compiled when using
the latest version of the maven-compiler-plugin.
-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source> <!-- for dependencies -->
${project.build.directory}/sources
</source>
<source> <!-- for Version.java -->
target/classes
</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<!--
Configure the source plugin here so that it will know
about the sources that may have been downloaded by the
maven-dependency-plugin and configured by the
build-helper-maven-plugin.
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
<configuration>
<includePom>true</includePom>
<!--
Since we added the classes directory using the
build-helper-maven-plugin above, we need to exclude
the class files from the source jar file.
-->
<excludes>
<exclude>**/*.class</exclude>
</excludes>
</configuration>
</plugin>
<!-- not used
<plugin>
<artifactId>maven-release-plugin</artifactId>
<configuration>
<arguments>-P deploy</arguments>
</configuration>
</plugin>
-->
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.4</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.4.3</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.7</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.4</version>
</plugin>
<plugin>
<!--
By default, disable the FindBugs plugin for all modules.
It's enabled in the modules where we actually want to
run it.
-->
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>${findbugs.version}</version>
<configuration>
<skip>${findbugs.skip}</skip>
<threshold>${findbugs.threshold}</threshold>
<findbugsXmlWithMessages>true</findbugsXmlWithMessages>
<excludeFilterFile>
${findbugs.exclude}
</excludeFilterFile>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.0</version>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.1.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.1.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10</version>
<configuration>
<!-- make all the APIs available for javadoc -->
<additionalDependencies>
<additionalDependency>
<groupId>com.sun.mail</groupId>
<artifactId>javax.mail</artifactId>
<version>${mail.version}</version>
</additionalDependency>
</additionalDependencies>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>2.7</version>
</plugin>
</plugins>
</pluginManagement>
</build>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.sun.mail</groupId>
<artifactId>javax.mail</artifactId>
<version>${mail.version}</version>
</dependency>
<dependency>
<groupId>com.sun.mail</groupId>
<artifactId>dsn</artifactId>
<version>${mail.version}</version>
</dependency>
<dependency>
<groupId>com.sun.mail</groupId>
<artifactId>gimap</artifactId>
<version>${mail.version}</version>
</dependency>
<dependency>
<groupId>com.sun.mail</groupId>
<artifactId>mbox</artifactId>
<version>${mail.version}</version>
</dependency>
<dependency>
<groupId>com.sun.mail</groupId>
<artifactId>taglib</artifactId>
<version>${mail.version}</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
</dependency>
<dependency>
<groupId>javax.servlet.jsp</groupId>
<artifactId>jsp-api</artifactId>
<version>2.1</version>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>javax.activation</groupId>
<artifactId>activation</artifactId>
<version>${activation-api.version}</version>
</dependency>
</dependencies>
<reporting>
<plugins>
<!--
Configure FindBugs to run with "mvn site" and
generate html output that can be viewed directly.
-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>${findbugs.version}</version>
<configuration>
<skip>${findbugs.skip}</skip>
<threshold>${findbugs.threshold}</threshold>
<excludeFilterFile>
${findbugs.exclude}
</excludeFilterFile>
</configuration>
</plugin>
</plugins>
</reporting>
</project>