| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500 |
- <?xml version="1.0" encoding="iso-8859-1"?>
- <!--
- Copyright (c) 1997, 2023 Oracle and/or its affiliates. All rights reserved.
- This program and the accompanying materials are made available under the
- terms of the Eclipse Public License v. 2.0, which is available at
- http://www.eclipse.org/legal/epl-2.0.
- This Source Code may also be made available under the following Secondary
- Licenses when the conditions for such availability set forth in the
- Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- version 2 with the GNU Classpath Exception, which is available at
- https://www.gnu.org/software/classpath/license.html.
- SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- -->
- <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">
- <parent>
- <groupId>org.eclipse.ee4j</groupId>
- <artifactId>project</artifactId>
- <version>1.0.7</version>
- <relativePath/>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <groupId>jakarta.mail</groupId>
- <artifactId>jakarta.mail-api</artifactId>
- <version>2.1.2</version>
- <name>Jakarta Mail API</name>
- <description>${project.name} ${spec.version} Specification API</description>
- <scm>
- <connection>scm:git:ssh://git@github.com/jakartaee/mail-api.git</connection>
- <developerConnection>scm:git:ssh://git@github.com/jakartaee/mail-api.git</developerConnection>
- <url>https://github.com/jakartaee/mail-api</url>
- </scm>
- <issueManagement>
- <system>GitHub</system>
- <url>https://github.com/jakartaee/mail-api/issues</url>
- </issueManagement>
- <licenses>
- <license>
- <name>EPL 2.0</name>
- <url>http://www.eclipse.org/legal/epl-2.0</url>
- <distribution>repo</distribution>
- </license>
- <license>
- <name>GPL2 w/ CPE</name>
- <url>https://www.gnu.org/software/classpath/license.html</url>
- <distribution>repo</distribution>
- </license>
- <license>
- <name>EDL 1.0</name>
- <url>http://www.eclipse.org/org/documents/edl-v10.php</url>
- <distribution>repo</distribution>
- </license>
- </licenses>
- <properties>
- <spec.version>2.1</spec.version>
- <spec.title>Jakarta Mail Specification</spec.title>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <javadoc.title>Jakarta Mail API documentation</javadoc.title>
- <legal.doc.source>${project.basedir}/..</legal.doc.source>
- <copyright.exclude>${project.basedir}/../copyright-exclude</copyright.exclude>
- <copyright.ignoreyear>false</copyright.ignoreyear>
- <copyright.scmonly>true</copyright.scmonly>
- <copyright.update>false</copyright.update>
- <spotbugs.skip>false</spotbugs.skip>
- <spotbugs.threshold>Low</spotbugs.threshold>
- <spotbugs.exclude>${project.basedir}/../spotbugs-exclude.xml</spotbugs.exclude>
- <!--Maven plugins version-->
- <spotbugs.version>4.7.3.4</spotbugs.version>
- <!-- version identifier in jakarta.mail.Version -->
- <mail.version>${project.version}</mail.version>
- </properties>
- <dependencyManagement>
- <dependencies>
- <dependency>
- <groupId>jakarta.activation</groupId>
- <artifactId>jakarta.activation-api</artifactId>
- <version>2.1.2</version>
- </dependency>
- <dependency>
- <groupId>org.eclipse.angus</groupId>
- <artifactId>angus-activation</artifactId>
- <version>2.0.1</version>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.13.2</version>
- </dependency>
- </dependencies>
- </dependencyManagement>
- <dependencies>
- <dependency>
- <groupId>jakarta.activation</groupId>
- <artifactId>jakarta.activation-api</artifactId>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.eclipse.angus</groupId>
- <artifactId>angus-activation</artifactId>
- <scope>test</scope>
- </dependency>
- </dependencies>
- <build>
- <pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-resources-plugin</artifactId>
- <version>3.3.1</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>3.11.0</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>3.0.0</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jar-plugin</artifactId>
- <version>3.3.0</version>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>build-helper-maven-plugin</artifactId>
- <version>3.3.0</version>
- </plugin>
- <plugin>
- <groupId>com.github.spotbugs</groupId>
- <artifactId>spotbugs-maven-plugin</artifactId>
- <version>${spotbugs.version}</version>
- <configuration>
- <skip>${spotbugs.skip}</skip>
- <threshold>${spotbugs.threshold}</threshold>
- <excludeFilterFile>${spotbugs.exclude}</excludeFilterFile>
- <fork>true</fork>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-enforcer-plugin</artifactId>
- <version>3.3.0</version>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>buildnumber-maven-plugin</artifactId>
- <version>3.0.0</version>
- </plugin>
- <plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <version>5.1.8</version>
- <configuration>
- <instructions>
- <_noextraheaders>true</_noextraheaders>
- </instructions>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-source-plugin</artifactId>
- <version>3.2.1</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-javadoc-plugin</artifactId>
- <version>3.5.0</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-project-info-reports-plugin</artifactId>
- <version>3.4.3</version>
- </plugin>
- <plugin>
- <groupId>org.glassfish.copyright</groupId>
- <artifactId>glassfish-copyright-maven-plugin</artifactId>
- <version>2.4</version>
- </plugin>
- </plugins>
- </pluginManagement>
- <plugins>
- <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>[3.6.3,)</version>
- </requireMavenVersion>
- <requireJavaVersion>
- <version>[11,)</version>
- </requireJavaVersion>
- </rules>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>buildnumber-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>validate</id>
- <phase>validate</phase>
- <goals>
- <goal>create</goal>
- </goals>
- <configuration>
- <getRevisionOnlyOnce>true</getRevisionOnlyOnce>
- <shortRevisionLength>7</shortRevisionLength>
- <revisionOnScmFailure>false</revisionOnScmFailure>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-resources-plugin</artifactId>
- <executions>
- <execution>
- <id>copy-resources</id>
- <phase>validate</phase>
- <goals>
- <goal>copy-resources</goal>
- </goals>
- <configuration>
- <outputDirectory>${basedir}/target/generated-sources/version</outputDirectory>
- <resources>
- <resource>
- <directory>src/main/resources</directory>
- <filtering>true</filtering>
- <includes>
- <include>jakarta/mail/Version.java</include>
- </includes>
- </resource>
- </resources>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>build-helper-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>add-legal-resource</id>
- <phase>generate-resources</phase>
- <goals>
- <goal>add-resource</goal>
- </goals>
- <configuration>
- <resources>
- <resource>
- <directory>${legal.doc.source}</directory>
- <includes>
- <include>NOTICE.md</include>
- <include>LICENSE.md</include>
- </includes>
- <targetPath>META-INF</targetPath>
- </resource>
- </resources>
- </configuration>
- </execution>
- <execution>
- <id>add-sources</id>
- <phase>generate-sources</phase>
- <goals>
- <goal>add-source</goal>
- </goals>
- <configuration>
- <sources>
- <source>${basedir}/target/generated-sources/version</source>
- </sources>
- </configuration>
- </execution>
- <execution>
- <id>currentyear-property</id>
- <goals>
- <goal>timestamp-property</goal>
- </goals>
- <phase>validate</phase>
- <configuration>
- <name>current.year</name>
- <locale>en,US</locale>
- <pattern>yyyy</pattern>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <release>9</release>
- <createMissingPackageInfoClass>false</createMissingPackageInfoClass>
- <compilerArgs>
- <arg>-Xlint:all</arg>
- </compilerArgs>
- <showWarnings>true</showWarnings>
- </configuration>
- <executions>
- <execution>
- <id>base-compile</id>
- <goals>
- <goal>compile</goal>
- </goals>
- <configuration>
- <release>8</release>
- <excludes>
- <exclude>module-info.java</exclude>
- </excludes>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <configuration>
- <archive>
- <manifest>
- <addDefaultEntries>false</addDefaultEntries>
- </manifest>
- </archive>
- <niceManifest>true</niceManifest>
- <instructions>
- <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
- <Specification-Title>${spec.title}</Specification-Title>
- <Specification-Version>${spec.version}</Specification-Version>
- <Specification-Vendor>${project.organization.name}</Specification-Vendor>
- <Extension-Name>${project.groupId}</Extension-Name>
- <Implementation-Title>${project.name}</Implementation-Title>
- <Implementation-Vendor>${project.organization.name}</Implementation-Vendor>
- <Implementation-Build-Id>${buildNumber}</Implementation-Build-Id>
- <DynamicImport-Package>org.glassfish.hk2.osgiresourcelocator</DynamicImport-Package>
- <Import-Package>
- !org.glassfish.hk2.osgiresourcelocator,
- *
- </Import-Package>
- <!-- optional to allow usage with hk2 resource locator as a fallback -->
- <Require-Capability><![CDATA[
- osgi.extender;filter:="(&(osgi.extender=osgi.serviceloader.processor)
- (version>=1.0.0)(!(version>=2.0.0)))";resolution:=optional,
- osgi.serviceloader;filter:="(osgi.serviceloader=jakarta.mail.Provider)";
- osgi.serviceloader="jakarta.mail.Provider";
- cardinality:=multiple;resolution:=optional,
- osgi.serviceloader;filter:="(osgi.serviceloader=jakarta.mail.util.StreamProvider)";
- osgi.serviceloader="jakarta.mail.util.StreamProvider";
- cardinality:=multiple;resolution:=optional,
- osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.8))"
- ]]>
- </Require-Capability>
- </instructions>
- </configuration>
- <executions>
- <execution>
- <id>bundle-manifest</id>
- <phase>process-classes</phase>
- <goals>
- <goal>manifest</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jar-plugin</artifactId>
- <configuration>
- <archive>
- <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
- <manifest>
- <addDefaultEntries>false</addDefaultEntries>
- </manifest>
- </archive>
- <excludes>
- <!-- avoid getting (re)sources, such as Version.java, to the binary -->
- <exclude>**/*.java</exclude>
- </excludes>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-javadoc-plugin</artifactId>
- <configuration>
- <release>11</release>
- <quiet>true</quiet>
- <nodeprecated>false</nodeprecated>
- <notimestamp>true</notimestamp>
- <nosince>true</nosince>
- <use>false</use>
- <author>true</author>
- <version>true</version>
- <description>Jakarta Mail API documentation</description>
- <doctitle>Jakarta Mail API documentation</doctitle>
- <windowtitle>Jakarta Mail API documentation</windowtitle>
- <header><![CDATA[Jakarta Mail<br>v${project.version}]]></header>
- <bottom><![CDATA[
- Comments to : <a href="mailto:mail-dev@eclipse.org">mail-dev@eclipse.org</a>.<br>
- Copyright © 2019, ${current.year} Eclipse Foundation. All rights reserved.<br>
- Use is subject to <a href="{@docRoot}/doc-files/speclicense.html" target="_top">license terms</a>.]]>
- </bottom>
- <detectJavaApiLink>false</detectJavaApiLink>
- <docfilessubdirs>true</docfilessubdirs>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <forkCount>2</forkCount>
- <reuseForks>false</reuseForks>
- <trimStackTrace>false</trimStackTrace>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.glassfish.copyright</groupId>
- <artifactId>glassfish-copyright-maven-plugin</artifactId>
- <configuration>
- <excludeFile>${copyright.exclude}</excludeFile>
- <!-- skip files not under SCM-->
- <scmOnly>${copyright.scmonly}</scmOnly>
- <!-- for use with repair -->
- <update>${copyright.update}</update>
- <!-- check that year is correct -->
- <ignoreYear>${copyright.ignoreyear}</ignoreYear>
- <quiet>false</quiet>
- </configuration>
- </plugin>
- </plugins>
- </build>
- <profiles>
- <profile>
- <id>coverage</id>
- <build>
- <pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.jacoco</groupId>
- <artifactId>jacoco-maven-plugin</artifactId>
- <version>0.8.10</version>
- </plugin>
- </plugins>
- </pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.jacoco</groupId>
- <artifactId>jacoco-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>default-prepare-agent</id>
- <goals>
- <goal>prepare-agent</goal>
- </goals>
- </execution>
- <execution>
- <id>default-report</id>
- <goals>
- <goal>report</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
- </project>
|