pom.xml revision 6
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek<project xmlns="http://maven.apache.org/POM/4.0.0"
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek <description>JavaMail API distribution</description>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek <url>http://java.sun.com/projects/javamail</url>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek <comments>A business-friendly OSS license</comments>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek <comments>GPL version 2 plus the Classpath Exception</comments>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek <organization>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek </organization>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek <properties>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek <activation-api.version>1.1</activation-api.version>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek </properties>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek <developers>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek <organization>Sun Microsystems, Inc.</organization>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek </developer>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek </developers>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek <configuration>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek </configuration>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek To allow us to generate javadocs that only include some
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek classes in certain packages, we need to copy the sources
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek to another location and run javadoc against that subset
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek of the sources. This ant task does the copy.
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek <executions>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek <configuration>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek com/sun/mail/smtp/SMTPAddressFailedException.java,
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek com/sun/mail/smtp/SMTPAddressSucceededException.java,
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek com/sun/mail/smtp/SMTPSendFailedException.java,
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek </configuration>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek </execution>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek </executions>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek <executions>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek <configuration>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek <!-- aggregate not really needed -->
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek <additionalJOption>-J-Xmx32m</additionalJOption>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek <description>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek JavaMail API documentation
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek </description>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek JavaMail API documentation
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek <windowtitle>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek JavaMail API documentation
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek </windowtitle>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek <subpackages>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozekjavax:com.sun.mail.imap:com.sun.mail.pop3:com.sun.mail.smtp:com.sun.mail.dsn
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek </subpackages>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek <!-- XXX - following should work, but doesn't -->
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek <excludePackageNames>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek </excludePackageNames>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek <!-- have to kludge it with this instead... -->
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek <additionalparam>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek </additionalparam>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek <sourcepath>${basedir}/target/javadoc</sourcepath>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek </configuration>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek </execution>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek </executions>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek This rule ensures that all submodules get
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek META-INF/LICENSE.txt included in their jar files.
d25fa6f2608d5fe0617ada47f9d426f45deb96ffJakub Hrozek <artifactId>maven-remote-resources-plugin</artifactId>
d25fa6f2608d5fe0617ada47f9d426f45deb96ffJakub Hrozek <executions>
d25fa6f2608d5fe0617ada47f9d426f45deb96ffJakub Hrozek <configuration>
d25fa6f2608d5fe0617ada47f9d426f45deb96ffJakub Hrozek <resourceBundles>
d25fa6f2608d5fe0617ada47f9d426f45deb96ffJakub Hrozek <resourceBundle>
d25fa6f2608d5fe0617ada47f9d426f45deb96ffJakub Hrozek </resourceBundle>
d25fa6f2608d5fe0617ada47f9d426f45deb96ffJakub Hrozek </resourceBundles>
d25fa6f2608d5fe0617ada47f9d426f45deb96ffJakub Hrozek <resource>META-INF/LICENSE.txt</resource>
d25fa6f2608d5fe0617ada47f9d426f45deb96ffJakub Hrozek </resources>
d25fa6f2608d5fe0617ada47f9d426f45deb96ffJakub Hrozek </configuration>
d25fa6f2608d5fe0617ada47f9d426f45deb96ffJakub Hrozek </execution>
d25fa6f2608d5fe0617ada47f9d426f45deb96ffJakub Hrozek </executions>
d25fa6f2608d5fe0617ada47f9d426f45deb96ffJakub Hrozek This is the rule that creates the zip file for distribution.
d25fa6f2608d5fe0617ada47f9d426f45deb96ffJakub Hrozek I'd like this to be run as part of the
d25fa6f2608d5fe0617ada47f9d426f45deb96ffJakub Hrozek package phase, but that doesn't work.
d25fa6f2608d5fe0617ada47f9d426f45deb96ffJakub Hrozek Have to run it explicitly as:
d25fa6f2608d5fe0617ada47f9d426f45deb96ffJakub Hrozek mvn package assembly:assembly
d25fa6f2608d5fe0617ada47f9d426f45deb96ffJakub Hrozek <executions>
d25fa6f2608d5fe0617ada47f9d426f45deb96ffJakub Hrozek <phase>package</phase>
d25fa6f2608d5fe0617ada47f9d426f45deb96ffJakub Hrozek <goal>assembly</goal>
d25fa6f2608d5fe0617ada47f9d426f45deb96ffJakub Hrozek <configuration>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek <descriptors>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek </descriptors>
d25fa6f2608d5fe0617ada47f9d426f45deb96ffJakub Hrozek </configuration>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek </execution>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek </executions>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek <dependencies>
d25fa6f2608d5fe0617ada47f9d426f45deb96ffJakub Hrozek <dependency>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek </dependency>
d25fa6f2608d5fe0617ada47f9d426f45deb96ffJakub Hrozek <!-- following works around a bug that causes NullPointerException -->
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek <dependency>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek </dependency>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek </dependencies>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek <!-- following two needed to make <includes> work in dependency plugin -->
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek <pluginRepositories>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek <pluginRepository>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek <url>http://people.apache.org/repo/m2-snapshot-repository</url>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek </snapshots>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek </pluginRepository>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek </pluginRepositories>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek <repositories>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek <repository>
d25fa6f2608d5fe0617ada47f9d426f45deb96ffJakub Hrozek <url>http://people.apache.org/repo/m2-snapshot-repository</url>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek </snapshots>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek </repository>
f45a20d6ba9e8d695ec3ab707f0cc082999aa4a3Jakub Hrozek </repositories>