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

effective pom should not contain file-based profile activation fully interpolated but with limited interpolation like seen during profile activation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.1
    • 3.2.2
    • Profiles
    • None

    Description

      mvn help:effective-pom on a pom.xml containing

          <profile>
            <activation>
              <file>
                <exists>${project.basedir}/pom.xml</exists>
              </file>
            </activation>

      shows interpolated value, which points to an existing file then is misleading

      but the profile isn't activated since ${project.basedir} isn't interpreted during profile activation

      we added a warning in MNG-5608, but showing the value interpolated exactly as done during profile interpolation would be more logic

      Attachments

        Issue Links

          Activity

            People

              hboutemy Herve Boutemy
              hboutemy Herve Boutemy
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: