Last updated February 19, 2011 01:18, by shannon
= JavaMail Build Instructions =
To download the most recent JavaMail source code you'll need [ http://www.selenic.com/mercurial/wiki/ Mercurial ].
Mercurial is available in [ http://opensolaris.org/os/ OpenSolaris ] and most Linux distros.
Once you've installed Mercurial, the following command will check out a copy of the source code:
% hg clone https://kenai.com/hg/javamail~mercurial javamail
Or, to check out the version corresponding to a particular release, use a tag.
For example, to check out the 1.4.4 version:
% hg clone -r JAVAMAIL-1_4_4 https://kenai.com/hg/javamail~mercurial javamail
To build JavaMail you'll need [ http://maven.apache.org/ Maven ].
To simply build everything, use:
% cd javamail
% mvn install
You'll find the javax.mail.jar file in mail/target/javax.mail.jar, or the equivalent
mail.jar file in oldmail/target/mail.jar.
See [[ Workspace Structure ]] for a description of the workspace.





