Speedup Release for Multiprojects with Maven
In huge multi-module-projects the maven-release-process might have a long running time because there is a lot of site-content to generate and to deployed (Of course this depends on the used report-plugins, i.e. javadoc, findbugs,pmd, dashboard etc.)
I noticed that the upload of the generated javadoc etc. uses a big amount of the deployment time. So how we can speedup this part of the deployment?
We can deploy the generated site in a local directory and after the successful release we can upload the whole directory to the server, i.e. zip the content and unpack on the server, or use a smb-shared-directory … then the site-upload is much faster than with site:deploy and webdav.
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <distributionManagement> <site> <id>site</id> <url>${site.distribution.url}/</url> </site> <distributionManagement> <profiles> <profile> <id>release</id> <properties> <site.distribution.url>file://D:/SITE-RELEASE/</site.distribution.url> <site.url>http://site-server/releases/</site.url> </properties> </profile> </profiles> <properties> <site.url>http://site-server/snapshots/</site.url> <site.distribution.url>dav:${site.url}</site.distribution.url> </properties> </project>
Try it 🙂
Antworten
Du musst angemeldet sein, um einen Kommentar abzugeben.