Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.0.1
-
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
- relates to
-
MDEPLOY-11 Deployment of artifacts only goes to M2 type repo when layout=legacy
- Closed
-
MNG-731 directory structure invalid for legacy deploy
- Closed