To download the most recent JavaMail source code you’ll needgit.
Once you’ve installed git, the following command will check out a copyof the source code:
% git clone git@github.com:javaee/javamail.gitOr, to check out the version corresponding to a particular release, usea tag. For example, to check out the 1.4.7 version:
% git clone -b JAVAMAIL-1_4_7 git@github.com:javaee/javamail.gitTo build JavaMail you’ll needMaven.
To simply build everything, use:
% cd javamail% mvn installYou’ll find the javax.mail.jar file in mail/target/javax.mail.jar.
SeeWorkspace Structure for a description of theworkspace.