Commons Email uses Maven 2.0 or Ant as a build system.
You may also be interested in the release notes:
Release 1.1
To build a jar file, change into Email's root directory and run "mvn package". The result will be in the "target" subdirectory.
To build the Javadocs, run "mvn javadoc:javadoc". The result will be in "target/docs/apidocs".
To build the full website, run "mvn site". The result will be in "target/site". You must be online and using JDK 1.4 or higher to successfully complete this target.
Commons Email requires two jar files to compile and run - activation-1.1.jar and javamail-1.4.jar. Sun's versions are not present in the main maven repository due to licensing restrictions. You can manually download these jars and install them in your local repository:
See the release notes for more information on alternative implementations of these APIs.
A maven-generated Ant file is provided for Ant users. The maven-build.xml and maven-build.properties should not be changed. If you need to customize the build for any reason, your changes should go only in the build.xml.
ant -p
will list the available targets.
Commons Email may be used on any JRE from 1.4 onwards.
Commons Email requires Wiser
for its unit tests. The base distribution requires JDK 1.5, but 1.4-compatible
jars are also provided in the binary distribution
here
.
Finally, you will also need to install the Retroweaver runtime support library on behalf of Wiser. That download is available here .
These jars will be automatically installed to your local Maven 2 repository if you build using Maven.