You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2020/10/03 14:49:59 UTC
[maven-integration-testing] 02/02: Explicitly igonre Plexus Utils
in 3.7.0
This is an automated email from the ASF dual-hosted git repository.
michaelo pushed a commit to branch MNG-6965
in repository https://gitbox.apache.org/repos/asf/maven-integration-testing.git
commit 0c1c8ea9ebb44e60513bb03b2910a2f78eb8f935
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Sat Oct 3 16:49:44 2020 +0200
Explicitly igonre Plexus Utils in 3.7.0
---
.../maven/it/MavenITmng5783PluginDependencyFiltering.java | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5783PluginDependencyFiltering.java b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5783PluginDependencyFiltering.java
index ec5242c..17efc24 100644
--- a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5783PluginDependencyFiltering.java
+++ b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5783PluginDependencyFiltering.java
@@ -31,10 +31,20 @@ public class MavenITmng5783PluginDependencyFiltering
// Note that plugin dependencies always include plugin itself and plexus-utils
List<String> dependencies = verifier.loadLines( "target/dependencies.txt", "UTF-8" );
- assertEquals( 3, dependencies.size() );
+ if ( matchesVersionRange( "(,3.7.0)" ) )
+ {
+ assertEquals( 3, dependencies.size() );
+ }
+ else
+ {
+ assertEquals( 2, dependencies.size() );
+ }
assertEquals( "mng-5783-plugin-dependency-filtering:mng-5783-plugin-dependency-filtering-plugin:maven-plugin:0.1",
dependencies.get( 0 ) );
assertEquals( "org.slf4j:slf4j-api:jar:1.7.5", dependencies.get( 1 ) );
- assertEquals( "org.codehaus.plexus:plexus-utils:jar:1.1", dependencies.get( 2 ) );
+ if ( matchesVersionRange( "(,3.7.0)" ) )
+ {
+ assertEquals( "org.codehaus.plexus:plexus-utils:jar:1.1", dependencies.get( 2 ) );
+ }
}
}