Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: buildnumber-maven-plugin-1.0, 1.1, 1.2
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      MacOS X
    • Patch Submitted:
      Yes
    • Number of attachments :
      1

      Description

      Plugin tries to obtain branch from URL, which doesn't work with git.

      Steps to reproduce:
      1. Add the following section to a pom build in a git repository
      <plugin>
      <groupId>org.codehaus.mojo</groupId>
      <artifactId>buildnumber-maven-plugin</artifactId>
      <version>1.1-SNAPSHOT</version>
      <executions>
      <execution>
      <phase>validate</phase>
      <goals>
      <goal>create</goal>
      </goals>
      </execution>
      </executions>
      </plugin>
      2. Look at build output - branch is always identified as UNKNOWN

      Patch attached (works, but might be questionable - I'm definitely not a maven plugin expert).

        Issue Links

          Activity

          Hide
          Thomas Bruyelle added a comment -
          Show
          Thomas Bruyelle added a comment - See also http://jira.codehaus.org/browse/MBUILDNUM-66
          Hide
          Alexej Kubarev added a comment -

          Would love to see this problem fixed soon.. 1.2 also has this problem

          Show
          Alexej Kubarev added a comment - Would love to see this problem fixed soon.. 1.2 also has this problem
          Hide
          Przemyslaw Wojnowski added a comment -

          Why have you closed this issue without applying the patch?

          Show
          Przemyslaw Wojnowski added a comment - Why have you closed this issue without applying the patch?

            People

            • Assignee:
              Unassigned
              Reporter:
              Vincent Seguin
            • Votes:
              7 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: