com.github.caofangkun:version-maven-plugin

Generate Release Version Information for Maven Project

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

com.github.caofangkun
ArtifactId

ArtifactId

version-maven-plugin
Last Version

Last Version

1.0.2
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

com.github.caofangkun:version-maven-plugin
Generate Release Version Information for Maven Project
Project URL

Project URL

https://github.com/caofangkun/version-maven-plugin
Source Code Management

Source Code Management

https://github.com/caofangkun/version-maven-plugin

Download version-maven-plugin

How to add to project

<plugin>
    <groupId>com.github.caofangkun</groupId>
    <artifactId>version-maven-plugin</artifactId>
    <version>1.0.2</version>
</plugin>

Dependencies

compile (2)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 3.0
org.apache.maven : maven-core jar 3.0

provided (1)

Group / Artifact Type Version
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.0

Project Modules

There are no modules declared in this project.

Master Branch: Travis CI

version-maven-plugin

Generate Release Version Information for Maven Project

Pom info Example

            <plugin>
               <groupId>com.github.caofangkun</groupId>
               <artifactId>version-maven-plugin</artifactId>
               <executions>
                 <execution>
                   <id>version-info</id>
                   <phase>generate-resources</phase>
                   <goals>
                     <goal>version-info</goal>
                   </goals>
                   <configuration>
                   <source>
                      <directory>${basedir}/src/</directory>
                      <includes>
                        <include>src/**/*.java</include>
                        <include>clj/**/*.clj</include>
                      </includes>
                  </source>
                 </configuration>
               </execution>
             </executions>
          </plugin>

Example Usage

git clone https://github.com/caofangkun/version-maven-plugin.git
cd version-maven-plugin
mvn clean && mvn install 
cd examples/version-example
mvn clean && mvn install 

bin/version 
Version 1.0-SNAPSHOT
URL https://github.com/caofangkun/version-maven-plugin.git -r c51a3be9a59a5c65a5d6e7b370ee637926b62939
Branch master
Compiled by caokun on 2015-03-05T02:37Z
From source with checksum d41d8cd98f0b24e980998ecf8427e

Versions

Version
1.0.2