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

ASF GitHub Bot commented on SCM-810:
------------------------------------

jira-importer opened a new issue, #1039:
URL: https://github.com/apache/maven-scm/issues/1039

   **[Thomas 
Meyer](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=meyert)** 
opened 
**[SCM-810](https://issues.apache.org/jira/browse/SCM-810?redirect=false)** and 
commented
   
   To be able to use the buildnumber-maven-plugin with the jgit scm provider 
your pom.xml needs something like this:
   
   ```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>
   ```
   
   
   
   ---
   
   **Affects:** 1.9.4
   
   **Attachments:**
   - 
[jgit-info-support.patch](https://issues.apache.org/jira/secure/attachment/12773679/jgit-info-support.patch)
 (_5.51 kB_)
   
   **Issue Links:**
   - [SCM-825](https://issues.apache.org/jira/browse/SCM-825) provide 
JGitInfoCommand
    (_**"is superceded by"**_)
   




> 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