-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9fb2951
commit 8321211
Showing
8 changed files
with
167 additions
and
123 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
versions-maven-plugin/src/it/it-set-issue-1103/invoker.properties
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 @@ | ||
invoker.goals = ${project.groupId}:${project.artifactId}:${project.version}:set -DnewVersion=2 |
18 changes: 18 additions & 0 deletions
18
versions-maven-plugin/src/it/it-set-issue-1103/parent/child/grandchild/pom.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,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
|
||
<!-- ======================================================================== | ||
Basic project information | ||
======================================================================== --> | ||
|
||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>com.company.test</groupId> | ||
<artifactId>child</artifactId> | ||
<version>100-SNAPSHOT</version> | ||
</parent> | ||
|
||
<artifactId>grandchild</artifactId> | ||
|
||
</project> |
25 changes: 25 additions & 0 deletions
25
versions-maven-plugin/src/it/it-set-issue-1103/parent/child/pom.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,25 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
|
||
<!-- ======================================================================== | ||
Basic project information | ||
======================================================================== --> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>com.company.test</groupId> | ||
<artifactId>parent</artifactId> | ||
<version>100-SNAPSHOT</version> | ||
</parent> | ||
|
||
<artifactId>child</artifactId> | ||
<packaging>pom</packaging> | ||
|
||
<!-- ======================================================================== | ||
Multi-Module Build: list of child modules | ||
======================================================================== --> | ||
<modules> | ||
<module>grandchild</module> | ||
</modules> | ||
|
||
</project> |
26 changes: 26 additions & 0 deletions
26
versions-maven-plugin/src/it/it-set-issue-1103/parent/pom.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,26 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
|
||
<!-- ======================================================================== | ||
Basic project information | ||
======================================================================== --> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>com.company.test</groupId> | ||
<artifactId>grandparent</artifactId> | ||
<version>1</version> | ||
</parent> | ||
|
||
<artifactId>parent</artifactId> | ||
<version>100-SNAPSHOT</version> | ||
<packaging>pom</packaging> | ||
|
||
<!-- ======================================================================== | ||
Multi-Module Build: list of child modules | ||
======================================================================== --> | ||
<modules> | ||
<module>child</module> | ||
</modules> | ||
|
||
</project> |
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,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<!-- ======================================================================= | ||
Basic project information | ||
======================================================================== --> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>com.company.test</groupId> | ||
<artifactId>grandparent</artifactId> | ||
<version>1</version> | ||
<packaging>pom</packaging> | ||
|
||
<url>https://github.com/mojohaus/versions/issues/1103</url> | ||
|
||
<!-- ======================================================================== | ||
Multi-Module Build: list of child modules | ||
======================================================================== --> | ||
<modules> | ||
<module>parent</module> | ||
</modules> | ||
|
||
</project> |
14 changes: 14 additions & 0 deletions
14
versions-maven-plugin/src/it/it-set-issue-1103/verify.groovy
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,14 @@ | ||
import groovy.xml.XmlSlurper | ||
|
||
def project = new XmlSlurper().parse(new File(basedir, 'pom.xml')) | ||
assert project.version == '2' | ||
|
||
def parent = new XmlSlurper().parse(new File(basedir, 'parent/pom.xml')) | ||
assert parent.parent.version == '2' | ||
assert parent.version == '100-SNAPSHOT' | ||
|
||
def child = new XmlSlurper().parse(new File(basedir, 'parent/child/pom.xml')) | ||
assert child.parent.version == '100-SNAPSHOT' | ||
|
||
def grandchild = new XmlSlurper().parse(new File(basedir, 'parent/child/grandchild/pom.xml')) | ||
assert grandchild.parent.version == '100-SNAPSHOT' |
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
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