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

Project properties, project.artifactId and project.version, are incorrectly translated when use defined in a parent POM.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0.6, 2.0.7
    • None
    • None
    • None

    Description

      I have defined the <scm> and <distributionManagement> tags in a parent POM. The definitions in the parent POM use ${project.artifactId} and ${project.version}. The problem is the resulting POM has incorrect tags.

      As an example: When the master POM contains the following configuration, the distribution site url for the "bad-effective-pom" project is scp://developer.foo.com/developer-foo-com/projects/bad-effective-pom/1.0-SNAPSHOT/bad-effective-pom

      <distributionManagement>
      <site>
      <id>foo-project-site</id>
      <name>Project Site</name>
      <url>scp://developer.foo.com/developer-foo-com/projects/${project.artifactId}/${project.version}</url>
      </site>
      </distributionManagement>

      As the level of POM inheritance increases, so do the problem.
      A test case will be attached to this issue.

      Attachments

        1. pom.xml
          0.9 kB
          Paul Spencer
        2. pom.xml
          1.0 kB
          Paul Spencer
        3. pom.xml
          0.5 kB
          Paul Spencer

        Issue Links

          Activity

            People

              brett Brett Porter
              paulsp Paul Spencer
              Votes:
              15 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: