Uploaded image for project: 'Maven Shared Components'
  1. Maven Shared Components
  2. MSHARED-17

Local Parent POM not found if <relativePath> specifies a directory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • maven-doxia-tools-1.0
    • maven-doxia-tools
    • None
    • Maven 2.0.7, JDK 1.5.0_12, WinXP SP2
    • Patch

    Description

      The Maven core allows to specify a directory for the <relativePath> element in a module POM to locate the parent POM, e.g.

      <parent>
          ...
          <relativePath>../parent</relativePath>
      </parent>

      will properly find the parent POM in "../parent/pom.xml". However, the Site plugin does not follow this lookup strategy:

      [INFO] [site:site]
      [INFO] Unable to load parent project from a relative path: Could not find the model file '[SNIP]\..\parent'. for project unknown
      [INFO] Parent project loaded from repository.

      This log output is actually from 2.0-beta-6-SNAPSHOT, 2.0-beta-5 outputs a different message but fails, too.

      The attached patch fixes this although I wonder whether this functionality is not already included somewhere in the Maven core (where is belongs IMHO).

      Attachments

        1. site-parent-pom.patch
          1 kB
          Benjamin Bentmann
        2. site-parent-pom.patch
          1 kB
          Benjamin Bentmann

        Issue Links

          Activity

            People

              ltheussl Lukas Theussl
              bentmann Benjamin Bentmann
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: