7a62220
7a62220
7a62220
    DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
7a62220
7a62220
    Copyright 1997-2009 Sun Microsystems, Inc. All rights reserved.
7a62220
7a62220
    The contents of this file are subject to the terms of either the GNU
7a62220
    General Public License Version 2 only ("GPL") or the Common Development
7a62220
    and Distribution License("CDDL") (collectively, the "License").  You
7a62220
    may not use this file except in compliance with the License. You can obtain
7a62220
    a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html
7a62220
    or glassfish/bootstrap/legal/LICENSE.txt.  See the License for the specific
7a62220
    language governing permissions and limitations under the License.
7a62220
7a62220
    When distributing the software, include this License Header Notice in each
7a62220
    file and include the License file at glassfish/bootstrap/legal/LICENSE.txt.
7a62220
    Sun designates this particular file as subject to the "Classpath" exception
7a62220
    as provided by Sun in the GPL Version 2 section of the License file that
7a62220
    accompanied this code.  If applicable, add the following below the License
7a62220
    Header, with the fields enclosed by brackets [] replaced by your own
7a62220
    identifying information: "Portions Copyrighted [year]
7a62220
    [name of copyright owner]"
7a62220
7a62220
    Contributor(s):
7a62220
7a62220
    If you wish your version of this file to be governed by only the CDDL or
7a62220
    only the GPL Version 2, indicate your decision by adding "[Contributor]
7a62220
    elects to include this software in this distribution under the [CDDL or GPL
7a62220
    Version 2] license."  If you don't indicate a single choice of license, a
7a62220
    recipient has the option to distribute your version of this file under
7a62220
    either the CDDL, the GPL Version 2 or to extend the choice of license to
7a62220
    its licensees as provided above.  However, if you add GPL Version 2 code
7a62220
    and therefore, elected the GPL Version 2 license, then the option applies
7a62220
    only if the new code is made subject to such option by the copyright
7a62220
    holder.
7a62220
-->
7a62220
7a62220
7a62220
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
7a62220
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
7a62220
			    http://maven.apache.org/maven-v4_0_0.xsd">
7a62220
    <modelVersion>4.0.0</modelVersion>
7a62220
    <groupId>com.sun.mail</groupId>
7a62220
    <artifactId>all</artifactId>
7a62220
    <packaging>pom</packaging>
7a62220
    <version>1.4.3</version>
7a62220
    <name>JavaMail API distribution</name>
7a62220
    <description>${project.name}</description>
7a62220
    <url>http://java.sun.com/projects/javamail</url>
7a62220
7a62220
    <licenses>
7a62220
      <license>
7a62220
        <name>CDDL</name>
7a62220
        <url>http://www.sun.com/cddl</url>
7a62220
        <distribution>repo</distribution>
7a62220
        <comments>A business-friendly OSS license</comments>
7a62220
      </license>
7a62220
      <license>
7a62220
        <name>GPLv2+CE</name>
7a62220
        <url>https://glassfish.dev.java.net/public/CDDL+GPL.html</url>
7a62220
        <distribution>repo</distribution>
7a62220
        <comments>GPL version 2 plus the Classpath Exception</comments>
7a62220
      </license>
7a62220
    </licenses>
7a62220
7a62220
    <organization>
7a62220
	<name>Sun Microsystems, Inc.</name>
7a62220
	<url>http://www.sun.com</url>
7a62220
    </organization>
7a62220
7a62220
    <properties>
7a62220
	<mail.version>1.4.3</mail.version>
7a62220
	
7a62220
	<mail.zipversion>1_4_3</mail.zipversion>
7a62220
	<mail.spec.version>1.4</mail.spec.version>
7a62220
	<activation-api.version>1.1</activation-api.version>
7a62220
	
7a62220
	<mail.extensionName>
7a62220
	    ${project.groupId}.${project.artifactId}
7a62220
	</mail.extensionName>
7a62220
	<mail.specificationTitle>
7a62220
	    ${project.groupId}.${project.artifactId}
7a62220
	</mail.specificationTitle>
7a62220
	<mail.implementationTitle>
7a62220
	    ${project.groupId}.${project.artifactId}
7a62220
	</mail.implementationTitle>
7a62220
	<mail.packages.export>
7a62220
	    javax.mail.*; version=${mail.spec.version}
7a62220
	</mail.packages.export>
7a62220
	<mail.packages.import>
7a62220
	    javax.security.sasl;resolution:=optional,
7a62220
	    sun.security.util;resolution:=optional,
