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

Using ${project.parent.basedir} in <systemPath/> causes InvalidProjectModelException

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.0.8
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Hi

      although the Anttask <echo message="${project.parent.basedir}" /> prints out the proper path of my multiproject's root directory, I get an InvalidProjectModelException If I try to use it in the <systemPath/> element of a dependency like this:

      <dependency>
      <groupId>org.company.my</groupId>
      <artifactId>xyz</artifactId>
      <version>1.0</version>
      <scope>system</scope>
      <systemPath>${project.parent.basedir}/path/to/xyz.jar</systemPath>
      </dependency>

      Also mvn help:effective-pom resolves that property if not used in <systemPath/>

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              campariorange Jan Rudert
            • Votes:
              6 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: