Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-6866

Add URLs to Maven pom files

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.13.1.0
    • Component/s: Build tools
    • Labels:
      None
    • Urgency:
      Low
    • Issue & fix info:
      Newcomer, Patch Available
    • Flags:
      Patch

      Description

      Maven POMs have a <url> element, which is optional, but if not present Maven automatically calculates the URL using the parent project POM's URL and adding /${project.artifactId}.

      The current Maven POMs in the Derby source only has a URL defined in the parent POM (./maven2/pom.xml), but not in the other POMs. So, for any module of the project, the generated URLs are invalid.

      For, example, if you run the following in the ./maven2/client directory the URL is incorrect:

      :~/projects/apache/svn/derby-code/maven2/client$ mvn help:effective-pom | grep '^  <url>'
        <url>http://db.apache.org/derby/derbyclient/</url>
      

      This information is also used by the Maven Project Info Report plugin to generate the Dependencies report and the generated site causes 404 errors. For example, see http://www.deventropy.org/junit-helper/junit-helper-derby/dependencies.html#compile.

      The attached patch adds the URL element to all the POMs.

        Attachments

        1. derby-code-pom-fix.diff
          9 kB
          Bindul Bhowmik

          Activity

            People

            • Assignee:
              bryanpendleton Bryan Pendleton
              Reporter:
              bindul Bindul Bhowmik
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: