question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RC[1..3] do not honor `artifacts()`

See original GitHub issue

I have a minimal repro here.

The gist is the dependency

libraryDependencies += "org.wildfly" % "wildfly-dist" % "8.2.1.Final" artifacts(Artifact("wildfly-dist", "bundle", "zip"))

(I don’t use wildfly 😇 I’m asking for a friend)

Basically if you run sbt test (or anything else really) you will note that with coursier M15 the zip artifact classifier is honored:

[info] Loading global plugins from /home/mriehl/.sbt/0.13/plugins
[info] Loading project definition from /home/mriehl/workspace/coursier-artifacts/project
[info] Updating {file:/home/mriehl/workspace/coursier-artifacts/project/}coursier-artifacts-build...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[info] Set current project to coursier-artifacts (in build file:/home/mriehl/workspace/coursier-artifacts/)
> test
[info] Fetching artifacts of coursier-artifacts
[info] Fetched artifacts of coursier-artifactsdfly-dist/8.2.1.Final/wildfly-dist-8.2.1.Final.zip

This is also what happens with ivy as a resolver. The task wildFly then runs without issues.

But with RC1 and up (I tested RC2 and RC3) it only downloads some poms:

[info] Loading global plugins from /home/mriehl/.sbt/0.13/plugins                
[info] Loading project definition from /home/mriehl/workspace/coursier-artifacts/project
[info] Set current project to coursier-artifacts (in build file:/home/mriehl/workspace/coursier-artifacts/)
> test                                                                                               
[info] Updating coursier-artifacts                                                                  
https://repo1.maven.org/maven2/org/wildfly/wildfly-dist/8.2.1.Final/wildfly-dist-8.2.1.Final.pom
  100.0% [##########] 4.4 KiB (10.4 KiB / s)                               
https://repo1.maven.org/maven2/org/wildfly/wildfly-dist-parent/8.2.1.Final/wildfly-dist-parent-8.2.1.Final.pom
  100.0% [##########] 2.0 KiB (11.2 KiB / s)                                        
https://repo1.maven.org/maven2/org/wildfly/wildfly-parent/8.2.1.Final/wildfly-parent-8.2.1.Final.pom
  100.0% [##########] 291.6 KiB (2.6 MiB / s)                                             
https://repo1.maven.org/maven2/org/wildfly/wildfly-build-config/8.2.1.Final/wildfly-build-config-8.2.1.Final.pom
  100.0% [##########] 2.5 KiB (84.9 KiB / s)                                                                                     
[info] Resolved coursier-artifacts dependencies                                                                           
[info] Fetching artifacts of coursier-artifacts                                                      
[info] Fetched artifacts of coursier-artifacts 

The wilfFly sbt task then fails, due to missing the artifact (it implodes on None.get).

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
fkoehlercommented, May 22, 2017

I can verify that it is broken up to -RC3 and working in -M15. I have defined for an internal lib:

"de.internal.common" %% "core" % "1.0" % Test classifier "tests")

which gets resolved correctly in M15 but not working in RC3

1reaction
mriehlcommented, May 15, 2017

Hmm, it does work indeed. Thanks that’s a much better solution than a downgrade to M15!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Do Not Honor: Meaning, Causes, & What to Do
A do not honor (decline code 05) fired by card-issuing banks like Chase means the customer's bank will not validate the transaction and...
Read more >
Gradle tries to Pull gradle metadata regardless of ... - GitHub
Currently, metadata sources are ordered. If you do nothing, we configure (for a Maven repository), POM file and artifact. However, the POM ...
Read more >
What Does The Credit Card "Do Not Honor" Fail Message ...
Essentially, it mans that the credit card being used for the transaction has been completely rejected by the issuing bank. To resolve the...
Read more >
Gradle 4.6-rc-1 Release Notes
Now, if this new behavior is turned on, the Java and Java Library plugins both honor the separation of compile and runtime scopes....
Read more >
Android Studio 2021.2.1 Closed Issues
Android Studio Chipmunk RC 1 (2021.2.1.12) ... Issue #201405014. Macrobenchmark Links (that are not Perfetto Traces) don't work in Studio ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found