mirror of https://github.com/apache/maven.git
[MNG-7047] Adjust repositoryUrl for MNG-6759
This commit is contained in:
parent
63410da462
commit
4c5d721120
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue