[ 
https://issues.apache.org/jira/browse/SCM-810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17964982#comment-17964982
 ] 

Olivier Lamy commented on SCM-810:
----------------------------------

This project has moved from Jira to GitHub Issues. This issue was migrated to 
[apache/maven-scm#1039|https://github.com/apache/maven-scm/issues/1039]. 

> 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 (Moved to GitHub Issues)
>          Issue Type: Improvement
>          Components: maven-scm-provider-gitexe
>    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
(v8.20.10#820010)

Reply via email to