mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-09-27 16:08:21 +00:00
Store registry under ~/.m2 where we already have mvnd.properties
This commit is contained in:
@@ -172,7 +172,8 @@ public class DaemonParameters {
|
||||
public Path daemonStorage() {
|
||||
return value(Environment.MVND_DAEMON_STORAGE)
|
||||
.orSystemProperty()
|
||||
.orDefault(() -> userHome().resolve(".mvnd/v" + BuildProperties.getInstance().getVersion()).toString())
|
||||
.orDefault(
|
||||
() -> userHome().resolve(".m2/mvnd/registry/" + BuildProperties.getInstance().getVersion()).toString())
|
||||
.asPath();
|
||||
}
|
||||
|
||||
|
@@ -67,7 +67,8 @@ public class DefaultClient implements Client {
|
||||
}
|
||||
|
||||
DaemonParameters parameters = new DaemonParameters();
|
||||
try (TerminalOutput output = new TerminalOutput(batchMode || parameters.noBuffering(), parameters.rollingWindowSize(), logFile)) {
|
||||
try (TerminalOutput output = new TerminalOutput(batchMode || parameters.noBuffering(), parameters.rollingWindowSize(),
|
||||
logFile)) {
|
||||
try {
|
||||
new DefaultClient(parameters).execute(output, args);
|
||||
} catch (DaemonException.InterruptedException e) {
|
||||
|
Reference in New Issue
Block a user