legacy layout tag in a profile does not show up in child pom.
-------------------------------------------------------------
Key: MNG-1856
URL: http://jira.codehaus.org/browse/MNG-1856
Project: Maven 2
Type: Bug
Components: Inheritence and Interpolation
Versions: 2.0.1
Environment: Windows XP
Reporter: Mark Donszelmann
Priority: Minor
Fix For: 2.0.3
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
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]