2

I would to prepare virtual machine with Eclipse. I would like the Eclipse has pre-imported my Maven project. Is is possible to execute some script which imports the project to the eclipse, in similar way I can pre-install plugin?

I'm not interested in mvn eclipse:eclipse. I want import with the same process like clicking mouse

PS. Similar question for Gradle.

michaldo
  • 4,195
  • 1
  • 39
  • 65

2 Answers2

-1

You can add the Eclipse workspace which has your project imported to the vm.

Kai
  • 38,985
  • 14
  • 88
  • 103
  • As everybody knows, Earth lays on big turtle. But why big turtle does not fall? It is simple: there is another big turtle beneath :) Of course it is solution, but I would like to have continous VM delivery with Eclipse with imported project. And I would like make sure fresh project is imported to workspace, not project from past – michaldo Jun 06 '17 at 09:10
-2

You may want to begin with converting your MVN project to a gradle one. Here is how

Once your build.gradle is created, open it and add this line:

apply plugin: 'eclipse'

Go back to the command prompt and run gradle eclipse

Now the build creates a project file which your Eclipse IDE acan import and work on it as if it were originally created in Eclipse.

For more detail on configuring the Eclipse Plugin, see this link

Note that the assumption here is that you have ann your PATHS set correctly.

Venkata Rahul S
  • 304
  • 2
  • 10
  • I'm not Gradle expert, but I'm afraid your solution is effectively equal to `mvn eclipse:eclipse` - both converts M/G project to Eclipse project. mvn eclipse:eclipse is outdated by m2e, I feel that `apply plugin: 'eclipse' ` is outdated by Eclipse Buildship plugin – michaldo Jun 06 '17 at 09:58
  • Thanks. Any sources that can link me to details on why and when it is getting outdated? I thought Buildship had no such plans for eclipse plugin – Venkata Rahul S Jun 06 '17 at 13:19
  • I think you can find much better sources that my trivial comment, but `gradle eclipse` creates Eclipse Java project. Comparing, importing through Buildship creates Gradle project. – michaldo Jun 06 '17 at 19:18
  • Hmm. Eclipse gradle integration AFAIk is not dying anytime soon. No release notes of gradle says so. Maven also has no such plans if I skim thru their website. You can do nothing additionlal (beyond what you can with a text editor and command prompt) with a pure gradle project, in eclipse. You will need to integrate the project through the plugins. Go ahead with what you need and are most comfortable with. That is the first and final determinant. – Venkata Rahul S Jun 07 '17 at 09:04