GithubHelp home page GithubHelp logo

git-tag-maven-plugin's Introduction

git-tag-maven-plugin

Tag the current head of the local git repository with a tagName and message. This annotated tag is then pushed to a remote repository. The push can optionally be disabled.

The credentials used to authenticate to the remote repository are extracted from the servers section of the maven settings.xml. The particular server credentials are selected by matching the host portion of the git url with a server id.

URL ServerId
git⁠@github.com:chonton/git-tag-maven-plugin.git github.com
https⁠://github.com/chonton/git-tag-maven-plugin.git github.com

The credentials parameters must correlate with the provided url.

URL Required Credential Parameter(s)
git⁠@github.com:chonton/git-tag-maven-plugin.git <username> & <password>
ssh git url <privateKey>

If an ssh git url is provided and you want to use standard ssh configuration from the ~/.ssh directory instead of using ~/.m2/settings.xml, set the useDotSsh parameter to true.

An alternate branch can be specified. An alternate remote repository can also be specified.

Mojo details at plugin info .

The tag goal is by default attached to the deploy phase. This will occur after any packaging type's deploy plugin goal.

The supported parameters are:

Parameter Required Property Default Description
skip No git.skip false Skip executing the plugin
tagName Yes git.tagName Tag name
message No git.message release ${tagName} Tag message
branch No git.branch HEAD Tag at head of this branch
remote No git.remote origin Remote repository to push tag to
useDotSsh No git.use.ssh false Use the contents of ~/.ssh instead of ~/.m2/settings.xml to configure ssh connections
skipPush No git.skipPush false Skip pushing the tag to remote
skipSnapshots No git.skipSnapshots true Skip creating tag for snapshots

Typical attached phase use:

  <build>
    <plugins>

      <plugin>
        <groupId>org.honton.chas</groupId>
        <artifactId>git-tag-maven-plugin</artifactId>
        <version>0.0.4</version>
        <executions>
          <execution>
            <goals>
              <goal>tag</goal>
            </goals>
            <configuration>
              <tagName>${version}</tagName>
            </configuration>
          </execution>
        </executions>
      </plugin>

    </plugins>
  </build>

Typical command line use:

mvn org.honton.chas:git-tag-maven-plugin:tag -Dgit.tagName=0.0.1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.