Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.6.0 doesn't reference test classifier jars correctly #302

Open
taylorleese opened this issue Apr 30, 2014 · 4 comments
Open

1.6.0 doesn't reference test classifier jars correctly #302

taylorleese opened this issue Apr 30, 2014 · 4 comments

Comments

@taylorleese
Copy link

In gen-idea 1.5.2 test classifer jars are referenced correctly. In 1.6.0 they are not.

@fahman
Copy link

fahman commented Jun 21, 2014

I am guessing that issue is the same reported by taylorleese. Also using 1.6.0 together with IDEA 13.1.3.

If using this in Dependency.scala:

  private object HBase {
    val server = "org.apache.hbase" % "hbase-server" % Version.HBase
    val common = "org.apache.hbase" % "hbase-common" % Version.HBase
    val compat = "org.apache.hbase" % "hbase-hadoop-compat" % Version.HBase
    val compat2 = "org.apache.hbase" % "hbase-hadoop2-compat" % Version.HBase
    // TODO "test" scope had to be removed because sbt-idea won't add jars and, as a result, IDE won't compile anymore
    val commonTests = "org.apache.hbase" % "hbase-common" % Version.HBase % "test" classifier "tests"
    val serverTests = "org.apache.hbase" % "hbase-server" % Version.HBase % "test" classifier "tests"
    val compatTests = "org.apache.hbase" % "hbase-hadoop-compat" % Version.HBase % "test" classifier "tests"
    val compat2Tests = "org.apache.hbase" % "hbase-hadoop2-compat" % Version.HBase % "test" classifier "tests"
  }

all of the dependencies with test-scope do not show up in IDEA anymore and I am unable to compile (works from sbt command line tho).

@taylorleese
Copy link
Author

@fahman It does look like the same issue. I bet 1.5.2 works for you. I hope this can be fixed soon so I can upgrade again.

@fahman
Copy link

fahman commented Jun 22, 2014

I just downgraded plugin to 1.5.2 but the issue still remain. This issue appears to me similar to SBT-IDEA#145

In particular I'd like to point out that I have same deps TWICE! as normal (compile) scoped dep and test scoped with classifier "tests" (those test-jars contain +20MB of classes that spin-of mini-cluster for testing purposes, thus the separation is very useful). In SBT-IDEA#145 mpeltonen comments that this could be the cause of the issue.

@mengxr
Copy link

mengxr commented Jul 14, 2014

We have the same issue with Spark, as documented in https://issues.apache.org/jira/browse/SPARK-1835 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants