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

Issue a warning when a system-scope dependency refers to the project basedir

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0.1
    • 3.0.2
    • Dependencies, POM
    • None

    Description

      This is an anti-pattern that asks for troubles as the declaring POM will be be unusable during dependency resolution (when accessed from a repository):

      <dependency>
        ...
        <scope>system</scope>
        <systemPath>${basedir}/lib/foo.jar</systemPath>
      </dependency>
      

      As such, usage of either basedir and project.basedir for the system path should emit a warning to help stopping this kind of bad practice.

      Attachments

        Activity

          People

            bentmann Benjamin Bentmann
            bentmann Benjamin Bentmann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: