sbt / sbt/sbt-eclipse

classifier ignored

Open
#222 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Scala
Stars
712
Forks
163
PR merge metrics
No merged PRs in 30d

Description

I added a dependency with a classifier, and it seems to confuse sbteclipse. Example:

 "com.github.fommil.netlib" % "netlib-native_system-linux-x86_64" % "1.1" classifier "natives"

while sbt correctly downloads the correct jar with the -natives appended

[info] downloading https://repo1.maven.org/maven2/com/github/fommil/netlib/netlib-native_system-osx-x86_64/1.1/netlib-native_system-osx-x86_64-1.1-natives.jar

sbteclipse fails, trying to download without the -natives suffix. This fails, and takes a long time to timeout (especially because it tries again for every dependent project).

[warn]  [NOT FOUND  ] com.github.fommil.netlib#netlib-native_system-linux-x86_64;1.1!netlib-native_system-linux-x86_64.jar (123ms)

Is there a way to work around this?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the classifier dependency example in sbteclipse and compare its handling with the successful sbt download. Trace where the dependency artifact name is assembled and verify that the classifier suffix is included, then confirm the failed unsuffixed lookup no longer occurs for dependent projects.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.