You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Scholte (JIRA)" <ji...@apache.org> on 2016/05/30 21:58:12 UTC
[jira] [Closed] (SCM-810) Add info command to enable mojohaus
buildnumber-maven-plugin with scm jgit provider
[ https://issues.apache.org/jira/browse/SCM-810?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Scholte closed SCM-810.
------------------------------
Resolution: Fixed
Assignee: Robert Scholte
Fix Version/s: (was: 1.9.6)
> Add info command to enable mojohaus buildnumber-maven-plugin with scm jgit provider
> -----------------------------------------------------------------------------------
>
> Key: SCM-810
> URL: https://issues.apache.org/jira/browse/SCM-810
> Project: Maven SCM
> Issue Type: Improvement
> Components: maven-scm-provider-git
> Affects Versions: 1.9.4
> Environment: Windows 10
> Reporter: Thomas Meyer
> Assignee: Robert Scholte
> Priority: Minor
> Attachments: jgit-info-support.patch
>
>
> To be able to use the buildnumber-maven-plugin with the jgit scm provider your pom.xml needs something like this:
> {code:xml}
> <scm>
> <url>https://github.com/thomasmey/einkaufsliste-server</url>
> <connection>scm:jgit:file://.</connection>
> [...]
> </scm>
> and the plugin:
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>buildnumber-maven-plugin</artifactId>
> <version>1.4</version>
> <executions>
> <execution>
> <phase>generate-resources</phase>
> <goals>
> <goal>create-metadata</goal>
> </goals>
> </execution>
> </executions>
> <configuration>
> <addOutputDirectoryToResources>true</addOutputDirectoryToResources>
> </configuration>
> <dependencies>
> <dependency>
> <groupId>org.apache.maven.scm</groupId>
> <artifactId>maven-scm-provider-jgit</artifactId>
> <version>1.9.5-SNAPSHOT</version>
> </dependency>
> </dependencies>
> </plugin>
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)