2ronwalf<?
xml version="1.0" encoding="iso-8859-1"?>
2ronwalf DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 2ronwalf Copyright 1997-2009 Sun Microsystems, Inc. All rights reserved. 2ronwalf The contents of this file are subject to the terms of either the GNU 2ronwalf General Public License Version 2 only ("GPL") or the Common Development 2ronwalf and Distribution License("CDDL") (collectively, the "License"). You 2ronwalf may not use this file except in compliance with the License. You can obtain 2ronwalf language governing permissions and limitations under the License. 2ronwalf When distributing the software, include this License Header Notice in each 2ronwalf Sun designates this particular file as subject to the "Classpath" exception 2ronwalf as provided by Sun in the GPL Version 2 section of the License file that 2ronwalf accompanied this code. If applicable, add the following below the License 2ronwalf Header, with the fields enclosed by brackets [] replaced by your own 2ronwalf identifying information: "Portions Copyrighted [year] 2ronwalf If you wish your version of this file to be governed by only the CDDL or 2ronwalf only the GPL Version 2, indicate your decision by adding "[Contributor] 2ronwalf elects to include this software in this distribution under the [CDDL or GPL 2ronwalf Version 2] license." If you don't indicate a single choice of license, a 2ronwalf recipient has the option to distribute your version of this file under 2ronwalf either the CDDL, the GPL Version 2 or to extend the choice of license to 2ronwalf its licensees as provided above. However, if you add GPL Version 2 code 2ronwalf and therefore, elected the GPL Version 2 license, then the option applies 2ronwalf only if the new code is made subject to such option by the copyright 2ronwalf <
modelVersion>4.0.0</
modelVersion>
2ronwalf <
name>JavaMail API distribution</
name>
2ronwalf <
distribution>repo</
distribution>
2ronwalf <
comments>A business-friendly OSS license</
comments>
2ronwalf <
distribution>repo</
distribution>
2ronwalf <
comments>GPL version 2 plus the Classpath Exception</
comments>
2ronwalf <
name>Sun Microsystems, Inc.</
name>
2ronwalf <!-- defaults that are overridden in mail module --> 2ronwalf <
organization>Sun Microsystems, Inc.</
organization>
2ronwalf This profile contains modules that should only be built <
activeByDefault>true</
activeByDefault>
Activating this profile manually for deployment causes the above profile to be deactivated, which works around an apparent bug in maven that prevents me from manually deactivating a profile. This profile purposely has none of the modules I don't want to be deployed. </
distributionManagement>
<
defaultGoal>install</
defaultGoal>
This plugin is reponsible for packaging artifacts as OSGi bundles. Please refer to for more information about how to use this plugin. <
artifactId>maven-bundle-plugin</
artifactId>
The following entry makes this jar an HK2 jar as well. This is needed because GlassFish currently picks up only OSGi bundles that have this entry. Remove this when GlassFish does not have this 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. <
phase>process-classes</
phase>
<
artifactId>maven-compiler-plugin</
artifactId>
<
artifactId>maven-jar-plugin</
artifactId>
<!-- need at least this version to make excludes work --> Configure the maven-jar-plugin to pick up </
Implementation-
Version>
<
Implementation-
Vendor-
Id>
</
Implementation-
Vendor-
Id>
<
exclude>**/*.java</
exclude>
This is the rule that creates the zip file for distribution. <
artifactId>maven-assembly-plugin</
artifactId>
<
inherited>false</
inherited>
I'd like this to be run as part of the package phase, but that doesn't work. Have to run it explicitly as: mvn package assembly:assembly <artifactId>maven-release-plugin</artifactId> <arguments>-P deploy</arguments> <
artifactId>wagon-svn</
artifactId>
<version>RELEASE</version> but Kohsuke says it doesn't work and to replace it with the actual version number. <
artifactId>mail</
artifactId>
<
artifactId>dsn</
artifactId>
<
artifactId>mbox</
artifactId>
<
artifactId>taglib</
artifactId>
<
artifactId>servlet-api</
artifactId>
<
artifactId>jsp-api</
artifactId>
<
artifactId>activation</
artifactId>
<!-- following works around a bug that causes NullPointerException --> <
artifactId>junit</
artifactId>
<
name>
Java.net Repository for Maven</
name>