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

[error] a required artifact is not listed by module descriptor: *#*!*.* #364

Open
spangaer opened this issue May 29, 2018 · 2 comments
Open

Comments

@spangaer
Copy link
Contributor

spangaer commented May 29, 2018

When I link my projects together in a certain way, sbt produces this error when running sbt eclipse.

[info] About to create Eclipse project files for your project(s).
[error] a required artifact is not listed by module descriptor: *#*!*.*
[error] a required artifact is not listed by module descriptor: *#*!*.*
[error] a required artifact is not listed by module descriptor: *#*!*.*
[error] a required artifact is not listed by module descriptor: *#*!*.*
[error] a required artifact is not listed by module descriptor: *#*!*.*
[error] a required artifact is not listed by module descriptor: *#*!*.*
...

Everything else works fine, compiling, building assemblies,... Even the project generation doesn't seem to suffer.

One special thing about the projects is that they transitively depend on other modules in the project.

Say my project has 5 modules, mA, mB, mC, mD, mE.
And one extnernal dependency (which can be used both as a source as a binary dependency) d1.

They depend like this.


mA <- mB <- mC <- mD -
       ^     ` <- mE - `
       |               |
        ` d1 < -------´
        

It goes sour in modules D and E, but if I look at the dependency tree everything looks as expected (e.g. version conflicts are resolved as expected).

One thing I might add is that I systemically use EclipseKeys.withSource := true.
And when I run sbt updateSbtClassifiers, I get a somewhat unexpected failed download:

[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::              FAILED DOWNLOADS            ::
[warn]  :: ^ see resolution messages for details  ^ ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: com.typesafe.sbteclipse#sbteclipse-plugin;5.2.4!sbteclipse-plugin.jar(src)
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::

I will note, the latter was observed by trying pretty much anything, without any success.
As stated, everything works, I'd just like to get some understanding why it produces the error and ideally how to avoid it, as seeing errors from "build output" hurts the eyes.

sbt: 1.1.4
sbt-eclipse: 5.2.4
scala: 2.12.5

@ps3331333
Copy link

ps3331333 commented Jul 18, 2018

I started seeing this error messages when I migrated from play 2.5 to 2.6

@anilkumarmalipatil
Copy link

I faced the same problem with one of the external dependency. The problem disappears when I updated the version of external dependency to the latest

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