On Sat, Dec 05, 2009 at 06:59:15PM -0800, gesamt_kunstwerk wrote:
> hello all, i'm trying to develop a java project using maven, eclimd,
> and vim from the command line on ubuntu. i've been digging around for
> days, and it seems like there's no easy way to get an eclimd java
> project and maven to really work together without firing up graphical
> eclipse.
> using eclimd, is it possible to either 1.) generate a maven
> pom from the java project that will build the project in maven or
There currently is not a feature which generates a pom for you. If
such a feature exists in eclipse, then I'm open to investigating the
feasibility of exposing that feature in eclim.
> 2.) import a java project made from mvn archetype:generate?
>
> i've poked around in the mailing list archives a bit - [1] says that
> as of Mar 2009, there is a :ProjectCreate but no :ProjectImport
> function in eclim. is this right, still?
:ProjectImport[1] does exist as of eclim 1.4.8[2].
> [2] says that as of Dec 2008,
> you must use ant, maven, or javac when using eclimd; building regular
> eclipse projects doesn't work. so in eclimd you can create a new java
> eclipse project you can't build in eclimd, and you can build a project
> you can't import in eclimd?
> to use maven project in eclimd, are you
> supposed to do archetype:generate, then fire up graphical eclipse and
> use it's import function to get it in your workspace, then close
> graphical eclipse and fire up eclimd and open it in vim?
I'm not a maven user myself and I'm not familiar with
archetype:generate, but it sounds like the process would be:
- run archetype:generate (does this create the eclipse project
artifacts?)
- if archetype:generate created the eclipse project artifacts
(.project, .classpath), then you can run :ProjectImport to register
the project with eclipse, otherwise you would just run
:ProjectCreate
- then continue to use maven as you normally would (:Mvn, or $ mvn)
Note, I do have a small guide[3] on maintaining eclipse's .classpath
file for maven users. Admittedly, it's been a while since I've used
it, but it should still function correctly (let me know if that is not
the case).
> does anybody have a link to a tutorial on doing java development with
> eclimd?
It's somewhat difficult to create a tutorial for java development
since there are so many different ways to go about the development
process, though perhaps this conversation can serve as the start of
such a tutorial.
As an ant user, my process is usually as follows:
1. create a project (:ProjectCreate)
2. create an ant build.xml. I do this manually since I'm a bit picky
as to the layout of my build files. I usually just copy and paste
snippets from a previous project and make the necessary changes.
3. from there I then end up in the day to day flow of
- code
- :Ant
- test
- code
- :Ant
- ...
This same flow could be applied to maven as well, just replacing calls
to :Ant with :Mvn.
Let me know if this clears things up or if you still have questions.
I doubt I've addressed all your questions/concerns so please let me
know where the docs or my explanations fall short.
[1]
http://eclim.org/vim/common/project.html#projectimport
[2]
http://eclim.org/changes.html#may-30-2009
[3]
http://eclim.org/guides/java/maven/mvn/classpath.html
--
eric