forked from mojohaus/flatten-maven-plugin
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
https://github.com/mojohaus/flatten-maven-plugin/runs/5890341535?chec…
…k_suite_focus=true#step:4:181
- Loading branch information
1 parent
d2de03f
commit 0d70e15
Showing
2 changed files
with
80 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
src/test/resources/keep-comments-in-pom/expected-flattened-pom-jdk11.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>org.codehaus.mojo.flatten.its</groupId> | ||
<artifactId>resolve-properties-ci-do-not-interpolate-profile-activation-file</artifactId> | ||
<version>1.2.3.4</version> | ||
<properties> | ||
<propertyWithoutComment>test-propertyWithoutComment</propertyWithoutComment> | ||
<!-- comment1 for propertyWithTwoComments --> | ||
<!-- comment2 for propertyWithTwoComments --> | ||
<propertyWithTwoComments>test-propertyWithTwoComments</propertyWithTwoComments> | ||
<!-- some nice comment --> | ||
<revision>1.2.3.4</revision> | ||
</properties> | ||
<build> | ||
<defaultGoal>verify</defaultGoal> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.codehaus.mojo</groupId> | ||
<artifactId>flatten-maven-plugin</artifactId> | ||
<configuration> | ||
<flattenMode>resolveCiFriendliesOnly</flattenMode> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<!-- plugin with multiple same node names --> | ||
<artifactId>maven-surefire-plugin</artifactId> | ||
<configuration> | ||
<excludes> | ||
<exclude>**/TestCircle.java</exclude> | ||
<exclude>**/TestCircle2.java</exclude> | ||
<!-- special info for TestSquare --> | ||
<exclude>**/TestSquare.java</exclude> | ||
<!-- special info for TestSquare2 --> | ||
<exclude>**/TestSquare2.java</exclude> | ||
</excludes> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
<profiles> | ||
<profile> | ||
<!-- another comment what the profile is doing --> | ||
<activation> | ||
<file> | ||
<exists>file.txt</exists> | ||
</file> | ||
</activation> | ||
</profile> | ||
<profile> | ||
<id>multiline-profile</id> | ||
<!-- comment with | ||
multiple lines | ||
in a profile --> | ||
<activation/> | ||
</profile> | ||
</profiles> | ||
</project> |