7a62220
	    jcifs.ntlmssp;resolution:=optional,
7a62220
	    *
7a62220
	</mail.packages.import>
7a62220
	<mail.packages.private>
7a62220
	    com.sun.mail.*
7a62220
	</mail.packages.private>
7a62220
	<mail.probeFile/>
7a62220
	
7a62220
	<hk2.plugin.version>0.4.11</hk2.plugin.version>
7a62220
    </properties>
7a62220
7a62220
    <developers>
7a62220
        <developer>
7a62220
            <id>shannon</id>
7a62220
            <name>Bill Shannon</name>
7a62220
            <organization>Sun Microsystems, Inc.</organization>
7a62220
            <roles>
7a62220
                <role>lead</role>
7a62220
            </roles>
7a62220
        </developer>
7a62220
    </developers>
7a62220
7a62220
    <modules>
7a62220
	<module>mail</module>
7a62220
	<module>mailapi</module>
7a62220
	<module>smtp</module>
7a62220
	<module>imap</module>
7a62220
	<module>pop3</module>
7a62220
	<module>dsn</module>
7a62220
    </modules>
7a62220
7a62220
    <profiles>
7a62220
	
7a62220
	    This profile contains modules that should only be built
7a62220
	    but not installed or deployed.
7a62220
	-->
7a62220
	<profile>
7a62220
	    <id>build-only</id>
7a62220
	    <modules>
7a62220
		<module>mbox</module>
7a62220
		<module>demo</module>
7a62220
		<module>client</module>
7a62220
		<module>servlet</module>
7a62220
		<module>webapp</module>
7a62220
		<module>taglib</module>
7a62220
		<module>logging</module>
7a62220
		<module>javadoc</module>
7a62220
	    </modules>
7a62220
	    <activation>
7a62220
		<activeByDefault>true</activeByDefault>
7a62220
	    </activation>
7a62220
	</profile>
7a62220
7a62220
	
7a62220
	    Activating this profile manually for deployment causes
7a62220
	    the above profile to be deactivated, which works around
7a62220
	    an apparent bug in maven that prevents me from manually
7a62220
	    deactivating a profile.  This profile purposely has none
7a62220
	    of the modules I don't want to be deployed.
7a62220
	-->
7a62220
	<profile>
7a62220
	    <id>deploy</id>
7a62220
	</profile>
7a62220
    </profiles>
7a62220
7a62220
    <distributionManagement>
7a62220
	<repository>
7a62220
	    <id>java.net-m2-repository</id>
7a62220
	    <url>java-net:/maven2-repository/trunk/repository/</url>
7a62220
	    <uniqueVersion>false</uniqueVersion>
7a62220
	</repository>
7a62220
    </distributionManagement>
7a62220
7a62220
    <build>
7a62220
	<defaultGoal>install</defaultGoal>
7a62220
        <plugins>
7a62220
	    
7a62220
		This plugin is reponsible for packaging artifacts
7a62220
		as OSGi bundles.  Please refer to
7a62220
		http://felix.apache.org/site/maven-bundle-plugin-bnd.html
7a62220
		for more information about how to use this plugin.
7a62220
	    -->
7a62220
	    <plugin>
7a62220
		<groupId>org.apache.felix</groupId>
7a62220
		<artifactId>maven-bundle-plugin</artifactId>
7a62220
		<configuration>
7a62220
		    <instructions>
7a62220
			<Export-Package>
7a62220
			    ${mail.packages.export}
7a62220
			</Export-Package>
7a62220
			<Import-Package>
7a62220
			    ${mail.packages.import}
7a62220
			</Import-Package>
7a62220
			<Private-Package>
7a62220
			    ${mail.packages.private}
7a62220
			</Private-Package>
7a62220
		    </instructions>
7a62220
		</configuration>
7a62220
		
7a62220
		    Since we don't change the packaging type to bundle, we
7a62220
		    need to configure the plugin to execute the manifest goal
7a62220
		    during the process-classes phase of the build life cycle.
7a62220
		-->
7a62220
		<executions>
7a62220
		    <execution>
7a62220
			<id>osgi-manifest</id>
7a62220
			<phase>process-classes</phase>
7a62220
			<goals>
7a62220
			    <goal>manifest</goal>
7a62220
			</goals>
7a62220
		    </execution>
7a62220
		</executions>
7a62220
	    </plugin>
7a62220
7a62220
	    
7a62220
		Since we don't want a qualifier like b05 or SNAPSHOT to
