Maven: fix connection to compiler daemon in out-of-process mode

This commit is contained in:
Alexey Andreev 2022-06-24 12:09:30 +03:00
parent 1b3f31b060
commit 0d73478164

View File

@ -262,7 +262,7 @@ public class TeaVMCompileMojo extends AbstractMojo {
try {
RemoteBuildService buildService;
try {
Registry registry = LocateRegistry.getRegistry(daemon.getPort());
Registry registry = LocateRegistry.getRegistry("localhost", daemon.getPort());
buildService = (RemoteBuildService) registry.lookup(RemoteBuildService.ID);
} catch (RemoteException | NotBoundException e) {
throw new MojoExecutionException("Error connecting TeaVM process", e);