IntelliJ IDEA + Vagrant: compile and run in VM environment

I need to use the Java library, which has a lot of errors on Mac OS X, and I cannot stop using it. I created a virtual machine (Ubuntu 13) and created my development environment there, and it works. But is it possible for you to develop on a Mac and configure IntelliJ IDEA 13.1 to compile → run my project in Vagrant? I could not find any tutorials on how to do this, and I'm not even sure if this is possible.

+4
source share
1 answer

you can continue working with mac / intelliJ to edit and compile the project files to run it, it will depend on what you use.

  • To synchronize files between your os and vm, you must configure the roaming folder synchronization between the two machines.

Suppose you run your project on mac under /Users/name/project/myproject, this project is configured for intelliJ so that you can run from IntelliJ and compile from there. add this to your vagrantfile

config.vm.synced_folder "/Users/name/project/myproject", "/project"

It will create a directory /projectin your vm.

  1. , . , Tomcat remote Run IntelliJ, , vm, Tomcat, vm. Tomcat Webapps (sync_folder symlink), .
0

Source: https://habr.com/ru/post/1538739/


All Articles