I am working on a Java project that has a nice Vagrantfile for setting up a development environment on Linux. I can compile and run this application from Vagrant VM.
However, many of us use tools - IntelliJ, Eclipse, etc. - outside the VM. Although it is easy to exchange files between the local host and the virtual machine, it would be great to configure my IDE to use a remote compiler for things like autocomplete, static analysis, etc.
Is there any way to do this?
I know that I can do remote debugging in Java (a la -Xdebug , -Xrunjdwp , etc.). But what is the easiest way to do remote compilation? How to configure my IDE (or just use the command line) to invoke javac from a remote server and have an environment in which all my autocompletion and static analysis are based on my setting up javac and JVM for remote (roaming)
source share