Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use same repository that maven, allow access to central #385

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
2 changes: 2 additions & 0 deletions .mvn/maven.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
aether.lrm.enhanced.split = true
maven.repo.local = ${maven.user.conf}/repo-split
4 changes: 2 additions & 2 deletions core-it-suite/src/test/resources-filtered/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ own test repos or can employ the local repository (after bootstrapping). This co
<repository>
<id>central</id>
<name>Apache Maven Integration Testing Repository</name>
<url>file:target/null</url>
<url>https://repo.maven.apache.org/maven2</url>
<releases>
<enabled>true</enabled>
</releases>
Expand All @@ -46,7 +46,7 @@ own test repos or can employ the local repository (after bootstrapping). This co
<pluginRepository>
<id>central</id>
<name>Apache Maven Integration Testing Repository</name>
<url>file:target/null</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 @@ -254,6 +254,10 @@ protected Verifier newVerifier(String basedir, boolean debug) throws Verificatio

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(System.getProperty("maven.repo.local"));
verifier.addCliArgument("-Dmaven.repo.local=" + verifier.getLocalRepository());
verifier.addCliArgument("-Daether.lrm.enhanced.split=true");

verifier.setAutoclean(false);

Expand Down
Loading