| POM文件内容: |
<?xml version="1.0" encoding="UTF-8"?>
<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>
<artifactId>geronimo-javamail_1.4</artifactId>
<groupId>org.apache.geronimo.javamail</groupId>
<version>1.8.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>geronimo-javamail_1.4_mail</artifactId>
<packaging>bundle</packaging>
<name>Geronimo JavaMail 1.4 :: Mail</name>
<build>
<plugins>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<artifactSet>
<includes>
<include>org.apache.geronimo.specs:geronimo-javamail_1.4_spec</include>
<include>org.apache.geronimo.javamail:geronimo-javamail_1.4_provider</include>
<include>${project.groupId}:${project.artifactId}</include>
</includes>
</artifactSet>
<filters>
<filter>
<artifact>org.apache.geronimo.specs:geronimo-javamail_1.4_spec</artifact>
<excludes>
<exclude>javax/**</exclude>
<exclude>org/apache/geronimo/mail/**</exclude>
<exclude>org/apache/geronimo/osgi/**</exclude>
</excludes>
</filter>
<filter>
<artifact>org.apache.geronimo.javamail:geronimo-javamail_1.4_provider</artifact>
<excludes>
<exclude>org/apache/geronimo/javamail/**</exclude>
<exclude>org/apache/geronimo/osgi/**</exclude>
</excludes>
</filter>
</filters>
<promoteTransitiveDependencies>true</promoteTransitiveDependencies>
<createDependencyReducedPom>true</createDependencyReducedPom>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<configuration>
<instructions>
<Bundle-SymbolicName>${groupId}.${artifactId};singleton=true</Bundle-SymbolicName>
<Specification-Title>JSR-919 Javamail API 1.4 merged bundle</Specification-Title>
<Specification-Vendor>Sun Microsystems, Inc.</Specification-Vendor>
<Specification-Version>1.4</Specification-Version>
<Private-Package>org.apache.geronimo.osgi.locator,
org.apache.geronimo.mail,
org.apache.geronimo.mail.util,
org.apache.geronimo.javamail.util,
org.apache.geronimo.javamail.authentication</Private-Package>
<Export-Package>javax.mail*;version=1.4,
org.apache.geronimo.javamail.handlers*;version=1.4,
org.apache.geronimo.javamail.store*;version=1.4,
org.apache.geronimo.javamail.transport*;version=1.4,
org.apache.geronimo.mail.handlers*;version=1.4,</Export-Package>
<Import-Package>javax.activation,
javax.mail*,
javax.imageio*;resolution:="optional",
javax.net.ssl*;resolution:="optional",
javax.security.sasl*;resolution:="optional",
javax.security.auth.callback*;resolution:="optional",
org.apache.geronimo.osgi.registry.api;resolution:="optional",
*</Import-Package>
<Bundle-Activator>org.apache.geronimo.mail.Activator</Bundle-Activator>
</instructions>
</configuration>
</plugin>
</plugins>
</build>
</project>
|