mirror of https://github.com/apache/maven.git
Simplify hocon IT to not rely on a complex parent POM
This commit is contained in:
parent
2f8f380da9
commit
4270e7883f
|
@ -64,12 +64,11 @@ class MavenITmng7836AlternativePomSyntaxTest extends AbstractMavenIntegrationTes
|
|||
|
||||
assertTrue(Files.isRegularFile(consumerPom));
|
||||
List<String> consumerPomLines = Files.readAllLines(consumerPom, StandardCharsets.UTF_8);
|
||||
assertTrue(consumerPomLines.stream().anyMatch(l -> l.contains("<name>Apache-2.0</name>")));
|
||||
assertFalse(consumerPomLines.stream().anyMatch(l -> l.contains("<parent>")));
|
||||
assertTrue(consumerPomLines.stream().anyMatch(l -> l.contains("<artifactId>hocon-simple</artifactId>")));
|
||||
|
||||
// The build pom is the original POM, so the hocon file
|
||||
assertTrue(Files.isRegularFile(buildPom));
|
||||
List<String> buildPomLines = Files.readAllLines(buildPom, StandardCharsets.UTF_8);
|
||||
assertTrue(buildPomLines.stream().anyMatch(l -> l.contains("groupId = org.apache.maven.extensions")));
|
||||
assertTrue(buildPomLines.stream().anyMatch(l -> l.contains("artifactId = hocon-simple")));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,11 +17,6 @@
|
|||
# under the License.
|
||||
#
|
||||
modelVersion = 4.0.0
|
||||
parent {
|
||||
groupId = org.apache.maven.extensions
|
||||
artifactId = maven-extensions
|
||||
version = 41
|
||||
}
|
||||
groupId = org.apache.maven.its.mng-7836
|
||||
artifactId = hocon-simple
|
||||
version = 1.0.0-SNAPSHOT
|
||||
|
|
Loading…
Reference in New Issue