diff --git a/its/core-integration-tests/pom.xml b/its/core-integration-tests/pom.xml index c3c81b6404..3196dc5cd0 100644 --- a/its/core-integration-tests/pom.xml +++ b/its/core-integration-tests/pom.xml @@ -40,6 +40,18 @@ under the License. + + junit + junit + 3.8.2 + + + + org.codehaus.plexus + plexus-utils + 1.1 + + org.apache.maven.its maven-integration-test-helper diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0023Test.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0023Test.java index b66436c2dc..fe662e935b 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0023Test.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0023Test.java @@ -2,7 +2,6 @@ package org.apache.maven.integrationtests; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import java.io.File; import java.util.Properties; diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0026Test.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0026Test.java index e88f361cda..de1ab6db5b 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0026Test.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0026Test.java @@ -1,6 +1,5 @@ package org.apache.maven.integrationtests; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -11,7 +10,6 @@ public class MavenIT0026Test extends AbstractMavenIntegrationTestCase { public MavenIT0026Test() - throws InvalidVersionSpecificationException { super( "[,2.99.99)" ); } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0031Test.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0031Test.java index 403e878361..6a9d4bdeb5 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0031Test.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0031Test.java @@ -1,6 +1,5 @@ package org.apache.maven.integrationtests; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -13,7 +12,6 @@ public class MavenIT0031Test extends AbstractMavenIntegrationTestCase { public MavenIT0031Test() - throws InvalidVersionSpecificationException { } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0051Test.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0051Test.java index 29e92c050c..b720d14cd8 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0051Test.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0051Test.java @@ -2,7 +2,6 @@ package org.apache.maven.integrationtests; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import java.io.File; import java.util.ArrayList; @@ -12,7 +11,6 @@ public class MavenIT0051Test extends AbstractMavenIntegrationTestCase { public MavenIT0051Test() - throws InvalidVersionSpecificationException { super( "[,2.99.99)" ); } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0090Test.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0090Test.java index 478dcf00db..699fa00bee 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0090Test.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0090Test.java @@ -2,7 +2,6 @@ package org.apache.maven.integrationtests; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import java.io.File; import java.util.HashMap; diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0092Test.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0092Test.java index d9a5f32d1b..ab2c880fa3 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0092Test.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0092Test.java @@ -2,7 +2,6 @@ package org.apache.maven.integrationtests; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import java.io.File; import java.util.List; diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0095Test.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0095Test.java index 37c833757f..b7d556c659 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0095Test.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0095Test.java @@ -2,7 +2,6 @@ package org.apache.maven.integrationtests; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import java.io.File; import java.util.ArrayList; @@ -12,7 +11,6 @@ public class MavenIT0095Test extends AbstractMavenIntegrationTestCase { public MavenIT0095Test() - throws InvalidVersionSpecificationException { super( "[,2.99.99)" ); } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0111PluginsThatRequireAResourceFromAnExtensionTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0111PluginsThatRequireAResourceFromAnExtensionTest.java index e8e3fc8899..2fe418bbb7 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0111PluginsThatRequireAResourceFromAnExtensionTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0111PluginsThatRequireAResourceFromAnExtensionTest.java @@ -1,6 +1,5 @@ package org.apache.maven.integrationtests; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import java.io.File; import java.util.List; import java.util.ArrayList; @@ -12,7 +11,6 @@ public class MavenIT0111PluginsThatRequireAResourceFromAnExtensionTest extends AbstractMavenIntegrationTestCase { public MavenIT0111PluginsThatRequireAResourceFromAnExtensionTest() - throws InvalidVersionSpecificationException { super( "(,2.99.99)" ); } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0114ExtensionThatProvidesResources.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0114ExtensionThatProvidesResources.java index 93198bb31e..6827e78e0a 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0114ExtensionThatProvidesResources.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0114ExtensionThatProvidesResources.java @@ -1,6 +1,5 @@ package org.apache.maven.integrationtests; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -12,7 +11,6 @@ public class MavenIT0114ExtensionThatProvidesResources extends AbstractMavenIntegrationTestCase { public MavenIT0114ExtensionThatProvidesResources() - throws InvalidVersionSpecificationException { super( "[,2.99.99)" ); } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0130CleanLifecycleTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0130CleanLifecycleTest.java index b0564863a8..b1852cbd79 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0130CleanLifecycleTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0130CleanLifecycleTest.java @@ -21,7 +21,6 @@ package org.apache.maven.integrationtests; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import java.io.File; @@ -35,7 +34,6 @@ public class MavenIT0130CleanLifecycleTest { public MavenIT0130CleanLifecycleTest() - throws InvalidVersionSpecificationException { super( "[2.0.0,)" ); } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0131SiteLifecycleTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0131SiteLifecycleTest.java index cb701b8087..3c7edc3e82 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0131SiteLifecycleTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0131SiteLifecycleTest.java @@ -21,7 +21,6 @@ package org.apache.maven.integrationtests; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import java.io.File; @@ -35,7 +34,6 @@ public class MavenIT0131SiteLifecycleTest { public MavenIT0131SiteLifecycleTest() - throws InvalidVersionSpecificationException { super( "[2.0.0,)" ); } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0132PomLifecycleTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0132PomLifecycleTest.java index 12d0191c84..fe46b71022 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0132PomLifecycleTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0132PomLifecycleTest.java @@ -21,7 +21,6 @@ package org.apache.maven.integrationtests; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import java.io.File; @@ -35,7 +34,6 @@ public class MavenIT0132PomLifecycleTest { public MavenIT0132PomLifecycleTest() - throws InvalidVersionSpecificationException { super( "[2.0.0,)" ); } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0133JarLifecycleTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0133JarLifecycleTest.java index db188bd56f..804a3b6ecb 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0133JarLifecycleTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0133JarLifecycleTest.java @@ -21,7 +21,6 @@ package org.apache.maven.integrationtests; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import java.io.File; @@ -35,7 +34,6 @@ public class MavenIT0133JarLifecycleTest { public MavenIT0133JarLifecycleTest() - throws InvalidVersionSpecificationException { super( "[2.0.0,)" ); } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0134WarLifecycleTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0134WarLifecycleTest.java index 39c94b6450..9517aa76a3 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0134WarLifecycleTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0134WarLifecycleTest.java @@ -21,7 +21,6 @@ package org.apache.maven.integrationtests; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import java.io.File; @@ -35,7 +34,6 @@ public class MavenIT0134WarLifecycleTest { public MavenIT0134WarLifecycleTest() - throws InvalidVersionSpecificationException { super( "[2.0.0,)" ); } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0135EjbLifecycleTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0135EjbLifecycleTest.java index a32a48181a..be220b4e88 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0135EjbLifecycleTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0135EjbLifecycleTest.java @@ -21,7 +21,6 @@ package org.apache.maven.integrationtests; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import java.io.File; @@ -35,7 +34,6 @@ public class MavenIT0135EjbLifecycleTest { public MavenIT0135EjbLifecycleTest() - throws InvalidVersionSpecificationException { super( "[2.0.0,)" ); } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0136RarLifecycleTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0136RarLifecycleTest.java index 99bace7606..d00b9a064f 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0136RarLifecycleTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0136RarLifecycleTest.java @@ -21,7 +21,6 @@ package org.apache.maven.integrationtests; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import java.io.File; @@ -35,7 +34,6 @@ public class MavenIT0136RarLifecycleTest { public MavenIT0136RarLifecycleTest() - throws InvalidVersionSpecificationException { super( "[2.0.0,)" ); } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0137EarLifecycleTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0137EarLifecycleTest.java index 07f370160b..e8b6f62197 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0137EarLifecycleTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0137EarLifecycleTest.java @@ -21,7 +21,6 @@ package org.apache.maven.integrationtests; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import java.io.File; @@ -35,7 +34,6 @@ public class MavenIT0137EarLifecycleTest { public MavenIT0137EarLifecycleTest() - throws InvalidVersionSpecificationException { super( "[2.0.0,)" ); } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0138PluginLifecycleTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0138PluginLifecycleTest.java index 4b11c34c5e..c192399b50 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0138PluginLifecycleTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0138PluginLifecycleTest.java @@ -21,7 +21,6 @@ package org.apache.maven.integrationtests; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import java.io.File; @@ -35,7 +34,6 @@ public class MavenIT0138PluginLifecycleTest { public MavenIT0138PluginLifecycleTest() - throws InvalidVersionSpecificationException { super( "[2.0.0,)" ); } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng1412DependenciesOrderTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng1412DependenciesOrderTest.java index a5d463c20d..f407ff45cb 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng1412DependenciesOrderTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng1412DependenciesOrderTest.java @@ -1,6 +1,5 @@ package org.apache.maven.integrationtests; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -18,7 +17,6 @@ public class MavenITmng1412DependenciesOrderTest extends AbstractMavenIntegrationTestCase { public MavenITmng1412DependenciesOrderTest() - throws InvalidVersionSpecificationException { super( "(2.0.8,)" ); // 2.0.9+ } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng1493NonStandardModulePomNames.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng1493NonStandardModulePomNames.java index 16064d312a..6253fa8608 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng1493NonStandardModulePomNames.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng1493NonStandardModulePomNames.java @@ -4,8 +4,6 @@ import java.io.File; import java.util.ArrayList; import java.util.List; -import org.apache.maven.integrationtests.AbstractMavenIntegrationTestCase; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -13,7 +11,6 @@ public class MavenITmng1493NonStandardModulePomNames extends AbstractMavenIntegrationTestCase { public MavenITmng1493NonStandardModulePomNames() - throws InvalidVersionSpecificationException { super( "(2.0.8,)" ); // 2.0.9+ (including snapshots) } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2045testJarDependenciesBrokenInReactorTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2045testJarDependenciesBrokenInReactorTest.java index 867320796f..8e24da434b 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2045testJarDependenciesBrokenInReactorTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2045testJarDependenciesBrokenInReactorTest.java @@ -4,8 +4,6 @@ import java.io.File; import java.util.ArrayList; import java.util.List; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; -import org.apache.maven.integrationtests.AbstractMavenIntegrationTestCase; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -17,10 +15,11 @@ import org.apache.maven.it.util.ResourceExtractor; * @author Brian Fox * @author mikko.koponen@ri.fi */ -public class MavenITmng2045testJarDependenciesBrokenInReactorTest extends AbstractMavenIntegrationTestCase { +public class MavenITmng2045testJarDependenciesBrokenInReactorTest + extends AbstractMavenIntegrationTestCase +{ public MavenITmng2045testJarDependenciesBrokenInReactorTest() - throws InvalidVersionSpecificationException { super( "(2.0.7,)" ); // 2.0.8+ } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2068ReactorRelativeParentsTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2068ReactorRelativeParentsTest.java index d07e36c280..d53280a6a4 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2068ReactorRelativeParentsTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2068ReactorRelativeParentsTest.java @@ -23,8 +23,6 @@ import java.io.File; import java.util.ArrayList; import java.util.List; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; -import org.apache.maven.integrationtests.AbstractMavenIntegrationTestCase; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -42,7 +40,6 @@ public class MavenITmng2068ReactorRelativeParentsTest extends AbstractMavenIntegrationTestCase { public MavenITmng2068ReactorRelativeParentsTest() - throws InvalidVersionSpecificationException { super( "(2.0.6,)" ); // only test in 2.0.7+ } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2123VersionRangeDependencyTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2123VersionRangeDependencyTest.java index 2abafe01d7..8a4890ed0d 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2123VersionRangeDependencyTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2123VersionRangeDependencyTest.java @@ -4,8 +4,6 @@ import java.io.File; import java.util.ArrayList; import java.util.List; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; -import org.apache.maven.integrationtests.AbstractMavenIntegrationTestCase; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -15,7 +13,6 @@ public class MavenITmng2123VersionRangeDependencyTest { public MavenITmng2123VersionRangeDependencyTest() - throws InvalidVersionSpecificationException { super( "(2.0.8,)" ); } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2234ActiveProfilesFromSettingsTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2234ActiveProfilesFromSettingsTest.java index 696186d644..e3bb79a19e 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2234ActiveProfilesFromSettingsTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2234ActiveProfilesFromSettingsTest.java @@ -1,6 +1,5 @@ package org.apache.maven.integrationtests; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -12,7 +11,6 @@ public class MavenITmng2234ActiveProfilesFromSettingsTest extends AbstractMavenIntegrationTestCase { public MavenITmng2234ActiveProfilesFromSettingsTest() - throws InvalidVersionSpecificationException { super( "(2.0.8,)" ); } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2254PomEncodingTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2254PomEncodingTest.java index 03ee2c69c5..863d0b8922 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2254PomEncodingTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2254PomEncodingTest.java @@ -4,8 +4,6 @@ import java.io.File; import java.util.ArrayList; import java.util.List; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; -import org.apache.maven.integrationtests.AbstractMavenIntegrationTestCase; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -19,7 +17,6 @@ public class MavenITmng2254PomEncodingTest extends AbstractMavenIntegrationTestCase { public MavenITmng2254PomEncodingTest() - throws InvalidVersionSpecificationException { super( "(2.0.7,)" ); // 2.0.8+ } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2277AggregatorAndResolutionPluginsTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2277AggregatorAndResolutionPluginsTest.java index d4d0d9d3cf..402c285198 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2277AggregatorAndResolutionPluginsTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2277AggregatorAndResolutionPluginsTest.java @@ -4,8 +4,6 @@ import java.io.File; import java.util.ArrayList; import java.util.List; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; -import org.apache.maven.integrationtests.AbstractMavenIntegrationTestCase; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -17,7 +15,6 @@ public class MavenITmng2277AggregatorAndResolutionPluginsTest extends AbstractMavenIntegrationTestCase { public MavenITmng2277AggregatorAndResolutionPluginsTest() - throws InvalidVersionSpecificationException { super( "(2.0.7,)" ); // 2.0.8+ } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2339BadProjectInterpolationTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2339BadProjectInterpolationTest.java index 07959243de..2946bed360 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2339BadProjectInterpolationTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2339BadProjectInterpolationTest.java @@ -30,7 +30,6 @@ public class MavenITmng2339BadProjectInterpolationTest extends AbstractMavenIntegrationTestCase { public MavenITmng2339BadProjectInterpolationTest() - throws org.apache.maven.artifact.versioning.InvalidVersionSpecificationException { super( "(2.0.8,)" ); // 2.0.9+ } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2562Timestamp.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2562Timestamp.java index 887d69f0f1..7606f93470 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2562Timestamp.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2562Timestamp.java @@ -1,6 +1,5 @@ package org.apache.maven.integrationtests; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.util.ResourceExtractor; import org.apache.maven.it.Verifier; @@ -9,7 +8,6 @@ import java.io.File; public class MavenITmng2562Timestamp extends AbstractMavenIntegrationTestCase { public MavenITmng2562Timestamp() - throws InvalidVersionSpecificationException { super( "(2.0.99,)"); // 2.1.0+ only } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2695OfflinePluginSnapshotsTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2695OfflinePluginSnapshotsTest.java index 2c1d2219d1..7bd1e1e8a6 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2695OfflinePluginSnapshotsTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2695OfflinePluginSnapshotsTest.java @@ -19,7 +19,6 @@ package org.apache.maven.integrationtests; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.VerificationException; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.FileUtils; @@ -42,7 +41,6 @@ public class MavenITmng2695OfflinePluginSnapshotsTest extends AbstractMavenIntegrationTestCase { public MavenITmng2695OfflinePluginSnapshotsTest() - throws InvalidVersionSpecificationException { super( "(2.0.8,)" ); // only test in 2.0.9+ } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2739RequiredRepositoryElements.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2739RequiredRepositoryElements.java index 07c77294de..491f5baef1 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2739RequiredRepositoryElements.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2739RequiredRepositoryElements.java @@ -19,7 +19,6 @@ package org.apache.maven.integrationtests; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.VerificationException; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -41,7 +40,6 @@ public class MavenITmng2739RequiredRepositoryElements extends AbstractMavenIntegrationTestCase { public MavenITmng2739RequiredRepositoryElements() - throws InvalidVersionSpecificationException { super( "(2.0.9,)" ); // only test in 2.0.9+ } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2744checksumVerificationTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2744checksumVerificationTest.java index 65629ed2ae..1081bfee42 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2744checksumVerificationTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2744checksumVerificationTest.java @@ -4,8 +4,6 @@ import java.io.File; import java.util.ArrayList; import java.util.List; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; -import org.apache.maven.integrationtests.AbstractMavenIntegrationTestCase; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -17,7 +15,6 @@ public class MavenITmng2744checksumVerificationTest { public MavenITmng2744checksumVerificationTest() - throws InvalidVersionSpecificationException { super( "(2.0.8,)" ); // only test in 2.0.9+ } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2861RelocationsAndRanges.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2861RelocationsAndRanges.java index c28fc7dcb2..3fe3da7866 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2861RelocationsAndRanges.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2861RelocationsAndRanges.java @@ -1,6 +1,5 @@ package org.apache.maven.integrationtests; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -11,7 +10,6 @@ public class MavenITmng2861RelocationsAndRanges extends AbstractMavenIntegrationTestCase { public MavenITmng2861RelocationsAndRanges() - throws InvalidVersionSpecificationException { super( "(2.0.8,)" ); } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2883LegacyRepoOfflineTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2883LegacyRepoOfflineTest.java index 5621e1f3dd..c99f381d40 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2883LegacyRepoOfflineTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2883LegacyRepoOfflineTest.java @@ -1,6 +1,5 @@ package org.apache.maven.integrationtests; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.VerificationException; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.IOUtil; @@ -34,7 +33,6 @@ public class MavenITmng2883LegacyRepoOfflineTest extends AbstractMavenIntegrationTestCase { public MavenITmng2883LegacyRepoOfflineTest() - throws InvalidVersionSpecificationException { super( "(2.0.4,)" ); } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2972OverridePluginDependency.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2972OverridePluginDependency.java index 0edd8cfbc9..4982040da7 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2972OverridePluginDependency.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2972OverridePluginDependency.java @@ -7,8 +7,6 @@ import java.util.List; import junit.framework.Assert; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; -import org.apache.maven.integrationtests.AbstractMavenIntegrationTestCase; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.FileUtils; import org.apache.maven.it.util.ResourceExtractor; @@ -17,7 +15,6 @@ public class MavenITmng2972OverridePluginDependency extends AbstractMavenIntegrationTestCase { public MavenITmng2972OverridePluginDependency() - throws InvalidVersionSpecificationException { super( "(2.0.8,)" ); } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3052DepRepoAggregationTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3052DepRepoAggregationTest.java index 099944fbad..8bb5adfe2c 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3052DepRepoAggregationTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3052DepRepoAggregationTest.java @@ -19,7 +19,6 @@ package org.apache.maven.integrationtests; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.FileUtils; import org.apache.maven.it.util.IOUtil; @@ -51,7 +50,6 @@ public class MavenITmng3052DepRepoAggregationTest extends AbstractMavenIntegrationTestCase { public MavenITmng3052DepRepoAggregationTest() - throws InvalidVersionSpecificationException { super( "(2.0.9,)" ); // only test in 2.0.10+ } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3099SettingsProfilesWithNoPOM.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3099SettingsProfilesWithNoPOM.java index 13f0c63d0f..53b3418578 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3099SettingsProfilesWithNoPOM.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3099SettingsProfilesWithNoPOM.java @@ -1,6 +1,5 @@ package org.apache.maven.integrationtests; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -26,7 +25,6 @@ public class MavenITmng3099SettingsProfilesWithNoPOM extends AbstractMavenIntegrationTestCase { public MavenITmng3099SettingsProfilesWithNoPOM() - throws InvalidVersionSpecificationException { super( "(2.0.8,)" ); // 2.0.9+ } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3106ProfileMultipleActivators.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3106ProfileMultipleActivators.java index 778a6c5ab7..e769760f4d 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3106ProfileMultipleActivators.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3106ProfileMultipleActivators.java @@ -4,7 +4,6 @@ import java.io.File; import java.util.ArrayList; import java.util.List; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -17,7 +16,6 @@ public class MavenITmng3106ProfileMultipleActivators extends AbstractMavenIntegrationTestCase { public MavenITmng3106ProfileMultipleActivators() - throws InvalidVersionSpecificationException { super( "(2.0.9,)" ); } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3220ImportScopeTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3220ImportScopeTest.java index 26ec99eedd..a5761c1f69 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3220ImportScopeTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3220ImportScopeTest.java @@ -1,6 +1,5 @@ package org.apache.maven.integrationtests; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.VerificationException; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -13,7 +12,6 @@ public class MavenITmng3220ImportScopeTest extends AbstractMavenIntegrationTestCase { public MavenITmng3220ImportScopeTest() - throws InvalidVersionSpecificationException { super( "(2.0.8,2.99.99)" ); } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3221InfiniteForking.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3221InfiniteForking.java index 1972609f0d..bbd6220043 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3221InfiniteForking.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3221InfiniteForking.java @@ -1,6 +1,5 @@ package org.apache.maven.integrationtests; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -12,7 +11,6 @@ public class MavenITmng3221InfiniteForking extends AbstractMavenIntegrationTestCase { public MavenITmng3221InfiniteForking() - throws InvalidVersionSpecificationException { super( "(2.0.8,2.99.99)" ); } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3268MultipleDashPCommandLine.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3268MultipleDashPCommandLine.java index 3177b51370..a283bf730f 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3268MultipleDashPCommandLine.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3268MultipleDashPCommandLine.java @@ -1,6 +1,5 @@ package org.apache.maven.integrationtests; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -12,7 +11,6 @@ public class MavenITmng3268MultipleDashPCommandLine extends AbstractMavenIntegrationTestCase { public MavenITmng3268MultipleDashPCommandLine() - throws InvalidVersionSpecificationException { super( "(2.0.9,)" ); } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3284UsingCachedPluginsTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3284UsingCachedPluginsTest.java index 42d05edccb..64c136dbec 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3284UsingCachedPluginsTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3284UsingCachedPluginsTest.java @@ -6,7 +6,6 @@ import java.util.List; import junit.framework.Assert; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -17,7 +16,6 @@ public class MavenITmng3284UsingCachedPluginsTest extends AbstractMavenIntegrationTestCase { public MavenITmng3284UsingCachedPluginsTest() - throws InvalidVersionSpecificationException { super( "(2.0.8,)" ); } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3314OfflineSnapshotsTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3314OfflineSnapshotsTest.java index f939136620..07d9706059 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3314OfflineSnapshotsTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3314OfflineSnapshotsTest.java @@ -19,7 +19,6 @@ package org.apache.maven.integrationtests; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.VerificationException; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.FileUtils; @@ -42,7 +41,6 @@ public class MavenITmng3314OfflineSnapshotsTest extends AbstractMavenIntegrationTestCase { public MavenITmng3314OfflineSnapshotsTest() - throws InvalidVersionSpecificationException { super( "(2.0.8,)" ); // only test in 2.0.9+ } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3331ModulePathNormalization.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3331ModulePathNormalization.java index 294ea70715..9bffc75320 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3331ModulePathNormalization.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3331ModulePathNormalization.java @@ -4,7 +4,6 @@ import java.io.File; import java.util.ArrayList; import java.util.List; -import org.apache.maven.integrationtests.AbstractMavenIntegrationTestCase; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3355TranslatedPathInterpolationTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3355TranslatedPathInterpolationTest.java index 853446c8e4..4cebbbb16e 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3355TranslatedPathInterpolationTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3355TranslatedPathInterpolationTest.java @@ -30,7 +30,6 @@ public class MavenITmng3355TranslatedPathInterpolationTest extends AbstractMavenIntegrationTestCase { public MavenITmng3355TranslatedPathInterpolationTest() - throws org.apache.maven.artifact.versioning.InvalidVersionSpecificationException { super( "(2.0.8,)" ); // 2.0.9+ } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3380ManagedRelocatedTransdepsTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3380ManagedRelocatedTransdepsTest.java index 495112553d..d520116c5b 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3380ManagedRelocatedTransdepsTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3380ManagedRelocatedTransdepsTest.java @@ -1,6 +1,5 @@ package org.apache.maven.integrationtests; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -19,13 +18,17 @@ import java.io.File; * */ public class MavenITmng3380ManagedRelocatedTransdepsTest - extends AbstractMavenIntegrationTestCase { + extends AbstractMavenIntegrationTestCase +{ + public MavenITmng3380ManagedRelocatedTransdepsTest() - throws InvalidVersionSpecificationException { + { super("(2.0.9,)"); } - public void testitMNG3380() throws Exception { + public void testitMNG3380() + throws Exception + { // compute test directory File testDir = ResourceExtractor.simpleExtractResources(getClass(), @@ -35,7 +38,7 @@ public class MavenITmng3380ManagedRelocatedTransdepsTest deleteArtifacts( verifier ); - installDependencies( testDir ); + installDependencies( testDir ); String path = testDir.getAbsolutePath() // + "/consumer"; diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3391ImportScopeErrorScenariosTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3391ImportScopeErrorScenariosTest.java index d62527ec48..34acc0f27b 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3391ImportScopeErrorScenariosTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3391ImportScopeErrorScenariosTest.java @@ -1,6 +1,5 @@ package org.apache.maven.integrationtests; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -10,7 +9,6 @@ public class MavenITmng3391ImportScopeErrorScenariosTest extends AbstractMavenIntegrationTestCase { public MavenITmng3391ImportScopeErrorScenariosTest() - throws InvalidVersionSpecificationException { super( "(2.0.8,)" ); // only test in 2.0.9+ } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3394POMPluginVersionDominanceTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3394POMPluginVersionDominanceTest.java index 04fcdca597..37b7b5004c 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3394POMPluginVersionDominanceTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3394POMPluginVersionDominanceTest.java @@ -1,6 +1,5 @@ package org.apache.maven.integrationtests; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -20,10 +19,9 @@ public class MavenITmng3394POMPluginVersionDominanceTest extends AbstractMavenIntegrationTestCase { - private static final String BASEDIR_PREFIX = "/mng-3394-pomPluginVersionDominance/"; + private static final String BASEDIR_PREFIX = "/mng-3394-pomPluginVersionDominance/"; public MavenITmng3394POMPluginVersionDominanceTest() - throws InvalidVersionSpecificationException { super( "(2.0.8,)" ); // only test in 2.0.9+ } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3396DependencyManagementForOverConstrainedRanges.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3396DependencyManagementForOverConstrainedRanges.java index 75a3ee0033..e7ad570c96 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3396DependencyManagementForOverConstrainedRanges.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3396DependencyManagementForOverConstrainedRanges.java @@ -21,7 +21,6 @@ package org.apache.maven.integrationtests; import java.io.File; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -31,10 +30,9 @@ public class MavenITmng3396DependencyManagementForOverConstrainedRanges private static final String GROUP_ID = "org.apache.maven.its.mng3396"; public MavenITmng3396DependencyManagementForOverConstrainedRanges() - throws InvalidVersionSpecificationException -{ - super( "(2.0.8,)" ); // 2.0.9+ -} + { + super( "(2.0.8,)" ); // 2.0.9+ + } public void testitMNG3396() throws Exception diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3415JunkRepositoryMetadataTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3415JunkRepositoryMetadataTest.java index e5c1213fbf..ce7f628a13 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3415JunkRepositoryMetadataTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3415JunkRepositoryMetadataTest.java @@ -1,6 +1,5 @@ package org.apache.maven.integrationtests; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.VerificationException; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.FileUtils; @@ -37,7 +36,6 @@ public class MavenITmng3415JunkRepositoryMetadataTest private static final String RESOURCE_BASE = "/mng-3415-junk-repository-metadata"; public MavenITmng3415JunkRepositoryMetadataTest() - throws InvalidVersionSpecificationException { // we're going to control the test execution according to the maven version present within each test method. // all methods should execute as long as we're using maven 2.0.9+, but the specific tests may vary a little @@ -267,7 +265,6 @@ public class MavenITmng3415JunkRepositoryMetadataTest * otherwise, use the new resolver-status.properties file (new artifact code). */ private File getUpdateCheckFile( File localRepo ) - throws InvalidVersionSpecificationException { File dir = new File( localRepo, "tests/missing/1.0-SNAPSHOT" ); diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3426PluginsClasspathOverrideTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3426PluginsClasspathOverrideTest.java index ed1c9cfc7c..9ea6ca7731 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3426PluginsClasspathOverrideTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3426PluginsClasspathOverrideTest.java @@ -19,7 +19,6 @@ package org.apache.maven.integrationtests; * under the License. */ -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.FileUtils; import org.apache.maven.it.util.ResourceExtractor; @@ -38,7 +37,6 @@ public class MavenITmng3426PluginsClasspathOverrideTest extends AbstractMavenIntegrationTestCase { public MavenITmng3426PluginsClasspathOverrideTest() - throws InvalidVersionSpecificationException { super( "(2.0.8,)" ); // 2.0.8+ } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3428PluginDescriptorArtifactsIncompleteTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3428PluginDescriptorArtifactsIncompleteTest.java index ba0b2c5304..89e5ca2e14 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3428PluginDescriptorArtifactsIncompleteTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3428PluginDescriptorArtifactsIncompleteTest.java @@ -1,6 +1,5 @@ package org.apache.maven.integrationtests; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -14,10 +13,10 @@ public class MavenITmng3428PluginDescriptorArtifactsIncompleteTest extends AbstractMavenIntegrationTestCase { public MavenITmng3428PluginDescriptorArtifactsIncompleteTest() - throws InvalidVersionSpecificationException { super( "(2.0.8,)" ); // 2.0.8+ } + public void testitMNG3428 () throws Exception { diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3441MetadataUpdatedFromDeploymentRepositoryTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3441MetadataUpdatedFromDeploymentRepositoryTest.java index 5700da7c66..637f7492a7 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3441MetadataUpdatedFromDeploymentRepositoryTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3441MetadataUpdatedFromDeploymentRepositoryTest.java @@ -1,6 +1,5 @@ package org.apache.maven.integrationtests; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.FileUtils; import org.apache.maven.it.util.ResourceExtractor; @@ -18,7 +17,6 @@ public class MavenITmng3441MetadataUpdatedFromDeploymentRepositoryTest extends AbstractMavenIntegrationTestCase { public MavenITmng3441MetadataUpdatedFromDeploymentRepositoryTest() - throws InvalidVersionSpecificationException { super( "(2.0.8,)" ); } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3473PluginReportCrash.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3473PluginReportCrash.java index b058cc79b9..3a54f2b80a 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3473PluginReportCrash.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3473PluginReportCrash.java @@ -1,6 +1,5 @@ package org.apache.maven.integrationtests; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.VerificationException; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -18,10 +17,10 @@ public class MavenITmng3473PluginReportCrash extends AbstractMavenIntegrationTestCase { public MavenITmng3473PluginReportCrash() - throws InvalidVersionSpecificationException { super( "(2.0.8,)" ); // >2.0.8 } + public void testitMNG3473 () throws Exception { diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3475BaseAlignedDir.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3475BaseAlignedDir.java index 316e99aa27..72bcdc0a65 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3475BaseAlignedDir.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3475BaseAlignedDir.java @@ -1,6 +1,5 @@ package org.apache.maven.integrationtests; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -11,7 +10,6 @@ public class MavenITmng3475BaseAlignedDir { public MavenITmng3475BaseAlignedDir() - throws InvalidVersionSpecificationException { super( "(2.0.99,)"); // 2.1.0+ only } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3485OverrideWagonExtensionTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3485OverrideWagonExtensionTest.java index d260624f44..78b07d21bb 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3485OverrideWagonExtensionTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3485OverrideWagonExtensionTest.java @@ -1,6 +1,5 @@ package org.apache.maven.integrationtests; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -12,7 +11,6 @@ public class MavenITmng3485OverrideWagonExtensionTest extends AbstractMavenIntegrationTestCase { public MavenITmng3485OverrideWagonExtensionTest() - throws InvalidVersionSpecificationException { super( "(2.0.8,2.99.99)" ); } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3498ForkToOtherMojoTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3498ForkToOtherMojoTest.java index e161e15176..c6b7117951 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3498ForkToOtherMojoTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3498ForkToOtherMojoTest.java @@ -37,7 +37,6 @@ public class MavenITmng3498ForkToOtherMojoTest extends AbstractMavenIntegrationTestCase { // public MavenITmng3498ForkToOtherMojoTest() -// throws InvalidVersionSpecificationException // { // super( "(2.0.8,)" ); // only test in 2.0.9+ // } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3503Xpp3ShadingTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3503Xpp3ShadingTest.java index 1b7109c3d9..31f2c5a0c2 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3503Xpp3ShadingTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3503Xpp3ShadingTest.java @@ -23,8 +23,6 @@ import java.io.File; import java.util.ArrayList; import java.util.List; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; -import org.apache.maven.integrationtests.AbstractMavenIntegrationTestCase; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -41,7 +39,6 @@ public class MavenITmng3503Xpp3ShadingTest extends AbstractMavenIntegrationTestCase { public MavenITmng3503Xpp3ShadingTest() - throws InvalidVersionSpecificationException { super( "(2.0.9,)" ); // only test in 2.0.9+ } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3530DynamicPOMInterpolationTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3530DynamicPOMInterpolationTest.java index 44b0c3fa8b..0cce4b4312 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3530DynamicPOMInterpolationTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3530DynamicPOMInterpolationTest.java @@ -19,7 +19,6 @@ package org.apache.maven.integrationtests; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -40,7 +39,6 @@ public class MavenITmng3530DynamicPOMInterpolationTest private static final String BASEDIR = "/mng-3530-dynamicPOMInterpolation/"; public MavenITmng3530DynamicPOMInterpolationTest() - throws InvalidVersionSpecificationException { super( "(2.0.9,)" ); // only test in 2.0.9+ } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3535SelfReferentialProperties.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3535SelfReferentialProperties.java index a5dae218dc..ab504fd00f 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3535SelfReferentialProperties.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3535SelfReferentialProperties.java @@ -1,6 +1,5 @@ package org.apache.maven.integrationtests; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -13,7 +12,6 @@ public class MavenITmng3535SelfReferentialProperties { public MavenITmng3535SelfReferentialProperties() - throws InvalidVersionSpecificationException { super( "(2.0.99,2.99.99)" ); } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3536AppendedAbsolutePaths.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3536AppendedAbsolutePaths.java index 162a9de482..79a074bada 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3536AppendedAbsolutePaths.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3536AppendedAbsolutePaths.java @@ -1,6 +1,5 @@ package org.apache.maven.integrationtests; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.util.ResourceExtractor; import org.apache.maven.it.Verifier; @@ -9,7 +8,6 @@ import java.io.File; public class MavenITmng3536AppendedAbsolutePaths extends AbstractMavenIntegrationTestCase { public MavenITmng3536AppendedAbsolutePaths() - throws InvalidVersionSpecificationException { super( "(2.0.99,)"); // 2.1.0+ only } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3545ProfileDeactivation.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3545ProfileDeactivation.java index f262a809f3..81b86ca943 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3545ProfileDeactivation.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3545ProfileDeactivation.java @@ -5,7 +5,6 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -17,7 +16,6 @@ public class MavenITmng3545ProfileDeactivation extends AbstractMavenIntegrationTestCase { public MavenITmng3545ProfileDeactivation() - throws InvalidVersionSpecificationException { super( "(2.0.9,)" ); } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3581PluginUsesWagonDependency.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3581PluginUsesWagonDependency.java index c2650aadfa..aeecba6058 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3581PluginUsesWagonDependency.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3581PluginUsesWagonDependency.java @@ -1,6 +1,5 @@ package org.apache.maven.integrationtests; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -10,7 +9,6 @@ public class MavenITmng3581PluginUsesWagonDependency extends AbstractMavenIntegrationTestCase { public MavenITmng3581PluginUsesWagonDependency() - throws InvalidVersionSpecificationException { // Not 2.0.9 super( "(,2.0.9),(2.0.9,)" ); diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3599useHttpProxyForWebDAV.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3599useHttpProxyForWebDAV.java index d4a799bfa1..4cc40c636d 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3599useHttpProxyForWebDAV.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3599useHttpProxyForWebDAV.java @@ -13,7 +13,6 @@ import org.apache.maven.it.Verifier; import org.apache.maven.it.util.FileUtils; import org.apache.maven.it.util.ResourceExtractor; import org.apache.maven.it.util.StringUtils; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.mortbay.jetty.Handler; import org.mortbay.jetty.Request; import org.mortbay.jetty.Server; diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3642DynamicResourcesTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3642DynamicResourcesTest.java index 834e3ac3f2..9a3a4b073f 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3642DynamicResourcesTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3642DynamicResourcesTest.java @@ -23,8 +23,6 @@ import java.io.File; import java.util.ArrayList; import java.util.List; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; -import org.apache.maven.integrationtests.AbstractMavenIntegrationTestCase; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -41,7 +39,6 @@ public class MavenITmng3642DynamicResourcesTest extends AbstractMavenIntegrationTestCase { public MavenITmng3642DynamicResourcesTest() - throws InvalidVersionSpecificationException { super( "(2.0.9,)" ); // only test in 2.0.9+ } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3645POMSyntaxErrorTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3645POMSyntaxErrorTest.java index 051f908e03..89cc6e341b 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3645POMSyntaxErrorTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3645POMSyntaxErrorTest.java @@ -19,7 +19,6 @@ package org.apache.maven.integrationtests; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.VerificationException; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -39,7 +38,6 @@ public class MavenITmng3645POMSyntaxErrorTest extends AbstractMavenIntegrationTestCase { public MavenITmng3645POMSyntaxErrorTest() - throws InvalidVersionSpecificationException { super( "(2.0.10,)" ); // only test in 2.0.10+ } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3652UserAgentHeader.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3652UserAgentHeader.java index 6d3d464b74..03f7c43a2e 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3652UserAgentHeader.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3652UserAgentHeader.java @@ -9,7 +9,6 @@ import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; import org.mortbay.jetty.Handler; @@ -27,7 +26,6 @@ public class MavenITmng3652UserAgentHeader private String userAgent; public MavenITmng3652UserAgentHeader() - throws InvalidVersionSpecificationException { super( "(2.0.9,2.99.99)" ); } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3667ResolveDepsWithBadPomVersionTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3667ResolveDepsWithBadPomVersionTest.java index f8b9bd1d60..ad2946c0fe 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3667ResolveDepsWithBadPomVersionTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3667ResolveDepsWithBadPomVersionTest.java @@ -23,8 +23,6 @@ import java.io.File; import java.util.ArrayList; import java.util.List; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; -import org.apache.maven.integrationtests.AbstractMavenIntegrationTestCase; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.FileUtils; import org.apache.maven.it.util.ResourceExtractor; @@ -42,7 +40,6 @@ public class MavenITmng3667ResolveDepsWithBadPomVersionTest extends AbstractMavenIntegrationTestCase { public MavenITmng3667ResolveDepsWithBadPomVersionTest() - throws InvalidVersionSpecificationException { super( "(2.0.9,)" ); // only test in 2.0.9+ } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3671PluginLevelDepInterpolationTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3671PluginLevelDepInterpolationTest.java index 98aad4d7e6..6eeb2df5ce 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3671PluginLevelDepInterpolationTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3671PluginLevelDepInterpolationTest.java @@ -23,8 +23,6 @@ import java.io.File; import java.util.ArrayList; import java.util.List; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; -import org.apache.maven.integrationtests.AbstractMavenIntegrationTestCase; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -43,7 +41,6 @@ public class MavenITmng3671PluginLevelDepInterpolationTest extends AbstractMavenIntegrationTestCase { public MavenITmng3671PluginLevelDepInterpolationTest() - throws InvalidVersionSpecificationException { super( "(2.0.8,)" ); // only test in 2.0.9+ } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3680InvalidDependencyPOMTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3680InvalidDependencyPOMTest.java index e255b2ce87..9d94b4e2ef 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3680InvalidDependencyPOMTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3680InvalidDependencyPOMTest.java @@ -2,7 +2,6 @@ package org.apache.maven.integrationtests; import java.io.File; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -16,7 +15,6 @@ public class MavenITmng3680InvalidDependencyPOMTest extends AbstractMavenIntegrationTestCase { public MavenITmng3680InvalidDependencyPOMTest() - throws InvalidVersionSpecificationException { super( "(2.0.9,)" ); } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3684BuildPluginParameterTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3684BuildPluginParameterTest.java index 3b7d0b3a0f..769facc9b9 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3684BuildPluginParameterTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3684BuildPluginParameterTest.java @@ -2,7 +2,6 @@ package org.apache.maven.integrationtests; import java.io.File; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -16,7 +15,6 @@ public class MavenITmng3684BuildPluginParameterTest extends AbstractMavenIntegrationTestCase { public MavenITmng3684BuildPluginParameterTest() - throws InvalidVersionSpecificationException { super( "(2.0.9,)" ); } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3693PomFileBasedirChangeTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3693PomFileBasedirChangeTest.java index 724fce44e1..285145ff17 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3693PomFileBasedirChangeTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3693PomFileBasedirChangeTest.java @@ -2,11 +2,9 @@ package org.apache.maven.integrationtests; import java.io.File; -import org.apache.maven.integrationtests.AbstractMavenIntegrationTestCase; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.FileUtils; import org.apache.maven.it.util.ResourceExtractor; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; /** * Test that changes to a project's POM file reference (MavenProject.setFile(..)) diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3694ReactorProjectsDynamismTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3694ReactorProjectsDynamismTest.java index 715a88803f..2c053aee52 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3694ReactorProjectsDynamismTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3694ReactorProjectsDynamismTest.java @@ -4,10 +4,8 @@ import java.io.File; import java.util.ArrayList; import java.util.List; -import org.apache.maven.integrationtests.AbstractMavenIntegrationTestCase; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; /** * Verify that any plugin injecting reactorProjects gets project instances that @@ -19,7 +17,6 @@ public class MavenITmng3694ReactorProjectsDynamismTest extends AbstractMavenIntegrationTestCase { public MavenITmng3694ReactorProjectsDynamismTest() - throws InvalidVersionSpecificationException { super( "[,2.99.99)" ); } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3703ExecutionProjectWithRelativePathsTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3703ExecutionProjectWithRelativePathsTest.java index ceae10b45f..08d4194cba 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3703ExecutionProjectWithRelativePathsTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3703ExecutionProjectWithRelativePathsTest.java @@ -21,7 +21,6 @@ package org.apache.maven.integrationtests; import java.io.File; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -36,7 +35,6 @@ public class MavenITmng3703ExecutionProjectWithRelativePathsTest extends AbstractMavenIntegrationTestCase { public MavenITmng3703ExecutionProjectWithRelativePathsTest() - throws InvalidVersionSpecificationException { super( "(2.0.99,)" ); // only test in 2.0.9+ } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3704LifecycleExecutorWrapperTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3704LifecycleExecutorWrapperTest.java index 24b719f04a..5d0fd0f2ef 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3704LifecycleExecutorWrapperTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3704LifecycleExecutorWrapperTest.java @@ -21,7 +21,6 @@ package org.apache.maven.integrationtests; import java.io.File; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -38,7 +37,6 @@ public class MavenITmng3704LifecycleExecutorWrapperTest extends AbstractMavenIntegrationTestCase { public MavenITmng3704LifecycleExecutorWrapperTest() - throws InvalidVersionSpecificationException { super( "(2.0.9,2.99.99)" ); // only test in 2.0.9+ } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3710PollutedClonedPluginsTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3710PollutedClonedPluginsTest.java index c2374da04c..13038939cf 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3710PollutedClonedPluginsTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3710PollutedClonedPluginsTest.java @@ -23,8 +23,6 @@ import java.io.File; import java.util.ArrayList; import java.util.List; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; -import org.apache.maven.integrationtests.AbstractMavenIntegrationTestCase; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -39,7 +37,6 @@ public class MavenITmng3710PollutedClonedPluginsTest extends AbstractMavenIntegrationTestCase { public MavenITmng3710PollutedClonedPluginsTest() - throws InvalidVersionSpecificationException { super( "(2.0.8,)" ); // only test in 2.0.9+ } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3716AggregatorForkingTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3716AggregatorForkingTest.java index 486023b68e..e3967e5aa4 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3716AggregatorForkingTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3716AggregatorForkingTest.java @@ -21,7 +21,6 @@ package org.apache.maven.integrationtests; import java.io.File; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -38,7 +37,6 @@ public class MavenITmng3716AggregatorForkingTest extends AbstractMavenIntegrationTestCase { public MavenITmng3716AggregatorForkingTest() - throws InvalidVersionSpecificationException { super( "(2.0.8,)" ); // only test in 2.0.9+ } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3723ConcreteParentProjectTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3723ConcreteParentProjectTest.java index 8613648482..5419c86a5e 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3723ConcreteParentProjectTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3723ConcreteParentProjectTest.java @@ -21,7 +21,6 @@ package org.apache.maven.integrationtests; import java.io.File; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -41,7 +40,6 @@ public class MavenITmng3723ConcreteParentProjectTest extends AbstractMavenIntegrationTestCase { public MavenITmng3723ConcreteParentProjectTest() - throws InvalidVersionSpecificationException { super( "(2.0.8,)" ); // only test in 2.0.9+ } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3724ExecutionProjectSyncTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3724ExecutionProjectSyncTest.java index 4488dae72f..cd33ab04fc 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3724ExecutionProjectSyncTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3724ExecutionProjectSyncTest.java @@ -21,7 +21,6 @@ package org.apache.maven.integrationtests; import java.io.File; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -38,7 +37,6 @@ public class MavenITmng3724ExecutionProjectSyncTest extends AbstractMavenIntegrationTestCase { public MavenITmng3724ExecutionProjectSyncTest() - throws InvalidVersionSpecificationException { super( "(2.0.8,)" ); // only test in 2.0.9+ } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3729MultiForkAggregatorsTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3729MultiForkAggregatorsTest.java index 3869f67513..8f45245703 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3729MultiForkAggregatorsTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3729MultiForkAggregatorsTest.java @@ -21,7 +21,6 @@ package org.apache.maven.integrationtests; import java.io.File; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -52,7 +51,6 @@ public class MavenITmng3729MultiForkAggregatorsTest extends AbstractMavenIntegrationTestCase { public MavenITmng3729MultiForkAggregatorsTest() - throws InvalidVersionSpecificationException { super( "(2.0.8,2.99.99)" ); // only test in 2.0.9+ //TODO: FIX: Disabled for 3.0.x, causes infinite looping on Mac. diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3740SelfReferentialReactorProjectsTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3740SelfReferentialReactorProjectsTest.java index 313b0ee2f1..a47e68d609 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3740SelfReferentialReactorProjectsTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3740SelfReferentialReactorProjectsTest.java @@ -21,7 +21,6 @@ package org.apache.maven.integrationtests; import java.io.File; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -40,7 +39,6 @@ public class MavenITmng3740SelfReferentialReactorProjectsTest extends AbstractMavenIntegrationTestCase { public MavenITmng3740SelfReferentialReactorProjectsTest() - throws InvalidVersionSpecificationException { super( "(2.0.8,)" ); // only test in 2.0.9+ } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3743ForkWithPluginManagementTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3743ForkWithPluginManagementTest.java index f35a5ec242..4f1b9f7f52 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3743ForkWithPluginManagementTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3743ForkWithPluginManagementTest.java @@ -21,7 +21,6 @@ package org.apache.maven.integrationtests; import java.io.File; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -38,7 +37,6 @@ public class MavenITmng3743ForkWithPluginManagementTest extends AbstractMavenIntegrationTestCase { public MavenITmng3743ForkWithPluginManagementTest() - throws InvalidVersionSpecificationException { super( "(2.0.8,)" ); // only test in 2.0.9+ } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3746POMPropertyOverrideTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3746POMPropertyOverrideTest.java index d63a313326..d7ae9ee508 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3746POMPropertyOverrideTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3746POMPropertyOverrideTest.java @@ -23,7 +23,6 @@ import java.io.File; import java.util.ArrayList; import java.util.List; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -38,7 +37,6 @@ public class MavenITmng3746POMPropertyOverrideTest extends AbstractMavenIntegrationTestCase { public MavenITmng3746POMPropertyOverrideTest() - throws InvalidVersionSpecificationException { super( "(2.0.8,)" ); // only test in 2.0.9+ } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3747PrefixedPathExpressionTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3747PrefixedPathExpressionTest.java index 90bd752800..f4b82189dc 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3747PrefixedPathExpressionTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3747PrefixedPathExpressionTest.java @@ -21,7 +21,6 @@ package org.apache.maven.integrationtests; import java.io.File; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -38,7 +37,6 @@ public class MavenITmng3747PrefixedPathExpressionTest extends AbstractMavenIntegrationTestCase { public MavenITmng3747PrefixedPathExpressionTest() - throws InvalidVersionSpecificationException { super( "(2.0.8,)" ); // only test in 2.0.9+ } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3748BadSettingsXmlTest.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3748BadSettingsXmlTest.java index 8ca32884a5..067531ff49 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3748BadSettingsXmlTest.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3748BadSettingsXmlTest.java @@ -23,8 +23,6 @@ import java.io.File; import java.util.ArrayList; import java.util.List; -import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; -import org.apache.maven.integrationtests.AbstractMavenIntegrationTestCase; import org.apache.maven.it.VerificationException; import org.apache.maven.it.Verifier; import org.apache.maven.it.util.ResourceExtractor; @@ -42,7 +40,6 @@ public class MavenITmng3748BadSettingsXmlTest extends AbstractMavenIntegrationTestCase { public MavenITmng3748BadSettingsXmlTest() - throws InvalidVersionSpecificationException { super( "(2.0.8,)" ); // only test in 2.0.9+ }