Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

lib dependencies aren't visible in eclipse project #126

Open
ghost opened this Issue Jul 26, 2012 · 1 comment

Comments

Projects
None yet
1 participant
@ghost

ghost commented Jul 26, 2012

If the project definition is as follows:

 lazy val project = Project(id = "core-project",
    base = file("modules/core-project")
  )

and the core-project has unmanaged libraries in it's related lib directory, then the .classpath file will contain incorrect library entries related to this unmanaged libraries.

The project's file structure looks like:

modules\core-project\src\<some sources>
project\Build.scala
project\plugins.sbt

The .classpath looks like:

<classpath>
  <classpathentry output="target\scala-2.9.1\classes" path="src\main\scala" kind="src"></classpathentry>
  <classpathentry output="target\scala-2.9.1\classes" path="src\main\java" kind="src"></classpathentry>
  <classpathentry output="target\scala-2.9.1\test-classes" path="src\test\scala" kind="src"></classpathentry>
  <classpathentry output="target\scala-2.9.1\test-classes" path="src\test\java" kind="src"></classpathentry>
  <classpathentry path="..\..\modules\metapido-core\lib\library1.jar" kind="lib"></classpathentry>  
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...

should be:

<classpath>
  <classpathentry output="target\scala-2.9.1\classes" path="src\main\scala" kind="src"></classpathentry>
  <classpathentry output="target\scala-2.9.1\classes" path="src\main\java" kind="src"></classpathentry>
  <classpathentry output="target\scala-2.9.1\test-classes" path="src\test\scala" kind="src"></classpathentry>
  <classpathentry output="target\scala-2.9.1\test-classes" path="src\test\java" kind="src"></classpathentry>
  <classpathentry path=".\lib\library1.jar" kind="lib"></classpathentry>  
...
Contributor

hseeberger commented Jul 26, 2012

Could you please give me access to a reproducible test case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment