kumarshantanu/lein-idefiles

Eclipse generation is not working properly

Closed this issue · 8 comments

(defproject 
  :description ""
  :url "http://example.com/FIXME"
  :license {:name "Eclipse Public License"
            :url "http://www.eclipse.org/legal/epl-v10.html"}
  :dependencies [[javax.xml.bind/jaxb-api "2.1"]
                 [javax.xml/jaxb-api "2.1"]
  :plugins [[lein-idefiles "0.2.0"]
            [lein-modules "0.3.6"] ]
           :java-source-paths ["src/main/java"])

Resulting exceptions:

  • Description Resource Path Location Type
    Project 'model' is missing required library: 'classes' model Build Path Problem
  • Cannot nest 'model/src/main/java/' inside ' model/src/'. To enable the nesting exclude 'main/' from 'model/src/' model Build Path Problem

What are the Leiningen and Eclipse versions you are using? Could you list the steps to reproduce the issue? I tried the config mentioned above but it works fine for me.

The steps to reproduce the error:

  1. Create a project containing a the source folder with the structure src/main/java
  2. Copy the project.clj above
  3. Run lein idefiles eclipse in the project directory

The Leiningen version 2.3.4 Eclipse 4.4.0

I can reproduce the first error: Project 'foo' is missing required library: 'classes' but not the second. When do you find the second error?

Directly after running lein idefiles eclipse.
I refresh my project which results in this error. It tries to include /src path by default, I think and it causes this problem.

When :source-paths is not defined it is assumed to be src. Could you try adding this entry to your project.clj: :source-paths [] and see if the second error goes away?

Yes the second error has been resolved

I released version 0.2.1 to Clojars, which fixes the first problem.

Ok thanks for the fast resolution

On Fri, Aug 1, 2014 at 10:52 PM, Shantanu Kumar notifications@github.com
wrote:

I released version 0.2.1 to Clojars, which fixes the first problem.


Reply to this email directly or view it on GitHub
#4 (comment)
.