7a62220
		appear in the OSGi package version attribute, we use
7a62220
		the following plugin to populate a project property
7a62220
		with an OSGi version that is equivalent to the maven
7a62220
		version without the qualifier.
7a62220
	    -->
7a62220
	    <plugin>
7a62220
		<groupId>com.sun.enterprise</groupId>
7a62220
		<artifactId>osgiversion-maven-plugin</artifactId>
7a62220
		<version>${hk2.plugin.version}</version>
7a62220
		<configuration>
7a62220
		    <dropVersionComponent>qualifier</dropVersionComponent>
7a62220
		    <versionPropertyName>mail.osgiversion</versionPropertyName>
7a62220
		</configuration>
7a62220
		<executions>
7a62220
		    <execution>
7a62220
			<id>compute-osgi-version</id>
7a62220
			<goals>
7a62220
			    <goal>compute-osgi-version</goal>
7a62220
			</goals>
7a62220
		    </execution>
7a62220
		</executions>
7a62220
	    </plugin>
7a62220
7a62220
            <plugin>
7a62220
                <artifactId>maven-compiler-plugin</artifactId>
7a62220
                <configuration>
7a62220
                    <source>1.4</source>
7a62220
                    <target>1.4</target>
7a62220
                </configuration>
7a62220
	    </plugin>
7a62220
7a62220
	    <plugin>
7a62220
		<artifactId>maven-jar-plugin</artifactId>
7a62220
		
7a62220
		<configuration>
7a62220
		    <finalName>${project.artifactId}</finalName>
7a62220
		    <archive>
7a62220
			
7a62220
			    Configure the maven-jar-plugin to pick up
7a62220
			    META-INF/MANIFEST.MF that's generated by
7a62220
			    the maven-bundle-plugin.
7a62220
			-->
7a62220
			<manifestFile>
7a62220
			  ${project.build.outputDirectory}/META-INF/MANIFEST.MF
7a62220
			</manifestFile>
7a62220
			<manifestEntries>
7a62220
			    <Extension-Name>
7a62220
				${mail.extensionName}
7a62220
			    </Extension-Name>
7a62220
			    <Specification-Title>
7a62220
				${mail.specificationTitle}
7a62220
			    </Specification-Title>
7a62220
			    <Specification-Version>
7a62220
				${mail.spec.version}</Specification-Version>
7a62220
			    <Specification-Vendor>
7a62220
				${project.organization.name}
7a62220
			    </Specification-Vendor>
7a62220
			    <Implementation-Title>
7a62220
				${mail.implementationTitle}
7a62220
			    </Implementation-Title>
7a62220
			    <Implementation-Version>
7a62220
				${project.version}
7a62220
			    </Implementation-Version>
7a62220
			    <Implementation-Vendor>
7a62220
				${project.organization.name}
7a62220
			    </Implementation-Vendor>
7a62220
			    <Implementation-Vendor-Id>
7a62220
				com.sun
7a62220
			    </Implementation-Vendor-Id>
7a62220
			    <Probe-Provider-XML-File-Names>
7a62220
				${mail.probeFile}
7a62220
			    </Probe-Provider-XML-File-Names>
7a62220
			</manifestEntries>
7a62220
		    </archive>
7a62220
		    <excludes>
