Uploaded image for project: 'Embedded Jopr'
  1. Embedded Jopr
  2. EMBJOPR-299

rhq-parent 3.0.0 breaks EmbJopr build: Maven's "generate-build-number-properties" execution

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.3.2
    • Fix Version/s: 1.4.0
    • Component/s: None
    • Labels:
      None

      Description

      This

      <plugin>
      <groupId>org.codehaus.mojo</groupId>
      <artifactId>exec-maven-plugin</artifactId>
      <executions>
      <execution>
      <id>generate-build-number-properties</id>
      <phase>generate-resources</phase>
      <goals>
      <goal>exec</goal>
      </goals>
      <configuration>
      <executable>git</executable>
      <arguments>
      <argument>log</argument>
      <argument>--pretty=format:buildNumber = %h</argument>
      <argument>-n1</argument>
      </arguments>
      <outputFile>$

      {project.build.directory}

      /build-number.properties</outputFile>
      </configuration>
      </execution>
      </executions>
      </plugin>

      breaks EmbJopr build:

      [INFO] [exec:exec

      {execution: generate-build-number-properties}

      ]
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Result of /bin/sh c cd /mnt/hudson_workspace/workspace/EmbJopr-noajax/embjopr && git log '-pretty=format:buildNumber = %h' -n1 execution is: '128'.
      [INFO] ------------------------------------------------------------------------

      I need it to be moved to some profile or anything I can disable conditionally.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                ips Ian Springer
                Reporter:
                ozizka Ondrej Zizka
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: