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

legacy layout tag in a profile does not show up in child pom.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.1
    • 2.0.3
    • None
    • Windows XP

    Description

      the legacy layout tag in a profile does not show up in an inherited pom.

      Given the following pom.xml:

      <project>
      <modelVersion>4.0.0</modelVersion>
      <groupId>xxx</groupId>
      <artifactId>yyy</artifactId>
      <version>1.0-SNAPSHOT</version>
      <packaging>pom</packaging>
      <profiles>
      <profile>
      <id>maven-1</id>
      <activation>
      <property>
      <name>maven1</name>
      </property>
      </activation>
      <distributionManagement>
      <repository>
      <id>maven-1-repo</id>
      <name>Maven1 Repository</name>
      <url>sftp://...</url>
      <layout>legacy</layout>
      </repository>
      </distributionManagement>
      </profile>
      </profiles>
      </project>

      gives for:

      mvn projecthelp:effective-pom -Dmaven1

      the following result:

      ...
      <distributionManagement>
      <repository>
      <id>maven-1-repo</id>
      <name>Maven1 Repository</name>
      <url>sftp://...</url>
      <layout>legacy</layout>
      </repository>
      </distributionManagement>
      </project>

      which is CORRECT, however if I inherit from this pom with the following pom.xml:

      <project>
      <parent>
      <groupId>xxx</groupId>
      <artifactId>yyy</artifactId>
      <version>1.0-SNAPSHOT</version>
      </parent>
      <modelVersion>4.0.0</modelVersion>
      <groupId>uuu</groupId>
      <artifactId>vvv</artifactId>
      <version>2.0-SNAPSHOT</version>
      </project>

      gives for:

      mvn projecthelp:effective-pom -Dmaven1

      the following result:

      ...
      <distributionManagement>
      <repository>
      <id>maven-1-repo</id>
      <name>Maven1 Repository</name>
      <url>sftp://...</url>
      </repository>
      </distributionManagement>
      </project>

      which is INCORRECT, the layout tag is missing.

      This issue may be related to:

      http://jira.codehaus.org/browse/MNG-731
      http://jira.codehaus.org/browse/MNG-1756

      Attachments

        Issue Links

          Activity

            People

              brett Brett Porter
              duns Mark Donszelmann
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: