To download the most recent Jakarta Mail 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 git@github.com:eclipse-ee4j/mail.git
Or, to check out the version corresponding to a particular release, use a tag. For example, to check out the 1.6.4 version:
% git clone -b 1.6.4 git@github.com:eclipse-ee4j/mail.git
To build Jakarta Mail you’ll need Maven.
To simply build everything, use:
% cd mail
% mvn install
You’ll find the jakarta.mail.jar file in mail/target/jakarta.mail.jar.
See Workspace Structure for a description of the workspace.