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

MavenProject.getOriginalModel returns interpolated parts

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 4.0.0-alpha-3
    • 4.0.0-alpha-7, 4.0.0
    • Core
    • None

    Description

      I have tested the maven-enforcer-plugin 3.0.0 running in a project where I use the following configuration:

         <requireNoRepositories>
                        <message>The rules for repo1.maven.org are that pom.xml files should not include repository definitions. If
                          repository definitions are included, they must be limited to SNAPSHOT only repositories.</message>
                        <banRepositories>true</banRepositories>
                        <banPluginRepositories>true</banPluginRepositories>
                        <allowSnapshotRepositories>true</allowSnapshotRepositories>
                      </requireNoRepositories>
                      <requirePluginVersions>
      

      The project works correct with Maven 3.X but fails with Maven 4.X (current state of master 92d2c2e3b43ca214989f0f517aa90f1525f0ff2e).

      After some investigation it looks like that the mavenProject.getOriginalModel() returns already interpolated model and *NOT* the original model.

      Attachments

        Issue Links

          Activity

            People

              gnodet Guillaume Nodet
              khmarbaise Karl Heinz Marbaise
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: