Uploaded image for project: 'Spatial Information Systems'
  1. Spatial Information Systems
  2. SIS-63

Fix <prerequisites> in sis-build-helper after Apache upgrated the Maven used by Jenkins

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Trivial
    • Resolution: Won't Fix
    • None
    • 0.3
    • Build process
    • None

    Description

      The pom.xml file of the sis-build-helper module uses the ${maven.version} property, which has been introduced only in Maven 3.0.4 (MNG-4112). Consequently we should put the following section in the pom.xml file:

      <prerequisites>
        <maven>3.0.4</maven>
      </prerequisites>
      

      However at the time of writing this issue, we can not because Apache Jenkins is still using Maven 3.0.3. We had to relax the prerequisite, but users need to be aware that they must declare explicitly their Maven version if (and only if) older than 3.0.4, using the -D option like below:

      --define maven.version=3.0.3
      

      We should declare the correct prerequisite, namely 3.0.4, when Jenkins will accept it. This would allow users of older Maven versions who did not declared the above-cited property to get a proper error message rather than a message about undefined property.

      Attachments

        Activity

          People

            desruisseaux Martin Desruisseaux
            desruisseaux Martin Desruisseaux
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: