logo GitHub Site Maven Plugin

Maven plugin that commits files to a branch in a GitHub repository

homepage: github.com/github/maven-plugins
fresh index:
last release: 7 years ago, first release: 1 decade ago
packaging: maven-plugin
get this artifact from: central
see this artifact on: search.maven.org


Display vulnerabilities (snyk): Vulnerability check

This chart shows how much is this artifact used as a dependency in other Maven artifacts in Central repository and GitHub:


select version:

Add this snippet into pom.xml inside tag <project><build><plugins>:




Switch to artifact.
goals:
site:site

Mojo which copies files to a GitHub repository branch. This directly uses the GitHub data API to upload blobs, make commits, and update references and so a local Git repository is not used.

site:help

Display help information on maven-plugin-plugin. Call mvn plugin:help -Ddetail=true -Dgoal=<goal-name> to display parameter details.

Often used code snippets:

<plugin>
  <groupId>com.github.github</groupId>
  <artifactId>site-maven-plugin</artifactId>
  <version>0.12</version>
  <configuration>
    <message>Creating site for ${project.version}</message>
  </configuration>
  <executions>
    <execution>
      <goals>
        <goal>site</goal>
      </goals>
      <phase>site</phase>
    </execution>
  </executions>
</plugin>
<plugin>
  <groupId>com.github.github</groupId>
  <artifactId>site-maven-plugin</artifactId>
  <version>0.7</version>
  <configuration>
    <message>Building site for ${project.version}</message>
    <server>github</server>
  </configuration>
  <executions>
    <execution>
      <goals>
        <goal>site</goal>
      </goals>
      <phase>site</phase>
    </execution>
  </executions>
</plugin>
<plugin>
  <groupId>com.github.github</groupId>
  <artifactId>site-maven-plugin</artifactId>
  <version>0.12</version>
  <executions>
    <execution>
      <id>github-site</id>
      <goals>
        <goal>site</goal>
      </goals>
      <phase>site-deploy</phase>
    </execution>
  </executions>
  <configuration>
    <message>Create website for ${project.artifactId} v${project.version}</message>
    <path>${project.artifactId}</path>
    <merge>true</merge>
    <server>github</server>
    <repositoryOwner>JodaOrg</repositoryOwner>
    <repositoryName>jodaorg.github.io</repositoryName>
    <branch>refs/heads/master</branch>
  </configuration>
</plugin>
<plugin>
  <groupId>com.github.github</groupId>
  <artifactId>site-maven-plugin</artifactId>
  <version>0.4</version>
  <configuration>
    <message>Building site for ${project.version}</message>
  </configuration>
</plugin>
<plugin>
  <groupId>com.github.github</groupId>
  <artifactId>site-maven-plugin</artifactId>
  <version>0.12</version>
  <configuration>
    <message>Building site for ${project.version}</message>
  </configuration>
  <executions>
    <execution>
      <goals>
        <goal>site</goal>
      </goals>
      <phase>site</phase>
    </execution>
  </executions>
</plugin>

© Jiri Pinkas 2015 - 2022. All rights reserved! Admin login To submit bugs / feature requests please use this github page
related: JavaVids | Top Java Blogs | Java školení
Apache and Apache Maven are trademarks of the Apache Software Foundation. The Central Repository is a service mark of Sonatype, Inc.