Skip to content
Draft
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
4 changes: 2 additions & 2 deletions core-it-suite/src/test/resources/mng-0294/user-settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ under the License.
<repository>
<id>central</id>
<name>Apache Maven Integration Testing Repository</name>
<url>http://mirrors.ibiblio.org/pub/mirrors/maven/</url>
<url>https://repo.maven.apache.org/maven2/</url>
<releases>
<enabled>true</enabled>
</releases>
Expand All @@ -44,7 +44,7 @@ under the License.
<pluginRepository>
<id>central</id>
<name>Apache Maven Integration Testing Repository</name>
<url>http://mirrors.ibiblio.org/pub/mirrors/maven/</url>
<url>https://repo.maven.apache.org/maven2/</url>
<releases>
<enabled>true</enabled>
</releases>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,16 @@ protected Verifier newVerifier( String basedir, String settings, boolean debug )
throws VerificationException
{
Verifier verifier = new Verifier( basedir, debug );
verifier.getVerifierProperties().setProperty( "use.mavenRepoLocal", Boolean.FALSE.toString() );

verifier.setLocalRepo( new File( "target/it-local-repo" ).getAbsolutePath() );
verifier.addCliArguments( "-Dmaven.repo.local=" + verifier.getLocalRepository() );

String mavenRepoLocal = System.getProperty( "maven.repo.local", null );
if ( mavenRepoLocal != null )
{
verifier.addCliArguments( "-Dmaven.repo.local.tail=" + mavenRepoLocal );
}

verifier.setAutoclean( false );

Expand Down