Skip to content

Commit

Permalink
Store registry under ~/.m2 where we already have mvnd.properties
Browse files Browse the repository at this point in the history
  • Loading branch information
ppalaga committed Nov 12, 2020
1 parent a307be9 commit 1b65cad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ public Path globalPropertiesPath() {
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();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ public static void main(String[] argv) throws Exception {
}

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) {
Expand Down

0 comments on commit 1b65cad

Please sign in to comment.