JavaMail Reference Implementation

JavaMail Build Instructions

To download the most recent JavaMail source code you’ll need git.

Once you’ve installed git, the following command will check out a copy of the source code:

% git clone

Or, to check out the version corresponding to a particular release, use a tag. For example, to check out the 1.4.7 version:

% git clone -b JAVAMAIL-1_4_7

To build JavaMail you’ll need Maven.

To simply build everything, use:

% cd javamail
% mvn install

You’ll find the javax.mail.jar file in mail/target/javax.mail.jar.

See Workspace Structure for a description of the workspace.