Uploaded image for project: 'Maven Enforcer Plugin'
  1. Maven Enforcer Plugin
  2. MENFORCER-30

RequirePluginVersions breaks when using project.parent.groupId and project.parent.version.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 1.0-beta-1
    • Standard Rules
    • None

    Description

      We were using a obsolete but working child pom file, like:
      <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
      <modelVersion>4.0.0</modelVersion>
      <parent>
      <groupId>org.example.petstore</groupId>
      <artifactId>petstore</artifactId>
      <version>0.2-SNAPSHOT</version>
      </parent>
      <groupId>${project.parent.groupId}</groupId>
      <artifactId>petstore-common</artifactId>
      <version>0.2-SNAPSHOT</version>
      <packaging>jar</packaging>
      <name>Common module</name>
      <description>The Common module.</description>
      </project>

      The rule will fail, when the child is not in the local or a remote repository, because ${project.parent.groupId} and org.example.petstore are not the same and the artifact can not be found.

      Attachments

        Activity

          People

            brett Brett Porter
            nick_stolwijk Nick Stolwijk
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: