You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This plugin used old ctor for MojoExecutionException that uses "message", "long message" and "source". The source is fully unused in Maven Core, while long message just complicates things.
Just unify message, use one "standard" exception message.
---
https://issues.apache.org/jira/browse/MDEPLOY-320
fail("Should throw: Invalid legacy syntax and layout for repository.");
720
721
} catch (MojoExecutionExceptione) {
721
-
assertEquals(e.getMessage(), "Invalid legacy syntax and layout for repository.");
722
722
assertEquals(
723
-
e.getLongMessage(),
724
-
"Invalid legacy syntax and layout for alternative repository. Use \"altDeploymentRepository::http://localhost\" instead, and only default layout is supported.");
723
+
e.getMessage(),
724
+
"Invalid legacy syntax and layout for alternative repository: \"" + altDeploymentRepository
725
+
+ "\". Use \"altDeploymentRepository::http://localhost\" instead, and only default layout is supported.");
725
726
}
726
727
}
727
728
@@ -730,19 +731,18 @@ public void testInsaneAltDeploymentRepository() throws Exception {
fail("Should throw: Invalid legacy syntax and layout for repository.");
741
741
} catch (MojoExecutionExceptione) {
742
-
assertEquals(e.getMessage(), "Invalid legacy syntax and layout for repository.");
743
742
assertEquals(
744
-
e.getLongMessage(),
745
-
"Invalid legacy syntax and layout for alternative repository. Use \"altDeploymentRepository::wow::foo::http://localhost\" instead, and only default layout is supported.");
743
+
e.getMessage(),
744
+
"Invalid legacy syntax and layout for alternative repository: \"" + altDeploymentRepository
745
+
+ "\". Use \"altDeploymentRepository::wow::foo::http://localhost\" instead, and only default layout is supported.");
746
746
}
747
747
}
748
748
@@ -766,19 +766,18 @@ public void testLegacyScmSvnAltDeploymentRepository() throws Exception {
fail("Should throw: Invalid legacy syntax and layout for repository.");
777
776
} catch (MojoExecutionExceptione) {
778
-
assertEquals(e.getMessage(), "Invalid legacy syntax and layout for repository.");
779
777
assertEquals(
780
-
e.getLongMessage(),
781
-
"Invalid legacy syntax and layout for alternative repository. Use \"altDeploymentRepository::scm:svn:http://localhost\" instead, and only default layout is supported.");
778
+
e.getMessage(),
779
+
"Invalid legacy syntax and layout for alternative repository: \"" + altDeploymentRepository
780
+
+ "\". Use \"altDeploymentRepository::scm:svn:http://localhost\" instead, and only default layout is supported.");
0 commit comments