I'm trying to convert a Java project which builds in Maven (and Gradle and Ant... it's complicated unfortunately) to use Vagrant. I already have most of the machine provisioned with Puppet, and it's awesome having a portable, destructible development environment and not having to install and configure all of this software on my own personal machines.
The problem I'm currently facing is this: how will I resolve my classpath in Eclipse? My build tools (Maven, Gradle, Ant) are installed on the Vagrant box, and they download archives to the local machine in /home/vagrant/.m2
etc.
Here's what I can do fairly easily over the Vagrant machine:
Here's what I'm sorely missing:
Are there Eclipse plugins which will allow me to use a remote classpath with m2eclipse? Can I run/debug Java executables remotely on the Vagrant machine?
If "the bottom line™" is that I simply must have Maven and Gradle installed on my local machine in addition to the Vagrant box, then it is what it is; otherwise, I'd really prefer to keep my local machine as lightweight as possible.
Run my entire software development cycle inside of a Vagrant machine, making Eclipse the only dependency on my local machine.
In your Vagrantfile you can declare a shared folder for you host and guest. /home/vagrant/.m2/repository on the guest you could link to an extension folder, for the jvm or Eclipse if it supports a lib/ext.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With