Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-4200

Build fails on system without svn client

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.0
    • 2.2.2, 3.0-alpha-6
    • Bootstrap & Build
    • None
    • build.log attached

    Description

      I did a checkout (using TortoiseSVN) from https://svn.apache.org/repos/asf/maven/components/branches/maven-2.1.x/, on my system which doesn't have the command line svn client installed, causing the build to fail as in the attached build.log.

      This is caused by this issue: MOJO-936 in buildnumber-maven-plugin. The remedy is to modify maven-core/pom.xml and any other POMs where the plugin is used by upgrading the version of that plugin and adding the <revisionOnScmFailure/> element like so:

      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>buildnumber-maven-plugin</artifactId>
        <version>1.0-beta-3</version>
        <executions>
          <execution>
            <phase>generate-resources</phase>
            <goals>
              <goal>create</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <doCheck>false</doCheck>
          <doUpdate>false</doUpdate>
          <revisionOnScmFailure>0</revisionOnScmFailure>
          <format>NON-CANONICAL_{0,date,yyyy-MM-dd_HH-mm}_{1}</format>
          <items>
            <item>timestamp</item>
            <item>${user.name}</item>
          </items>
        </configuration>
      </plugin>
      

      Attachments

        1. build.log
          846 kB
          Jethrik

        Activity

          People

            Unassigned Unassigned
            jethrik Jethrik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: