diff --git a/src/it/it-abstract-versions-report-001/invoker.properties b/src/it/it-abstract-versions-report-001/invoker.properties new file mode 100644 index 0000000000..a60d6037ef --- /dev/null +++ b/src/it/it-abstract-versions-report-001/invoker.properties @@ -0,0 +1,3 @@ +invoker.goals.1=${project.groupId}:${project.artifactId}:${project.version}:dependency-updates-report + +invoker.goals.2=${project.groupId}:${project.artifactId}:${project.version}:plugin-updates-report \ No newline at end of file diff --git a/src/it/it-abstract-versions-report-001/pom.xml b/src/it/it-abstract-versions-report-001/pom.xml new file mode 100644 index 0000000000..06cb3eb644 --- /dev/null +++ b/src/it/it-abstract-versions-report-001/pom.xml @@ -0,0 +1,33 @@ + + 4.0.0 + localhost + it-abstract-versions-report-001 + 1.0 + pom + abstract-versions-report + http://localhost/ + + + Testing command line invocation of dependency- and plugin-updates-report + + + + + localhost + dummy-api + 1.1 + + + + + + + localhost + dummy-maven-plugin + 1.0 + + + + + diff --git a/src/it/it-abstract-versions-report-001/verify.groovy b/src/it/it-abstract-versions-report-001/verify.groovy new file mode 100644 index 0000000000..da937db0ce --- /dev/null +++ b/src/it/it-abstract-versions-report-001/verify.groovy @@ -0,0 +1,15 @@ +dependencyUpdatesReport = new File( basedir, "target/site/dependency-updates-report.html" ) + +assert dependencyUpdatesReport.exists( ) + +// some basic (=not comprehensive) checks on the contents of the dependency report +assert dependencyUpdatesReport.text =~ /\b1\.1\.0-2\b/ // current version of the dependency +assert dependencyUpdatesReport.text =~ /\b3\.0\b/ // latest major available version + +pluginUpdatesReport = new File( basedir, "target/site/plugin-updates-report.html" ) + +assert pluginUpdatesReport.exists( ) + +// some basic (=not comprehensive) checks on the contents of the plugin report +assert pluginUpdatesReport.text =~ /\b1\.0\b/ // current version of the plugin +assert pluginUpdatesReport.text =~ /\b3\.1\b/ // latest major available version \ No newline at end of file diff --git a/src/main/java/org/codehaus/mojo/versions/AbstractVersionsReport.java b/src/main/java/org/codehaus/mojo/versions/AbstractVersionsReport.java index c60bfe56cc..61fb7b63b8 100644 --- a/src/main/java/org/codehaus/mojo/versions/AbstractVersionsReport.java +++ b/src/main/java/org/codehaus/mojo/versions/AbstractVersionsReport.java @@ -102,12 +102,6 @@ public abstract class AbstractVersionsReport @Parameter( defaultValue = "${project.pluginArtifactRepositories}", readonly = true ) protected List remotePluginRepositories; - /** - * @since 1.0-alpha-1 - */ - @Parameter( defaultValue = "${localRepository}", readonly = true ) - protected ArtifactRepository localRepository; - /** * @since 1.0-alpha-3 */