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

Maven should not warn about incorrect parent path when no relativePath is specified

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Auto Closed
    • 3.0-beta-1
    • None
    • Logging
    • None

    Description

      If a module pom uses a parent other than the one in the parent directory, maven logs a warning. In some cases it is necessary that a module pom has an external parent pom, and there is no way to refer to this external pom in the relativePath. If nothing is specified in the relativePath, Maven should not log the warning.

      [WARNING] 'parent.relativePath' of POM org.maven.test:relative-path-parent:0.0.1-SNAPSHOT (/home/pgier/projects/MNG-relativePath/module-1/pom.xml) points at org.maven.test:relative-path-test instead of org.apache.maven:maven-parent, please verify your project structure @ 
      

      The attached zip reproduces the warning.

      Attachments

        1. MNG-relativePath.zip
          26 kB
          Paul Gier

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pgier Paul Gier
              Votes:
              29 Vote for this issue
              Watchers:
              34 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: