mirror of https://github.com/apache/maven.git
[MNG-3846] [regression] Inherited URLs are not automatically extended with the child's artifactId
o Extended UT to test deeper inheritance hierarchy git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@757168 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2783afc4bf
commit
ca9d6e96b9
|
@ -563,6 +563,25 @@ public class PomConstructionTest
|
|||
assertEquals( "http://parent.url/download", pom.getValue( "distributionManagement/downloadUrl" ) );
|
||||
}
|
||||
|
||||
/* FIXME: MNG-3846
|
||||
public void testAppendArtifactIdOfParentAndChildToInheritedUrls()
|
||||
throws Exception
|
||||
{
|
||||
PomTestWrapper pom = buildPom( "url-inheritance/another-parent/sub" );
|
||||
assertEquals( "http://parent.url/ap/child", pom.getValue( "url" ) );
|
||||
assertEquals( "http://parent.url/org/", pom.getValue( "organization/url" ) );
|
||||
assertEquals( "http://parent.url/license.txt", pom.getValue( "licenses[1]/url" ) );
|
||||
assertEquals( "http://parent.url/viewvc/ap/child", pom.getValue( "scm/url" ) );
|
||||
assertEquals( "http://parent.url/scm/ap/child", pom.getValue( "scm/connection" ) );
|
||||
assertEquals( "https://parent.url/scm/ap/child", pom.getValue( "scm/developerConnection" ) );
|
||||
assertEquals( "http://parent.url/issues", pom.getValue( "issueManagement/url" ) );
|
||||
assertEquals( "http://parent.url/ci", pom.getValue( "ciManagement/url" ) );
|
||||
assertEquals( "http://parent.url/dist", pom.getValue( "distributionManagement/repository/url" ) );
|
||||
assertEquals( "http://parent.url/snaps", pom.getValue( "distributionManagement/snapshotRepository/url" ) );
|
||||
assertEquals( "http://parent.url/site/ap/child", pom.getValue( "distributionManagement/site/url" ) );
|
||||
assertEquals( "http://parent.url/download", pom.getValue( "distributionManagement/downloadUrl" ) );
|
||||
}
|
||||
//*/
|
||||
|
||||
public void testNonInheritedElementsInSubtreesOverriddenByChild()
|
||||
throws Exception
|
||||
|
|
|
@ -0,0 +1,36 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one
|
||||
or more contributor license agreements. See the NOTICE file
|
||||
distributed with this work for additional information
|
||||
regarding copyright ownership. The ASF licenses this file
|
||||
to you under the Apache License, Version 2.0 (the
|
||||
"License"); you may not use this file except in compliance
|
||||
with the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing,
|
||||
software distributed under the License is distributed on an
|
||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, either express or implied. See the License for the
|
||||
specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<project>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<!-- NOTE: The base directory name of this project deliberately does not match its artifact id! -->
|
||||
|
||||
<parent>
|
||||
<groupId>org.apache.maven.its.mng3846</groupId>
|
||||
<artifactId>parent</artifactId>
|
||||
<version>0.1</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>ap</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
<name>Another Parent to test multi-level URL adjustment</name>
|
||||
</project>
|
|
@ -0,0 +1,35 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one
|
||||
or more contributor license agreements. See the NOTICE file
|
||||
distributed with this work for additional information
|
||||
regarding copyright ownership. The ASF licenses this file
|
||||
to you under the Apache License, Version 2.0 (the
|
||||
"License"); you may not use this file except in compliance
|
||||
with the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing,
|
||||
software distributed under the License is distributed on an
|
||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, either express or implied. See the License for the
|
||||
specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<project>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<!-- NOTE: The base directory name of this project deliberately does not match its artifact id! -->
|
||||
|
||||
<parent>
|
||||
<groupId>org.apache.maven.its.mng3846</groupId>
|
||||
<artifactId>ap</artifactId>
|
||||
<version>0.1</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>child</artifactId>
|
||||
<name>Child Project</name>
|
||||
</project>
|
Loading…
Reference in New Issue