Building DavMail is quite simple:
echo $JAVA_HOME
echo %JAVA_HOME%
ant -version
git clone https://github.com/mguessan/davmail.git
tar xvzf davmail-src-*.tgz
svn co https://svn.code.sf.net/p/davmail/code/trunk
ant
Packages are then available under dist
The Flatpak manifest is maintained in a separate repository on Flathub, see github.com/flathub/org.davmail.DavMail. The published package is available from Flathub; the steps below are only needed to build it locally.
flatpak remote-add --if-not-exists --user flathub https://flathub.org/repo/flathub.flatpakrepo
git clone https://github.com/flathub/org.davmail.DavMail.git
flatpak-builder --force-clean --user --install-deps-from=flathub --repo=repo --install builddir org.davmail.DavMail.yaml
flatpak run org.davmail.DavMail
The source for the DavMail website is in the same version control system as the DavMail source.
To generate the HTML, have maven and the maven site plugin installed.
sudo apt install maven libmaven-site-plugin-java
sudo dnf install maven libmaven-site-plugin-java
Generating the actual HTML is done by these commands:
mvn site
ant fix-site
The HTML files are then available under target/site/