mirror of https://github.com/apache/maven.git
[MNG-4070] [regression] Parent POMs cannot be resolved when their id values are surrounded by whitespace
o Added UT git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@751100 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c04ee12962
commit
ff1c73a37d
|
@ -913,6 +913,15 @@ public void testPomEncoding()
|
|||
assertEquals( "TEST-CHARS: \u00C4\u00D6\u00DC\u00E4\u00F6\u00FC\u00DF", pom.getValue( "description" ) );
|
||||
}
|
||||
|
||||
/* FIXME: MNG-4070, fixed in model-builder trunk, awaiting update to model-builder:1.7+
|
||||
public void testXmlWhitespaceHandling()
|
||||
throws Exception
|
||||
{
|
||||
PomTestWrapper pom = buildPom( "xml-whitespace/sub" );
|
||||
assertEquals( "org.apache.maven.its.mng4070", pom.getValue( "groupId" ) );
|
||||
}
|
||||
//*/
|
||||
|
||||
private void assertPathWithNormalizedFileSeparators( Object value )
|
||||
{
|
||||
assertEquals( new File( value.toString() ).getPath(), value.toString() );
|
||||
|
|
|
@ -0,0 +1,43 @@
|
|||
<?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 ugly formatting is essential part of this test! -->
|
||||
<groupId>
|
||||
org.apache.maven.its.mng4070
|
||||
</groupId>
|
||||
<artifactId>
|
||||
parent
|
||||
</artifactId>
|
||||
<version>
|
||||
1.0
|
||||
</version>
|
||||
<packaging>
|
||||
pom
|
||||
</packaging>
|
||||
|
||||
<name>Maven Integration Test :: MNG-4070</name>
|
||||
<description>
|
||||
Test that whitespace around artifact coordinates does not change artifact identity.
|
||||
</description>
|
||||
</project>
|
|
@ -0,0 +1,49 @@
|
|||
<?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 ugly formatting is essential part of this test! -->
|
||||
<parent>
|
||||
<groupId> org.apache.maven.its.mng4070 </groupId>
|
||||
<artifactId> parent </artifactId>
|
||||
<version> 1.0 </version>
|
||||
</parent>
|
||||
|
||||
<artifactId>subproject</artifactId>
|
||||
<version>1.0</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>Maven Integration Test :: MNG-4070 :: Child</name>
|
||||
<description>
|
||||
Test that whitespace around artifact coordinates does not change artifact identity.
|
||||
</description>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<!-- NOTE: The ugly formatting is essential part of this test! -->
|
||||
<groupId> org.apache.maven.its.mng4070 </groupId>
|
||||
<artifactId> a </artifactId>
|
||||
<version> 0.1 </version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
Loading…
Reference in New Issue