[MNG-7047] Adjust repositoryUrl for MNG-6759

This commit is contained in:
rfscholte 2021-07-21 10:32:57 +02:00
parent 63410da462
commit 4c5d721120
2 changed files with 3 additions and 5 deletions

View File

@ -39,17 +39,16 @@ public class MavenITmng6759TransitiveDependencyRepositoriesTest extends Abstract
* where C is in a non-Central repository should use B's {@literal <repositories>} to resolve C.
*/
public void testTransitiveDependenciesAccountForRepositoriesListedByDependencyTrailPredecessor() throws Exception {
URI customRepoUri = installDependencyCInCustomRepo();
installDependencyCInCustomRepo();
File testDir = ResourceExtractor.simpleExtractResources( getClass(), projectBaseDir );
Verifier verifier = newVerifier( testDir.getAbsolutePath() );
verifier.addCliOption( "-Dcustom.repo.uri=" + customRepoUri );
verifier.executeGoal( "package" );
verifier.verifyErrorFreeLog();
}
private URI installDependencyCInCustomRepo() throws Exception {
private void installDependencyCInCustomRepo() throws Exception {
File dependencyCProjectDir = ResourceExtractor.simpleExtractResources( getClass(), projectBaseDir + "/dependency-in-custom-repo" );
URI customRepoUri = new File(new File(dependencyCProjectDir, "target" ), "repo" ).toURI();
Verifier verifier = newVerifier( dependencyCProjectDir.getAbsolutePath() );
@ -65,7 +64,6 @@ public class MavenITmng6759TransitiveDependencyRepositoriesTest extends Abstract
}
verifier.executeGoal( "deploy" );
verifier.verifyErrorFreeLog();
return customRepoUri;
}
}

View File

@ -11,7 +11,7 @@
<repositories>
<repository>
<id>customRepo</id>
<url>${custom.repo.uri}</url>
<url>file:///${basedir}/../dependency-in-custom-repo/target/repo</url>
</repository>
</repositories>