-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correct message if the latest version of parent is used for update-pa…
…rent Displaying "No versions found" can be confusing
- Loading branch information
1 parent
220c4ef
commit a4dba03
Showing
4 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
versions-maven-plugin/src/it/it-update-parent-latest-version/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}:update-parent |
16 changes: 16 additions & 0 deletions
16
versions-maven-plugin/src/it/it-update-parent-latest-version/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,16 @@ | ||
<?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/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>localhost</groupId> | ||
<artifactId>dummy-parent4</artifactId> | ||
<version>70</version> | ||
</parent> | ||
|
||
<groupId>localhsot</groupId> | ||
<artifactId>issue-670</artifactId> | ||
<version>0.31-SNAPSHOT</version> | ||
<packaging>pom</packaging> | ||
|
||
</project> |
10 changes: 10 additions & 0 deletions
10
versions-maven-plugin/src/it/it-update-parent-latest-version/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,10 @@ | ||
|
||
import groovy.xml.XmlSlurper | ||
|
||
def project = new XmlSlurper().parse( new File( basedir, 'pom.xml' ) ) | ||
assert project.parent.version == '70' | ||
|
||
|
||
def buildLog = new File( basedir, "build.log") | ||
|
||
assert buildLog.text.contains( '[INFO] The parent project is the latest version') |
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