7a62220
			<exclude>**/*.java</exclude>
7a62220
		    </excludes>
7a62220
		</configuration>
7a62220
	    </plugin>
7a62220
7a62220
	    
7a62220
		This is the rule that creates the zip file for distribution.
7a62220
	    -->
7a62220
	    <plugin>
7a62220
		<artifactId>maven-assembly-plugin</artifactId>
7a62220
		<inherited>false</inherited>
7a62220
		
7a62220
		    I'd like this to be run as part of the
7a62220
		    package phase, but that doesn't work.
7a62220
		    Have to run it explicitly as:
7a62220
7a62220
		    mvn package assembly:assembly
7a62220
7a62220
		<executions>
7a62220
		    <execution>
7a62220
			<phase>package</phase>
7a62220
			<goals>
7a62220
			    <goal>assembly</goal>
7a62220
			</goals>
7a62220
		-->
7a62220
			<configuration>
7a62220
			    <finalName>javamail${mail.zipversion}</finalName>
7a62220
			    <descriptors>
7a62220
				<descriptor>assembly.xml</descriptor>
7a62220
			    </descriptors>
7a62220
			</configuration>
7a62220
		
7a62220
		    </execution>
7a62220
		</executions>
7a62220
		-->
7a62220
	    </plugin>
7a62220
7a62220
7a62220
	    <plugin>
7a62220
		<artifactId>maven-release-plugin</artifactId>
7a62220
		<configuration>
7a62220
		    <arguments>-P deploy</arguments>
7a62220
		</configuration>
7a62220
	    </plugin>
7a62220
-->
7a62220
        </plugins>
7a62220
7a62220
	<pluginManagement>
7a62220
	    <plugins>
7a62220
		<plugin>
7a62220
		    
7a62220
			By default, disable the FindBugs plugin for all modules.
7a62220
			It's enabled in the "mail" module, which is the only
7a62220
			module where we actually want to run it.
7a62220
		    -->
7a62220
		    <groupId>org.codehaus.mojo</groupId>
7a62220
		    <artifactId>findbugs-maven-plugin</artifactId>
7a62220
		    <version>RELEASE</version>
7a62220
		    <configuration>
7a62220
			<skip>true</skip>
7a62220
		    </configuration>
7a62220
		</plugin>
7a62220
	    </plugins>
7a62220
	</pluginManagement>
7a62220
7a62220
	<extensions>
7a62220
	    <extension>
7a62220
		<groupId>org.jvnet.wagon-svn</groupId>
7a62220
		<artifactId>wagon-svn</artifactId>
7a62220
		
7a62220
		    Following should be:
7a62220
		<version>RELEASE</version>
7a62220
		    but Kohsuke says it doesn't work and to replace
7a62220
		    it with the actual version number.
7a62220
		-->
7a62220
		<version>1.8</version>
7a62220
	    </extension>
7a62220
	</extensions>
7a62220
    </build>
7a62220
7a62220
    <dependencyManagement>
7a62220
	<dependencies>
7a62220
	    <dependency>
7a62220
		<groupId>javax.mail</groupId>
7a62220
		<artifactId>mail</artifactId>
7a62220
		<version>${mail.version}</version>
7a62220
	    </dependency>
7a62220
	    <dependency>
7a62220
		<groupId>com.sun.mail</groupId>
7a62220
		<artifactId>dsn</artifactId>
7a62220
		<version>${mail.version}</version>
7a62220
	    </dependency>
7a62220
	    <dependency>
7a62220
		<groupId>com.sun.mail</groupId>
7a62220
		<artifactId>mbox</artifactId>
7a62220
		<version>${mail.version}</version>
7a62220
	    </dependency>
7a62220
	    <dependency>
7a62220
		<groupId>com.sun.mail</groupId>
7a62220
		<artifactId>taglib</artifactId>
7a62220
		<version>${mail.version}</version>
7a62220
	    </dependency>
7a62220
	    <dependency>
7a62220
		<groupId>javax.servlet</groupId>
7a62220
		<artifactId>servlet-api</artifactId>
7a62220
		<version>2.5</version>
7a62220
	    </dependency>
7a62220
	    <dependency>
7a62220
		<groupId>javax.servlet.jsp</groupId>
7a62220
		<artifactId>jsp-api</artifactId>
7a62220
		<version>2.1</version>
7a62220
	    </dependency>
7a62220
	</dependencies>
7a62220
    </dependencyManagement>
7a62220
7a62220
    <dependencies>
7a62220
        <dependency>
7a62220
            <groupId>javax.activation</groupId>
7a62220
            <artifactId>activation</artifactId>
7a62220
            <version>${activation-api.version}</version>
7a62220
        </dependency>
7a62220
	
7a62220
        <dependency>
7a62220
            <groupId>junit</groupId>
7a62220
            <artifactId>junit</artifactId>
7a62220
            <version>4.3.1</version>
7a62220
	    <scope>test</scope>
7a62220
        </dependency>
7a62220
    </dependencies>
7a62220
7a62220
    <repositories>
7a62220
	<repository>
7a62220
	    <id>maven2-repository.dev.java.net</id>
7a62220
	    <name>Java.net Repository for Maven</name>
7a62220
	    <url>http://download.java.net/maven/2/</url>
7a62220
	</repository>
7a62220
    </repositories>
7a62220
7a62220
    <pluginRepositories>
7a62220
	<pluginRepository>
7a62220
	    <id>glassfish-repo-archive</id>
7a62220
	    <name>M2 repo for GlassFish project specific artifacts</name>
7a62220
	    <url>http://download.java.net/maven/glassfish/</url>
7a62220
	</pluginRepository>
7a62220
    </pluginRepositories>
7a62220
</project>