sbt / sbt-eclipse

Plugin for sbt to create Eclipse project definitions
Apache License 2.0
716 stars 167 forks source link

v2.4.0-3.0.0 ignore unmanagedClasspath #182

Open ngocdaothanh opened 11 years ago

ngocdaothanh commented 11 years ago

I have this build.sbt: https://github.com/ngocdaothanh/xitrum-new/blob/master/build.sbt

which declares unmanagedClasspath like this:

unmanagedClasspath in Compile <+= (baseDirectory) map { bd => Attributed.blank(bd / "config") }

unmanagedClasspath in Runtime <+= (baseDirectory) map { bd => Attributed.blank(bd / "config") }

I want the config directory to be in classpath.

With v2.3.0, .classpath looks like this:

<classpath>
  <classpathentry kind="src" path="src/main/scala" output="target/scala-2.10/classes"/>
  <classpathentry kind="src" path="src/main/java" output="target/scala-2.10/classes"/>
  <classpathentry kind="src" path="src/test/scala" output="target/scala-2.10/test-classes"/>
  <classpathentry kind="src" path="src/test/java" output="target/scala-2.10/test-classes"/>
  <classpathentry kind="lib" path="./config"/>
  <classpathentry kind="lib" path="/Users/ngocdt/.ivy2/cache/org.scala-lang/scala-compiler/jars/scala-compiler-2.10.3.jar"/>
  <classpathentry kind="lib" path="/Users/ngocdt/.ivy2/cache/org.scala-lang/scala-library/jars/scala-library-2.10.3.jar"/>
  <classpathentry kind="lib" path="/Users/ngocdt/.ivy2/cache/org.scala-lang/scala-reflect/jars/scala-reflect-2.10.3.jar"/>
...

But with v2.4.0 and the current 2.5.0-SNAPSHOT, there's no line:

<classpathentry kind="lib" path="./config"/>

You can reproduce the problem:

git clone https://github.com/ngocdaothanh/xitrum-new.git
cd xitrum-new
sbt/sbt eclipse
cat .classpath
ngocdaothanh commented 10 years ago

Hi, Can the sbteclipse team put more priority to this issue?

caiiiycuk commented 10 years ago

+1

dragos commented 10 years ago

@jsuereth I was trying to compare changes between 2.4.0 and 2.3.0 but it looks like the tags are missing... did you maybe forget to push them upstream?

er1c commented 10 years ago

Looks like unmanagedClasspath is suppose to be part of externalDependencyClasspath https://github.com/sbt/sbt/blob/e72fbff20a59b01cb5de84b8adb60700957c87e5/main/src/main/scala/sbt/Defaults.scala#L950

It does look like it works:

eric@Erics-MacBook-Pro:~/Work/xitrum-new$ sbt console-project
[info] Loading project definition from /Users/eric/Work/xitrum-new/project
[info] Set current project to xitrum-new (in build file:/Users/eric/Work/xitrum-new/)
[info] Starting scala interpreter...
[info]
import sbt._
import Keys._
import dsl._
import _root_.com.typesafe.sbteclipse.plugin.EclipsePlugin._
import _root_.org.sbtidea.SbtIdeaPlugin._
import XitrumPackage._
import _root_.com.mojolly.scalate.ScalatePlugin._
import _root_.sbt.plugins.IvyPlugin
import _root_.sbt.plugins.JvmPlugin
import _root_.sbt.plugins.CorePlugin
import _root_.sbt.plugins.JUnitXmlReportPlugin
import currentState._
import extracted._
import cpHelpers._
Welcome to Scala version 2.10.4 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_20).
Type in expressions to have them evaluated.
Type :help for more information.

scala> (externalDependencyClasspath in Compile).eval.files foreach println
/Users/eric/Work/xitrum-new/config
/Users/eric/.ivy2/cache/org.scala-lang/scala-library/jars/scala-library-2.11.2.jar
/Users/eric/.ivy2/cache/tv.cntt/xitrum_2.11/jars/xitrum_2.11-3.18.jar
/Users/eric/.ivy2/cache/org.slf4s/slf4s-api_2.11/jars/slf4s-api_2.11-1.7.7.jar
...

Something else is gumming it up, since it doesn't show up in the debug:

