[ 
https://issues.apache.org/jira/browse/SCM-810?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Scholte updated SCM-810:
-------------------------------
    Description: 
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}

  was:
To be able to use the buildnumber-maven-plugin with the jgit scm provider your 
pom.xml needs something like this:

        <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>


> 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
>            Priority: Minor
>             Fix For: 1.9.6
>
>         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)

Reply via email to