52N/A<?
xml version="1.0" encoding="iso-8859-1"?>
52N/A DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 121N/A Copyright 1997-2009 Sun Microsystems, Inc. All rights reserved. 52N/A The contents of this file are subject to the terms of either the GNU 52N/A General Public License Version 2 only ("GPL") or the Common Development 52N/A and Distribution License("CDDL") (collectively, the "License"). You 52N/A may not use this file except in compliance with the License. You can obtain 52N/A language governing permissions and limitations under the License. 52N/A When distributing the software, include this License Header Notice in each 52N/A Sun designates this particular file as subject to the "Classpath" exception 52N/A as provided by Sun in the GPL Version 2 section of the License file that 52N/A accompanied this code. If applicable, add the following below the License 52N/A Header, with the fields enclosed by brackets [] replaced by your own 52N/A identifying information: "Portions Copyrighted [year] 52N/A [name of copyright owner]" 52N/A If you wish your version of this file to be governed by only the CDDL or 52N/A only the GPL Version 2, indicate your decision by adding "[Contributor] 52N/A elects to include this software in this distribution under the [CDDL or GPL 52N/A Version 2] license." If you don't indicate a single choice of license, a 52N/A recipient has the option to distribute your version of this file under 52N/A either the CDDL, the GPL Version 2 or to extend the choice of license to 52N/A its licensees as provided above. However, if you add GPL Version 2 code 52N/A and therefore, elected the GPL Version 2 license, then the option applies 52N/A only if the new code is made subject to such option by the copyright 6N/A <
modelVersion>4.0.0</
modelVersion>
6N/A <
artifactId>all</
artifactId>
6N/A <
packaging>pom</
packaging>
128N/A <
version>1.4.3-SNAPSHOT</
version>
6N/A <
name>JavaMail API distribution</
name>
6N/A <
distribution>repo</
distribution>
6N/A <
comments>A business-friendly OSS license</
comments>
6N/A <
name>GPLv2+CE</
name>
6N/A <
distribution>repo</
distribution>
6N/A <
comments>GPL version 2 plus the Classpath Exception</
comments>
6N/A <
name>Sun Microsystems, Inc.</
name>
15N/A <!-- defaults that are overridden in mail module --> 6N/A <
name>Bill Shannon</
name>
6N/A <
organization>Sun Microsystems, Inc.</
organization>
6N/A <
module>mail</
module>
6N/A <
module>mailapi</
module>
6N/A <
module>smtp</
module>
6N/A <
module>imap</
module>
6N/A <
module>pop3</
module>
6N/A <
module>dsn</
module>
63N/A This profile contains modules that should only be built 63N/A but not installed or deployed. 63N/A <
id>build-only</
id>
63N/A <
module>mbox</
module>
63N/A <
module>demo</
module>
63N/A <
module>client</
module>
63N/A <
module>servlet</
module>
63N/A <
module>webapp</
module>
63N/A <
module>taglib</
module>
168N/A <
module>logging</
module>
63N/A <
module>javadoc</
module>
63N/A <
activeByDefault>true</
activeByDefault>
63N/A Activating this profile manually for deployment causes 63N/A the above profile to be deactivated, which works around 63N/A an apparent bug in maven that prevents me from manually 63N/A deactivating a profile. This profile purposely has none 63N/A of the modules I don't want to be deployed. 63N/A <
distributionManagement>
63N/A </
distributionManagement>
26N/A <
defaultGoal>install</
defaultGoal>
44N/A This plugin is reponsible for packaging artifacts 44N/A as OSGi bundles. Please refer to 44N/A for more information about how to use this plugin. 44N/A <
artifactId>maven-bundle-plugin</
artifactId>
44N/A Since we don't change the packaging type to bundle, we 44N/A need to configure the plugin to execute the manifest goal 44N/A during the process-classes phase of the build life cycle. 44N/A <
id>osgi-manifest</
id>
44N/A <
phase>process-classes</
phase>
44N/A <
goal>manifest</
goal>
6N/A <
artifactId>maven-compiler-plugin</
artifactId>
6N/A <
source>1.4</
source>
6N/A <
target>1.4</
target>
15N/A <
artifactId>maven-jar-plugin</
artifactId>
15N/A <!-- need at least this version to make excludes work --> 44N/A Configure the maven-jar-plugin to pick up 44N/A the maven-bundle-plugin. 15N/A <
Specification-
Title>
15N/A </
Specification-
Title>
15N/A <
Specification-
Version>
15N/A <
Specification-
Vendor>
15N/A </
Specification-
Vendor>
15N/A <
Implementation-
Title>
15N/A </
Implementation-
Title>
15N/A <
Implementation-
Version>
15N/A </
Implementation-
Version>
15N/A <
Implementation-
Vendor>
15N/A </
Implementation-
Vendor>
15N/A <
Implementation-
Vendor-
Id>
15N/A </
Implementation-
Vendor-
Id>
15N/A <
exclude>**/*.java</
exclude>
6N/A This is the rule that creates the zip file for distribution. 6N/A <
artifactId>maven-assembly-plugin</
artifactId>
6N/A <
inherited>false</
inherited>
6N/A I'd like this to be run as part of the 6N/A package phase, but that doesn't work. 6N/A Have to run it explicitly as: 6N/A mvn package assembly:assembly 6N/A <phase>package</phase> 6N/A <goal>assembly</goal> 63N/A <artifactId>maven-release-plugin</artifactId> 63N/A <arguments>-P deploy</arguments> 164N/A By default, disable the FindBugs plugin for all modules. 164N/A It's enabled in the "mail" module, which is the only 164N/A module where we actually want to run it. 164N/A <
artifactId>findbugs-maven-plugin</
artifactId>
170N/A <
version>RELEASE</
version>
63N/A <
artifactId>wagon-svn</
artifactId>
63N/A Following should be: 63N/A <version>RELEASE</version> 63N/A but Kohsuke says it doesn't work and to replace 63N/A it with the actual version number. 63N/A <
version>1.8</
version>
32N/A <
dependencyManagement>
32N/A <
artifactId>mail</
artifactId>
32N/A <
artifactId>dsn</
artifactId>
32N/A <
artifactId>mbox</
artifactId>
32N/A <
artifactId>taglib</
artifactId>
32N/A <
artifactId>servlet-api</
artifactId>
32N/A <
version>2.5</
version>
32N/A <
artifactId>jsp-api</
artifactId>
32N/A <
version>2.1</
version>
32N/A </
dependencyManagement>
6N/A <
artifactId>activation</
artifactId>
6N/A <!-- following works around a bug that causes NullPointerException --> 6N/A <
groupId>junit</
groupId>
6N/A <
artifactId>junit</
artifactId>
6N/A <
version>4.3.1</
version>