> eric@Erics-MacBook-Pro:~/Work/xitrum-new$ sbt
[info] Loading project definition from /Users/eric/Work/xitrum-new/project
[info] Set current project to xitrum-new (in build file:/Users/eric/Work/xitrum-new/)
> set logLevel in Global := Level.Debug
[info] Defining */*:logLevel
[info] The new value will be used by no settings or tasks.
[info] Reapplying settings...
[info] Set current project to xitrum-new (in build file:/Users/eric/Work/xitrum-new/)
[debug] > shell
> eclipse
[debug] > eclipse
[info] About to create Eclipse project files for your project(s).
[debug] Running task... Cancel: sbt.TaskCancellationStrategy$Null$@4e6f2bb5, check cycles: false
[debug] Running task... Cancel: sbt.TaskCancellationStrategy$Null$@4e6f2bb5, check cycles: false
[debug] External dependencies for configuration 'test' and withSource 'false' and withJavadoc 'false' and withBundledScalaContainers'true': Success(List(Lib(/Users/eric/.ivy2/cache/org.scala-lang/scala-library/jars/scala-library-2.11.2.jar), Lib(/Users/eric/.ivy2/cache/tv.cntt/xitrum_2.11/jars/xitrum_2.11-3.18.jar), Lib(/Users/eric/.ivy2/cache/org.slf4s/slf4s-api_2.11/jars/slf4s-api_2.11-1.7.7.jar), Lib(/Users/eric/.ivy2/cache/org.slf4j/slf4j-api/jars/slf4j-api-1.7.7.jar), Lib(/Users/eric/.ivy2/cache/io.netty/netty-all/jars/netty-all-4.0.23.Final.jar), Lib(/Users/eric/.ivy2/cache/io.netty/netty-tcnative/jars/netty-tcnative-1.1.30.Fork2-linux-x86_64.jar), Lib(/Users/eric/.ivy2/cache/io.netty/netty-tcnative/jars/netty-tcnative-1.1.30.Fork2-windows-x86_64.jar), Lib(/Users/eric/.ivy2/cache/io.netty/netty-tcnative/jars/netty-tcnative-1.1.30.Fork2-osx-x86_64.jar), Lib(/Users/eric/.ivy2/cache/org.javassist/javassist/bundles/javassist-3.18.2-GA.jar), Lib(/Users/eric/.ivy2/cache/com.typesafe.akka/akka-actor_2.11/jars/akka-actor_2.11-2.3.5.jar), Lib(/Users/eric/.ivy2/cache/com.typesafe/config/bundles/config-1.2.1.jar), Lib(/Users/eric/.ivy2/cache/com.typesafe.akka/akka-cluster_2.11/jars/akka-cluster_2.11-2.3.5.jar), Lib(/Users/eric/.ivy2/cache/com.typesafe.akka/akka-remote_2.11/jars/akka-remote_2.11-2.3.5.jar), Lib(/Users/eric/.ivy2/cache/io.netty/netty/bundles/netty-3.8.0.Final.jar), Lib(/Users/eric/.ivy2/cache/com.google.protobuf/protobuf-java/bundles/protobuf-java-2.5.0.jar), Lib(/Users/eric/.ivy2/cache/org.uncommons.maths/uncommons-maths/jars/uncommons-maths-1.2.2a.jar), Lib(/Users/eric/.ivy2/cache/com.typesafe.akka/akka-contrib_2.11/jars/akka-contrib_2.11-2.3.5.jar), Lib(/Users/eric/.ivy2/cache/com.typesafe.akka/akka-persistence-experimental_2.11/jars/akka-persistence-experimental_2.11-2.3.5.jar), Lib(/Users/eric/.ivy2/cache/org.iq80.leveldb/leveldb/jars/leveldb-0.5.jar), Lib(/Users/eric/.ivy2/cache/org.iq80.leveldb/leveldb-api/jars/leveldb-api-0.5.jar), Lib(/Users/eric/.ivy2/cache/com.google.guava/guava/jars/guava-12.0.jar), Lib(/Users/eric/.ivy2/cache/com.google.code.findbugs/jsr305/jars/jsr305-1.3.9.jar), Lib(/Users/eric/.ivy2/cache/org.fusesource.leveldbjni/leveldbjni-all/bundles/leveldbjni-all-1.7.jar), Lib(/Users/eric/.ivy2/cache/org.fusesource.leveldbjni/leveldbjni/jars/leveldbjni-1.7.jar), Lib(/Users/eric/.ivy2/cache/org.fusesource.hawtjni/hawtjni-runtime/jars/hawtjni-runtime-1.8.jar), Lib(/Users/eric/.ivy2/cache/org.fusesource.leveldbjni/leveldbjni-osx/jars/leveldbjni-osx-1.5.jar), Lib(/Users/eric/.ivy2/cache/org.fusesource.leveldbjni/leveldbjni-linux32/jars/leveldbjni-linux32-1.5.jar), Lib(/Users/eric/.ivy2/cache/org.fusesource.leveldbjni/leveldbjni-linux64/jars/leveldbjni-linux64-1.5.jar), Lib(/Users/eric/.ivy2/cache/org.fusesource.leveldbjni/leveldbjni-win32/jars/leveldbjni-win32-1.5.jar), Lib(/Users/eric/.ivy2/cache/org.fusesource.leveldbjni/leveldbjni-win64/jars/leveldbjni-win64-1.5.jar), Lib(/Users/eric/.ivy2/cache/com.typesafe.akka/akka-slf4j_2.11/jars/akka-slf4j_2.11-2.3.5.jar), Lib(/Users/eric/.ivy2/cache/tv.cntt/glokka_2.11/jars/glokka_2.11-2.0.jar), Lib(/Users/eric/.ivy2/cache/com.beachape.filemanagement/schwatcher_2.11/jars/schwatcher_2.11-0.1.5.jar), Lib(/Users/eric/.ivy2/cache/com.netflix.rxjava/rxjava-scala/jars/rxjava-scala-0.18.1.jar), Lib(/Users/eric/.ivy2/cache/com.netflix.rxjava/rxjava-core/jars/rxjava-core-0.18.1.jar), Lib(/Users/eric/.ivy2/cache/tv.cntt/sclasner_2.11/jars/sclasner_2.11-1.6.jar), Lib(/Users/eric/.ivy2/cache/tv.cntt/chill-scala_2.11/jars/chill-scala_2.11-1.2.jar), Lib(/Users/eric/.ivy2/cache/com.esotericsoftware.kryo/kryo/bundles/kryo-2.21.jar), Lib(/Users/eric/.ivy2/cache/com.esotericsoftware.reflectasm/reflectasm/jars/reflectasm-1.07-shaded.jar), Lib(/Users/eric/.ivy2/cache/org.ow2.asm/asm/jars/asm-4.0.jar), Lib(/Users/eric/.ivy2/cache/com.esotericsoftware.minlog/minlog/jars/minlog-1.2.jar), Lib(/Users/eric/.ivy2/cache/org.objenesis/objenesis/jars/objenesis-1.2.jar), Lib(/Users/eric/.ivy2/cache/org.json4s/json4s-jackson_2.11/jars/json4s-jackson_2.11-3.2.10.jar), Lib(/Users/eric/.ivy2/cache/org.json4s/json4s-core_2.11/jars/json4s-core_2.11-3.2.10.jar), Lib(/Users/eric/.ivy2/cache/org.json4s/json4s-ast_2.11/jars/json4s-ast_2.11-3.2.10.jar), Lib(/Users/eric/.ivy2/cache/com.thoughtworks.paranamer/paranamer/jars/paranamer-2.6.jar), Lib(/Users/eric/.ivy2/cache/org.scala-lang/scalap/jars/scalap-2.11.2.jar), Lib(/Users/eric/.ivy2/cache/org.scala-lang/scala-compiler/jars/scala-compiler-2.11.2.jar), Lib(/Users/eric/.ivy2/cache/org.scala-lang/scala-reflect/jars/scala-reflect-2.11.2.jar), Lib(/Users/eric/.ivy2/cache/org.scala-lang.modules/scala-xml_2.11/bundles/scala-xml_2.11-1.0.2.jar), Lib(/Users/eric/.ivy2/cache/org.scala-lang.modules/scala-parser-combinators_2.11/bundles/scala-parser-combinators_2.11-1.0.2.jar), Lib(/Users/eric/.ivy2/cache/com.fasterxml.jackson.core/jackson-databind/bundles/jackson-databind-2.3.1.jar), Lib(/Users/eric/.ivy2/cache/com.fasterxml.jackson.core/jackson-annotations/bundles/jackson-annotations-2.3.0.jar), Lib(/Users/eric/.ivy2/cache/com.fasterxml.jackson.core/jackson-core/bundles/jackson-core-2.3.1.jar), Lib(/Users/eric/.ivy2/cache/tv.cntt/scaposer_2.11/jars/scaposer_2.11-1.4.jar), Lib(/Users/eric/.ivy2/cache/org.apache.commons/commons-lang3/jars/commons-lang3-3.3.2.jar), Lib(/Users/eric/.ivy2/cache/tv.cntt/rhinocoffeescript/jars/rhinocoffeescript-1.7.1.jar), Lib(/Users/eric/.ivy2/cache/org.mozilla/rhino/jars/rhino-1.7R4.jar), Lib(/Users/eric/.ivy2/cache/nl.grons/metrics-scala_2.11/jars/metrics-scala_2.11-3.2.1_a2.3.jar), Lib(/Users/eric/.ivy2/cache/com.codahale.metrics/metrics-core/bundles/metrics-core-3.0.2.jar), Lib(/Users/eric/.ivy2/cache/com.codahale.metrics/metrics-healthchecks/bundles/metrics-healthchecks-3.0.2.jar), Lib(/Users/eric/.ivy2/cache/com.codahale.metrics/metrics-json/bundles/metrics-json-3.0.2.jar), Lib(/Users/eric/.ivy2/cache/org.webjars/jquery/jars/jquery-2.1.1.jar), Lib(/Users/eric/.ivy2/cache/org.webjars/jquery-validation/jars/jquery-validation-1.13.0.jar), Lib(/Users/eric/.ivy2/cache/org.webjars/sockjs-client/jars/sockjs-client-0.3.4.jar), Lib(/Users/eric/.ivy2/cache/org.webjars/swagger-ui/jars/swagger-ui-2.0.22.jar), Lib(/Users/eric/.ivy2/cache/org.webjars/d3js/jars/d3js-3.4.11.jar), Lib(/Users/eric/.ivy2/cache/ch.qos.logback/logback-classic/jars/logback-classic-1.1.2.jar), Lib(/Users/eric/.ivy2/cache/ch.qos.logback/logback-core/jars/logback-core-1.1.2.jar), Lib(/Users/eric/.ivy2/cache/org.codehaus.janino/janino/jars/janino-2.7.5.jar), Lib(/Users/eric/.ivy2/cache/org.codehaus.janino/commons-compiler/jars/commons-compiler-2.7.5.jar), Lib(/Users/eric/.ivy2/cache/org.webjars/bootstrap/jars/bootstrap-3.2.0.jar), Lib(/Users/eric/.ivy2/cache/tv.cntt/xitrum-scalate_2.11/jars/xitrum-scalate_2.11-2.2.jar), Lib(/Users/eric/.ivy2/cache/org.scalatra.scalate/scalate-core_2.11/bundles/scalate-core_2.11-1.7.0.jar), Lib(/Users/eric/.ivy2/cache/org.scalatra.scalate/scalate-util_2.11/bundles/scalate-util_2.11-1.7.0.jar), Lib(/Users/eric/.ivy2/cache/org.scalatra.scalate/scalamd_2.11/bundles/scalamd_2.11-1.6.1.jar)))
[debug] Project dependencies for configuration 'compile': Success(List())
[debug] Project dependencies for configuration 'test': Success(List())
[info] Successfully created Eclipse project files for project(s):
[info] xitrum-new
[debug] > shell
>

Looks like the issue is might be based upon val externalDependencyClasspath = evalTask(Keys.externalDependencyClasspath)

I tried adding this after the above statement: state.log.debug("Original externalDependencyClasspath: '%s'".format(externalDependencyClasspath))

the config path doesn't show up :/

Apparently the default configuration is 'test' state.log.debug("Original externalDependencyClasspath: '%s', configuration: '%s', ref: '%s', state: '%s'".format(externalDependencyClasspath, configuration, ref, state)):

[debug] Original externalDependencyClasspath: 'Success(List(Attributed(/Users/eric/.ivy2/cache/org.scala-lang/scala-library/jars/scala-library-2.11.2.jar), Attributed(/Users/eric/.ivy2/cache/tv.cntt/xitrum_2.11/jars/xitrum_2.11-3.18.jar), Attributed(/Users/eric/.ivy2/cache/org.slf4s/slf4s-api_2.11/jars/slf4s-api_2.11-1.7.7.jar), Attributed(/Users/eric/.ivy2/cache/org.slf4j/slf4j-api/jars/slf4j-api-1.7.7.jar), Attributed(/Users/eric/.ivy2/cache/io.netty/netty-all/jars/netty-all-4.0.23.Final.jar), Attributed(/Users/eric/.ivy2/cache/io.netty/netty-tcnative/jars/netty-tcnative-1.1.30.Fork2-linux-x86_64.jar), Attributed(/Users/eric/.ivy2/cache/io.netty/netty-tcnative/jars/netty-tcnative-1.1.30.Fork2-windows-x86_64.jar), Attributed(/Users/eric/.ivy2/cache/io.netty/netty-tcnative/jars/netty-tcnative-1.1.30.Fork2-osx-x86_64.jar), Attributed(/Users/eric/.ivy2/cache/org.javassist/javassist/bundles/javassist-3.18.2-GA.jar), Attributed(/Users/eric/.ivy2/cache/com.typesafe.akka/akka-actor_2.11/jars/akka-actor_2.11-2.3.5.jar), Attributed(/Users/eric/.ivy2/cache/com.typesafe/config/bundles/config-1.2.1.jar), Attributed(/Users/eric/.ivy2/cache/com.typesafe.akka/akka-cluster_2.11/jars/akka-cluster_2.11-2.3.5.jar), Attributed(/Users/eric/.ivy2/cache/com.typesafe.akka/akka-remote_2.11/jars/akka-remote_2.11-2.3.5.jar), Attributed(/Users/eric/.ivy2/cache/io.netty/netty/bundles/netty-3.8.0.Final.jar), Attributed(/Users/eric/.ivy2/cache/com.google.protobuf/protobuf-java/bundles/protobuf-java-2.5.0.jar), Attributed(/Users/eric/.ivy2/cache/org.uncommons.maths/uncommons-maths/jars/uncommons-maths-1.2.2a.jar), Attributed(/Users/eric/.ivy2/cache/com.typesafe.akka/akka-contrib_2.11/jars/akka-contrib_2.11-2.3.5.jar), Attributed(/Users/eric/.ivy2/cache/com.typesafe.akka/akka-persistence-experimental_2.11/jars/akka-persistence-experimental_2.11-2.3.5.jar), Attributed(/Users/eric/.ivy2/cache/org.iq80.leveldb/leveldb/jars/leveldb-0.5.jar), Attributed(/Users/eric/.ivy2/cache/org.iq80.leveldb/leveldb-api/jars/leveldb-api-0.5.jar), Attributed(/Users/eric/.ivy2/cache/com.google.guava/guava/jars/guava-12.0.jar), Attributed(/Users/eric/.ivy2/cache/com.google.code.findbugs/jsr305/jars/jsr305-1.3.9.jar), Attributed(/Users/eric/.ivy2/cache/org.fusesource.leveldbjni/leveldbjni-all/bundles/leveldbjni-all-1.7.jar), Attributed(/Users/eric/.ivy2/cache/org.fusesource.leveldbjni/leveldbjni/jars/leveldbjni-1.7.jar), Attributed(/Users/eric/.ivy2/cache/org.fusesource.hawtjni/hawtjni-runtime/jars/hawtjni-runtime-1.8.jar), Attributed(/Users/eric/.ivy2/cache/org.fusesource.leveldbjni/leveldbjni-osx/jars/leveldbjni-osx-1.5.jar), Attributed(/Users/eric/.ivy2/cache/org.fusesource.leveldbjni/leveldbjni-linux32/jars/leveldbjni-linux32-1.5.jar), Attributed(/Users/eric/.ivy2/cache/org.fusesource.leveldbjni/leveldbjni-linux64/jars/leveldbjni-linux64-1.5.jar), Attributed(/Users/eric/.ivy2/cache/org.fusesource.leveldbjni/leveldbjni-win32/jars/leveldbjni-win32-1.5.jar), Attributed(/Users/eric/.ivy2/cache/org.fusesource.leveldbjni/leveldbjni-win64/jars/leveldbjni-win64-1.5.jar), Attributed(/Users/eric/.ivy2/cache/com.typesafe.akka/akka-slf4j_2.11/jars/akka-slf4j_2.11-2.3.5.jar), Attributed(/Users/eric/.ivy2/cache/tv.cntt/glokka_2.11/jars/glokka_2.11-2.0.jar), Attributed(/Users/eric/.ivy2/cache/com.beachape.filemanagement/schwatcher_2.11/jars/schwatcher_2.11-0.1.5.jar), Attributed(/Users/eric/.ivy2/cache/com.netflix.rxjava/rxjava-scala/jars/rxjava-scala-0.18.1.jar), Attributed(/Users/eric/.ivy2/cache/com.netflix.rxjava/rxjava-core/jars/rxjava-core-0.18.1.jar), Attributed(/Users/eric/.ivy2/cache/tv.cntt/sclasner_2.11/jars/sclasner_2.11-1.6.jar), Attributed(/Users/eric/.ivy2/cache/tv.cntt/chill-scala_2.11/jars/chill-scala_2.11-1.2.jar), Attributed(/Users/eric/.ivy2/cache/com.esotericsoftware.kryo/kryo/bundles/kryo-2.21.jar), Attributed(/Users/eric/.ivy2/cache/com.esotericsoftware.reflectasm/reflectasm/jars/reflectasm-1.07-shaded.jar), Attributed(/Users/eric/.ivy2/cache/org.ow2.asm/asm/jars/asm-4.0.jar), Attributed(/Users/eric/.ivy2/cache/com.esotericsoftware.minlog/minlog/jars/minlog-1.2.jar), Attributed(/Users/eric/.ivy2/cache/org.objenesis/objenesis/jars/objenesis-1.2.jar), Attributed(/Users/eric/.ivy2/cache/org.json4s/json4s-jackson_2.11/jars/json4s-jackson_2.11-3.2.10.jar), Attributed(/Users/eric/.ivy2/cache/org.json4s/json4s-core_2.11/jars/json4s-core_2.11-3.2.10.jar), Attributed(/Users/eric/.ivy2/cache/org.json4s/json4s-ast_2.11/jars/json4s-ast_2.11-3.2.10.jar), Attributed(/Users/eric/.ivy2/cache/com.thoughtworks.paranamer/paranamer/jars/paranamer-2.6.jar), Attributed(/Users/eric/.ivy2/cache/org.scala-lang/scalap/jars/scalap-2.11.2.jar), Attributed(/Users/eric/.ivy2/cache/org.scala-lang/scala-compiler/jars/scala-compiler-2.11.2.jar), Attributed(/Users/eric/.ivy2/cache/org.scala-lang/scala-reflect/jars/scala-reflect-2.11.2.jar), Attributed(/Users/eric/.ivy2/cache/org.scala-lang.modules/scala-xml_2.11/bundles/scala-xml_2.11-1.0.2.jar), Attributed(/Users/eric/.ivy2/cache/org.scala-lang.modules/scala-parser-combinators_2.11/bundles/scala-parser-combinators_2.11-1.0.2.jar), Attributed(/Users/eric/.ivy2/cache/com.fasterxml.jackson.core/jackson-databind/bundles/jackson-databind-2.3.1.jar), Attributed(/Users/eric/.ivy2/cache/com.fasterxml.jackson.core/jackson-annotations/bundles/jackson-annotations-2.3.0.jar), Attributed(/Users/eric/.ivy2/cache/com.fasterxml.jackson.core/jackson-core/bundles/jackson-core-2.3.1.jar), Attributed(/Users/eric/.ivy2/cache/tv.cntt/scaposer_2.11/jars/scaposer_2.11-1.4.jar), Attributed(/Users/eric/.ivy2/cache/org.apache.commons/commons-lang3/jars/commons-lang3-3.3.2.jar), Attributed(/Users/eric/.ivy2/cache/tv.cntt/rhinocoffeescript/jars/rhinocoffeescript-1.7.1.jar), Attributed(/Users/eric/.ivy2/cache/org.mozilla/rhino/jars/rhino-1.7R4.jar), Attributed(/Users/eric/.ivy2/cache/nl.grons/metrics-scala_2.11/jars/metrics-scala_2.11-3.2.1_a2.3.jar), Attributed(/Users/eric/.ivy2/cache/com.codahale.metrics/metrics-core/bundles/metrics-core-3.0.2.jar), Attributed(/Users/eric/.ivy2/cache/com.codahale.metrics/metrics-healthchecks/bundles/metrics-healthchecks-3.0.2.jar), Attributed(/Users/eric/.ivy2/cache/com.codahale.metrics/metrics-json/bundles/metrics-json-3.0.2.jar), Attributed(/Users/eric/.ivy2/cache/org.webjars/jquery/jars/jquery-2.1.1.jar), Attributed(/Users/eric/.ivy2/cache/org.webjars/jquery-validation/jars/jquery-validation-1.13.0.jar), Attributed(/Users/eric/.ivy2/cache/org.webjars/sockjs-client/jars/sockjs-client-0.3.4.jar), Attributed(/Users/eric/.ivy2/cache/org.webjars/swagger-ui/jars/swagger-ui-2.0.22.jar), Attributed(/Users/eric/.ivy2/cache/org.webjars/d3js/jars/d3js-3.4.11.jar), Attributed(/Users/eric/.ivy2/cache/ch.qos.logback/logback-classic/jars/logback-classic-1.1.2.jar), Attributed(/Users/eric/.ivy2/cache/ch.qos.logback/logback-core/jars/logback-core-1.1.2.jar), Attributed(/Users/eric/.ivy2/cache/org.codehaus.janino/janino/jars/janino-2.7.5.jar), Attributed(/Users/eric/.ivy2/cache/org.codehaus.janino/commons-compiler/jars/commons-compiler-2.7.5.jar), Attributed(/Users/eric/.ivy2/cache/org.webjars/bootstrap/jars/bootstrap-3.2.0.jar), Attributed(/Users/eric/.ivy2/cache/tv.cntt/xitrum-scalate_2.11/jars/xitrum-scalate_2.11-2.2.jar), Attributed(/Users/eric/.ivy2/cache/org.scalatra.scalate/scalate-core_2.11/bundles/scalate-core_2.11-1.7.0.jar), Attributed(/Users/eric/.ivy2/cache/org.scalatra.scalate/scalate-util_2.11/bundles/scalate-util_2.11-1.7.0.jar), Attributed(/Users/eric/.ivy2/cache/org.scalatra.scalate/scalamd_2.11/bundles/scalamd_2.11-1.6.1.jar)))', configuration: 'test', ref: 'ProjectRef(file:/Users/eric/Work/xitrum-new/,xitrum-new)', state: 'sbt.State@25be445f'
er1c commented 10 years ago

Maybe a hack, but if you change: unmanagedClasspath in Compile <+= (baseDirectory) map { bd => Attributed.blank(bd / "config") } to: unmanagedClasspath in Test <+= (baseDirectory) map { bd => Attributed.blank(bd / "config") }

This should work (based upon my research)

The other option is to include a separate Test configuration:

unmanagedClasspath in Test <+= (baseDirectory) map { bd => Attributed.blank(bd / "config") }

Some evidence of success (using the Test approach above):

[debug] Original externalDependencyClasspath: 'Success(List(Attributed(/Users/eric/Work/xitrum-new/config), Attributed(/Users/eric/.ivy2/cache/org.scala-lang/scala-library/jars/scala-library-2.11.2.jar), Attributed(/Users/eric/.ivy2/cache/tv.cntt/xitrum_2.11/jars/xitrum_2.11-3.18.jar), Attributed(/Users/eric/.ivy2/cache/org.slf4s/slf4s-api_2.11/jars/slf4s-api_2.11-1.7.7.jar), Attributed(/Users/eric/.ivy2/cache/org.slf4j/slf4j-api/jars/slf4j-api-1.7.7.jar), Attributed(/Users/eric/.ivy2/cache/io.netty/netty-all/jars/netty-all-4.0.23.Final.jar), Attributed(/Users/eric/.ivy2/cache/io.netty/netty-tcnative/jars/netty-tcnative-1.1.30.Fork2-linux-x86_64.jar), Attributed(/Users/eric/.ivy2/cache/io.netty/netty-tcnative/jars/netty-tcnative-1.1.30.Fork2-windows-x86_64.jar), Attributed(/Users/eric/.ivy2/cache/io.netty/netty-tcnative/jars/netty-tcnative-1.1.30.Fork2-osx-x86_64.jar), Attributed(/Users/eric/.ivy2/cache/org.javassist/javassist/bundles/javassist-3.18.2-GA.jar), Attributed(/Users/eric/.ivy2/cache/com.typesafe.akka/akka-actor_2.11/jars/akka-actor_2.11-2.3.5.jar), Attributed(/Users/eric/.ivy2/cache/com.typesafe/config/bundles/config-1.2.1.jar), Attributed(/Users/eric/.ivy2/cache/com.typesafe.akka/akka-cluster_2.11/jars/akka-cluster_2.11-2.3.5.jar), Attributed(/Users/eric/.ivy2/cache/com.typesafe.akka/akka-remote_2.11/jars/akka-remote_2.11-2.3.5.jar), Attributed(/Users/eric/.ivy2/cache/io.netty/netty/bundles/netty-3.8.0.Final.jar), Attributed(/Users/eric/.ivy2/cache/com.google.protobuf/protobuf-java/bundles/protobuf-java-2.5.0.jar), Attributed(/Users/eric/.ivy2/cache/org.uncommons.maths/uncommons-maths/jars/uncommons-maths-1.2.2a.jar), Attributed(/Users/eric/.ivy2/cache/com.typesafe.akka/akka-contrib_2.11/jars/akka-contrib_2.11-2.3.5.jar), Attributed(/Users/eric/.ivy2/cache/com.typesafe.akka/akka-persistence-experimental_2.11/jars/akka-persistence-experimental_2.11-2.3.5.jar), Attributed(/Users/eric/.ivy2/cache/org.iq80.leveldb/leveldb/jars/leveldb-0.5.jar), Attributed(/Users/eric/.ivy2/cache/org.iq80.leveldb/leveldb-api/jars/leveldb-api-0.5.jar), Attributed(/Users/eric/.ivy2/cache/com.google.guava/guava/jars/guava-12.0.jar), Attributed(/Users/eric/.ivy2/cache/com.google.code.findbugs/jsr305/jars/jsr305-1.3.9.jar), Attributed(/Users/eric/.ivy2/cache/org.fusesource.leveldbjni/leveldbjni-all/bundles/leveldbjni-all-1.7.jar), Attributed(/Users/eric/.ivy2/cache/org.fusesource.leveldbjni/leveldbjni/jars/leveldbjni-1.7.jar), Attributed(/Users/eric/.ivy2/cache/org.fusesource.hawtjni/hawtjni-runtime/jars/hawtjni-runtime-1.8.jar), Attributed(/Users/eric/.ivy2/cache/org.fusesource.leveldbjni/leveldbjni-osx/jars/leveldbjni-osx-1.5.jar), Attributed(/Users/eric/.ivy2/cache/org.fusesource.leveldbjni/leveldbjni-linux32/jars/leveldbjni-linux32-1.5.jar), Attributed(/Users/eric/.ivy2/cache/org.fusesource.leveldbjni/leveldbjni-linux64/jars/leveldbjni-linux64-1.5.jar), Attributed(/Users/eric/.ivy2/cache/org.fusesource.leveldbjni/leveldbjni-win32/jars/leveldbjni-win32-1.5.jar), Attributed(/Users/eric/.ivy2/cache/org.fusesource.leveldbjni/leveldbjni-win64/jars/leveldbjni-win64-1.5.jar), Attributed(/Users/eric/.ivy2/cache/com.typesafe.akka/akka-slf4j_2.11/jars/akka-slf4j_2.11-2.3.5.jar), Attributed(/Users/eric/.ivy2/cache/tv.cntt/glokka_2.11/jars/glokka_2.11-2.0.jar), Attributed(/Users/eric/.ivy2/cache/com.beachape.filemanagement/schwatcher_2.11/jars/schwatcher_2.11-0.1.5.jar), Attributed(/Users/eric/.ivy2/cache/com.netflix.rxjava/rxjava-scala/jars/rxjava-scala-0.18.1.jar), Attributed(/Users/eric/.ivy2/cache/com.netflix.rxjava/rxjava-core/jars/rxjava-core-0.18.1.jar), Attributed(/Users/eric/.ivy2/cache/tv.cntt/sclasner_2.11/jars/sclasner_2.11-1.6.jar), Attributed(/Users/eric/.ivy2/cache/tv.cntt/chill-scala_2.11/jars/chill-scala_2.11-1.2.jar), Attributed(/Users/eric/.ivy2/cache/com.esotericsoftware.kryo/kryo/bundles/kryo-2.21.jar), Attributed(/Users/eric/.ivy2/cache/com.esotericsoftware.reflectasm/reflectasm/jars/reflectasm-1.07-shaded.jar), Attributed(/Users/eric/.ivy2/cache/org.ow2.asm/asm/jars/asm-4.0.jar), Attributed(/Users/eric/.ivy2/cache/com.esotericsoftware.minlog/minlog/jars/minlog-1.2.jar), Attributed(/Users/eric/.ivy2/cache/org.objenesis/objenesis/jars/objenesis-1.2.jar), Attributed(/Users/eric/.ivy2/cache/org.json4s/json4s-jackson_2.11/jars/json4s-jackson_2.11-3.2.10.jar), Attributed(/Users/eric/.ivy2/cache/org.json4s/json4s-core_2.11/jars/json4s-core_2.11-3.2.10.jar), Attributed(/Users/eric/.ivy2/cache/org.json4s/json4s-ast_2.11/jars/json4s-ast_2.11-3.2.10.jar), Attributed(/Users/eric/.ivy2/cache/com.thoughtworks.paranamer/paranamer/jars/paranamer-2.6.jar), Attributed(/Users/eric/.ivy2/cache/org.scala-lang/scalap/jars/scalap-2.11.2.jar), Attributed(/Users/eric/.ivy2/cache/org.scala-lang/scala-compiler/jars/scala-compiler-2.11.2.jar), Attributed(/Users/eric/.ivy2/cache/org.scala-lang/scala-reflect/jars/scala-reflect-2.11.2.jar), Attributed(/Users/eric/.ivy2/cache/org.scala-lang.modules/scala-xml_2.11/bundles/scala-xml_2.11-1.0.2.jar), Attributed(/Users/eric/.ivy2/cache/org.scala-lang.modules/scala-parser-combinators_2.11/bundles/scala-parser-combinators_2.11-1.0.2.jar), Attributed(/Users/eric/.ivy2/cache/com.fasterxml.jackson.core/jackson-databind/bundles/jackson-databind-2.3.1.jar), Attributed(/Users/eric/.ivy2/cache/com.fasterxml.jackson.core/jackson-annotations/bundles/jackson-annotations-2.3.0.jar), Attributed(/Users/eric/.ivy2/cache/com.fasterxml.jackson.core/jackson-core/bundles/jackson-core-2.3.1.jar), Attributed(/Users/eric/.ivy2/cache/tv.cntt/scaposer_2.11/jars/scaposer_2.11-1.4.jar), Attributed(/Users/eric/.ivy2/cache/org.apache.commons/commons-lang3/jars/commons-lang3-3.3.2.jar), Attributed(/Users/eric/.ivy2/cache/tv.cntt/rhinocoffeescript/jars/rhinocoffeescript-1.7.1.jar), Attributed(/Users/eric/.ivy2/cache/org.mozilla/rhino/jars/rhino-1.7R4.jar), Attributed(/Users/eric/.ivy2/cache/nl.grons/metrics-scala_2.11/jars/metrics-scala_2.11-3.2.1_a2.3.jar), Attributed(/Users/eric/.ivy2/cache/com.codahale.metrics/metrics-core/bundles/metrics-core-3.0.2.jar), Attributed(/Users/eric/.ivy2/cache/com.codahale.metrics/metrics-healthchecks/bundles/metrics-healthchecks-3.0.2.jar), Attributed(/Users/eric/.ivy2/cache/com.codahale.metrics/metrics-json/bundles/metrics-json-3.0.2.jar), Attributed(/Users/eric/.ivy2/cache/org.webjars/jquery/jars/jquery-2.1.1.jar), Attributed(/Users/eric/.ivy2/cache/org.webjars/jquery-validation/jars/jquery-validation-1.13.0.jar), Attributed(/Users/eric/.ivy2/cache/org.webjars/sockjs-client/jars/sockjs-client-0.3.4.jar), Attributed(/Users/eric/.ivy2/cache/org.webjars/swagger-ui/jars/swagger-ui-2.0.22.jar), Attributed(/Users/eric/.ivy2/cache/org.webjars/d3js/jars/d3js-3.4.11.jar), Attributed(/Users/eric/.ivy2/cache/ch.qos.logback/logback-classic/jars/logback-classic-1.1.2.jar), Attributed(/Users/eric/.ivy2/cache/ch.qos.logback/logback-core/jars/logback-core-1.1.2.jar), Attributed(/Users/eric/.ivy2/cache/org.codehaus.janino/janino/jars/janino-2.7.5.jar), Attributed(/Users/eric/.ivy2/cache/org.codehaus.janino/commons-compiler/jars/commons-compiler-2.7.5.jar), Attributed(/Users/eric/.ivy2/cache/org.webjars/bootstrap/jars/bootstrap-3.2.0.jar), Attributed(/Users/eric/.ivy2/cache/tv.cntt/xitrum-scalate_2.11/jars/xitrum-scalate_2.11-2.2.jar), Attributed(/Users/eric/.ivy2/cache/org.scalatra.scalate/scalate-core_2.11/bundles/scalate-core_2.11-1.7.0.jar), Attributed(/Users/eric/.ivy2/cache/org.scalatra.scalate/scalate-util_2.11/bundles/scalate-util_2.11-1.7.0.jar), Attributed(/Users/eric/.ivy2/cache/org.scalatra.scalate/scalamd_2.11/bundles/scalamd_2.11-1.6.1.jar)))', configuration: 'test', ref: 'ProjectRef(file:/Users/eric/Work/xitrum-new/,xitrum-new)', state: 'sbt.State@2d2b6960'
er1c commented 10 years ago

@dragos @jsuereth One of you should probably tag this issue as documentation-related. I don't think the intended behavior would be to automatically take any class-path that is in the Compile configuration and add it to the "Test" configuration. This should probably just be explicitly added to the build.sbt to generate the desired behavior, and explicitly added to the Test configuration. Especially considering @dragos mentioning there is just one classpath config for eclipse projects, there just doesn't appear to be a way to properly "juggle" this setting in sbteclipse