forked from mojohaus/versions
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed mojohaus#258: Adding plugin and plugin management dependency in…
…cludes/excludes
- Loading branch information
Showing
7 changed files
with
251 additions
and
208 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
.../it-display-dependency-updates-issue-258-dependencyIncludesAndExcludes/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,7 @@ | ||
invoker.goals.1=${project.groupId}:${project.artifactId}:${project.version}:display-dependency-updates -Dverbose=true -Dversions.outputFile=./output1.txt -DoutputEncoding=UTF-8 -DprocessPluginDependenciesInPluginManagement=false -DpluginDependencyIncludes=localhost:dummy-api | ||
|
||
invoker.goals.2=${project.groupId}:${project.artifactId}:${project.version}:display-dependency-updates -Dverbose=true -Dversions.outputFile=./output2.txt -DoutputEncoding=UTF-8 -DprocessPluginDependenciesInPluginManagement=false -DpluginDependencyExcludes=localhost:dummy-api | ||
|
||
invoker.goals.3=${project.groupId}:${project.artifactId}:${project.version}:display-dependency-updates -Dverbose=true -Dversions.outputFile=./output3.txt -DoutputEncoding=UTF-8 -DprocessPluginDependencies=false -DpluginManagementDependencyIncludes=localhost:dummy-impl | ||
|
||
invoker.goals.4=${project.groupId}:${project.artifactId}:${project.version}:display-dependency-updates -Dverbose=true -Dversions.outputFile=./output4.txt -DoutputEncoding=UTF-8 -DprocessPluginDependencies=false -DpluginManagementDependencyExcludes=localhost:dummy-impl |
47 changes: 47 additions & 0 deletions
47
src/it/it-display-dependency-updates-issue-258-dependencyIncludesAndExcludes/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,47 @@ | ||
<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> | ||
<groupId>localhost</groupId> | ||
<artifactId>it-display-dependency-updates-issue-258-dependencyIncludesAndExcludes</artifactId> | ||
<version>1.0</version> | ||
<packaging>pom</packaging> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>localhost</groupId> | ||
<artifactId>dummy-maven-plugin</artifactId> | ||
<version>1.0</version> | ||
<dependencies> | ||
<dependency> | ||
<groupId>localhost</groupId> | ||
<artifactId>dummy-api</artifactId> | ||
<version>1.0</version> | ||
</dependency> | ||
</dependencies> | ||
</plugin> | ||
</plugins> | ||
<pluginManagement> | ||
<plugins> | ||
<plugin> | ||
<groupId>localhost</groupId> | ||
<artifactId>dummy-maven-plugin</artifactId> | ||
<version>1.0</version> | ||
<dependencies> | ||
<dependency> | ||
<groupId>localhost</groupId> | ||
<artifactId>dummy-impl</artifactId> | ||
<version>1.0</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>localhost</groupId> | ||
<artifactId>dummy-parent2</artifactId> | ||
<version>1.0</version> | ||
</dependency> | ||
</dependencies> | ||
</plugin> | ||
</plugins> | ||
</pluginManagement> | ||
</build> | ||
</project> |
15 changes: 15 additions & 0 deletions
15
src/it/it-display-dependency-updates-issue-258-dependencyIncludesAndExcludes/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,15 @@ | ||
output = new File(basedir, "output1.txt").text | ||
assert output =~ /localhost:dummy-api/ | ||
assert output !=~ /localhost:dummy-impl/ | ||
|
||
output = new File(basedir, "output2.txt").text | ||
assert output !=~ /localhost:dummy-api/ | ||
assert output =~ /localhost:dummy-impl/ | ||
|
||
output = new File(basedir, "output3.txt").text | ||
assert output =~ /localhost:dummy-impl/ | ||
assert output !=~ /localhost:dummy-parent2/ | ||
|
||
output = new File(basedir, "output4.txt").text | ||
assert output !=~ /localhost:dummy-impl/ | ||
assert output =~ /localhost:dummy-parent2/ |
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
94 changes: 0 additions & 94 deletions
94
src/test/java/org/codehaus/mojo/versions/DisplayDependencyUpdatesMojoTest.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.