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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.0.8
    • None
    • None
    • 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

            Unassigned Unassigned
            campariorange Jan Rudert
            Votes:
            6 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: