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

unknown version in model id when version is defined from parent

    XMLWordPrintableJSON

    Details

      Description

      working on MPH-160 limitation

      parent POM version is not recognized, leading to suboptimal output "<!-- org.apache.maven.plugins:maven-plugins:[unknown-version] /home/herve/.m2/repository/org/apache/maven/plugins/maven-plugins/33/maven-plugins-33.pom, line 198 -->"

      if we look at this pom:

      <project>
        <parent>
          <groupId>org.apache.maven</groupId>
          <artifactId>maven-parent</artifactId>
          <version>33</version>
        </parent>
      
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-plugins</artifactId>
        <packaging>pom</packaging>
      ...

      the fact that version is not defined as project.version but should be extrapolated from project.parent.version seems to cause the issue in model id calculation for input source tracking

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hboutemy Hervé Boutemy
                Reporter:
                hboutemy Hervé Boutemy
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: