summaryrefslogtreecommitdiffstats
path: root/pom.xml
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2014-09-25 11:18:53 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2014-10-12 22:22:16 +0200
commitdf82727bda15d93efe526191994ce9a6c818d7b5 (patch)
tree6db782b234dd9a6807445a477ee9639d0df39f68 /pom.xml
parent42c749291e2f0a45f012a8808ccb2a17a4b72616 (diff)
downloadjgit-df82727bda15d93efe526191994ce9a6c818d7b5.tar.gz
jgit-df82727bda15d93efe526191994ce9a6c818d7b5.zip
Enable maven site generation for jgit
Generating the site: $ mvn site:site Local staging of the site: $ mvn site:stage the site is staged under ./target/staging/ If you can connect to build.eclipse.org over ssh (ask webmaster if you are a committer and need ssh access) you can deploy a local build of the site: $ mvn site:deploy The site is deployed under http://download.eclipse.org/jgit/site/${project.version} To select the ssh key to use for deploying over ssh add the following section to your Maven settings.xml: <server> <id>jgit.website</id> <username>username</username> <privateKey>${user.home}/.ssh/id_rsa</privateKey> <filePermissions>664</filePermission> <directoryPermissions>775</directoryPermissions> <configuration></configuration> </server> To deploy the site from Hudson https://hudson.eclipse.org/egit/ enable the Maven profile "build-server". Change-Id: I7e64c8560ca75196d2232f111ffad953c14f013f Signed-off-by: Matthias Sohn <matthias.sohn@sap.com> (cherry picked from commit 6d00f0a09c67421d4ac9960c568f9c18ceb4a6a4)
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml24
1 files changed, 24 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index c9cbaa760f..2bf7298e98 100644
--- a/pom.xml
+++ b/pom.xml
@@ -168,6 +168,7 @@
<properties>
<jgit-url>http://www.eclipse.org/jgit/</jgit-url>
<jgit-copyright>Copyright (c) 2005, 2009 Shawn Pearce, Robin Rosenberg, et.al.</jgit-copyright>
+ <jgit.website.url>scp://build.eclipse.org/home/data/httpd/download.eclipse.org/jgit/site/${project.version}/</jgit.website.url>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
@@ -356,6 +357,18 @@
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.1.201405082137</version>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-site-plugin</artifactId>
+ <version>3.4</version>
+ <dependencies>
+ <dependency><!-- add support for ssh/scp -->
+ <groupId>org.apache.maven.wagon</groupId>
+ <artifactId>wagon-ssh</artifactId>
+ <version>2.7</version>
+ </dependency>
+ </dependencies>
+ </plugin>
</plugins>
</pluginManagement>
@@ -544,6 +557,11 @@
<url>https://repo.eclipse.org/content/repositories/jgit-snapshots/</url>
<uniqueVersion>true</uniqueVersion>
</snapshotRepository>
+ <site>
+ <id>jgit.website</id>
+ <name>JGit Website</name>
+ <url>${jgit.website.url}</url>
+ </site>
</distributionManagement>
<profiles>
@@ -656,6 +674,12 @@
</plugins>
</build>
</profile>
+ <profile>
+ <id>build-server</id>
+ <properties>
+ <jgit.website.url>file:///home/data/httpd/download.eclipse.org/jgit/site/${project.version}/</jgit.website.url>
+ </properties>
+ </profile>
</profiles>
<modules>