Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public static void assertCanonicalFileEquals(Path expected, Path actual) throws
}

public static void createFile(Path path) throws IOException {
Files.deleteIfExists(path);
Files.createFile(path);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public void testitMNG3955() throws Exception {
Verifier verifier = newVerifier(testDir);
Path localRepo = verifier.getLocalRepository();
verifier.setAutoclean(false);
verifier.deleteDirectory("target");
verifier.addCliArgument("-Dmaven.repo.local.tail=" + localRepo);
verifier.addCliArgument("--settings");
verifier.addCliArgument("settings.xml");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ void javadocIsExecutedAndFailed() throws Exception {
Verifier verifier = newVerifier(testDir);
verifier.deleteDirectory("target");
verifier.addCliArgument("org.apache.maven.plugins:maven-javadoc-plugin:3.6.3:jar");
verifier.addCliArgument("-Ddoclint=all");

boolean invocationFailed = false;
// whatever outcome we do not fail here, but later
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public void testitModel() throws Exception {
verifier.addCliArgument("-Dmaven.repo.local.tail=target/null");
// note: intentionally bad URL, we just want tu ensure that this bad URL is used
verifier.addCliArgument("-Dmaven.repo.central=https://repo1.maven.org");
verifier.addCliArgument("-U");
verifier.addCliArgument("validate");
verifier.setHandleLocalRepoTail(false); // we want isolation to have Maven fail due bad URL
assertThrows(VerificationException.class, verifier::execute);
Expand Down
2 changes: 1 addition & 1 deletion its/core-it-suite/src/test/resources/mng-3955/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ under the License.
-->

<settings xmlns='http://maven.apache.org/SETTINGS/1.0.0'>
<localRepository>mng-3955</localRepository>
<localRepository>target/mng-3955</localRepository>
<offline>false</offline>
<interactiveMode>true</interactiveMode>
</settings>
Loading