diff --git a/README.md b/README.md index 605da928..c78518f8 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,11 @@ But I highly recommend using only stable versions, from maven central... :-) ``` +If you just would like to see what the plugin can do, you can clone the repository and run +``` +mvn clean install -Dmaven.test.skip=true && mvn clean package -Pdemo -Dmaven.test.skip=true +``` + Using the plugin ---------------- It's really simple to setup this plugin; below is a sample pom that you may base your **pom.xml** on. Note that it binds to the initialize phase by default such that all Git properties are available for use throughout the build lifecycle. diff --git a/pom.xml b/pom.xml index bcd54f2f..94c609c8 100644 --- a/pom.xml +++ b/pom.xml @@ -122,7 +122,6 @@ - org.eclipse.jgit org.eclipse.jgit @@ -188,48 +187,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + org.apache.maven.plugins @@ -294,6 +252,51 @@ + + demo + + + + pl.project13.maven + git-commit-id-plugin + ${project.version} + + + + revision + + + + + true + false + git + ${project.basedir}/.git + true + target/testing.properties + dd.MM.yyyy '@' HH:mm:ss z + false + 7 + properties + + false + false + 7 + * + -DEVEL + false + + + git.commit.* + git.remote.origin.url + + false + true + + + + +