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.

Binaries JAR not downloaded

See original GitHub issue

Hi,

I’ve added the dependency "com.siftscience" % "sift-java" % "1.2" to my project, which has a really simple POM ( https://search.maven.org/remotecontent?filepath=com/siftscience/sift-java/1.2/sift-java-1.2.pom ). To my greatest surprise, the .jar file is not downloaded by coursier and my project fails to build. (sources, pom, javadoc are there in the cache; furthermore, dependencies are correctly resolved, downloaded, put on classpath.)

Without coursier, SBT handles the task correctly.

Please give me some pointers on what could be wrong. Thanks!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kzyscommented, Jan 14, 2017

I see. This is, probably because the packaging element the pom has.

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.siftscience</groupId>
  <artifactId>sift-java</artifactId>
  <version>1.2</version>
  <packaging>pom</packaging>
  ...

Since pom is specified, Coursier downloads the pom file instead of the jar file.

0reactions
alexarchambaultcommented, Feb 28, 2017

This should be fixed in the current master, and will be included in the upcoming 1.0.0-M15-2. Feel free to re-open if you still face this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Project dependency jar not downloaded in maven repository ...
First run maven-install for the projects 'pf-schema-v3' and check if gets added to the repository.Do not run maven-build as it will only ...
Read more >
Buildship doesn't download source jar of dependency #655
Exactly. With m2e, you have in the preferences the option not to (eagerly) to download the source jars with the binary jars: the...
Read more >
Download JAR files tagged by binary with all dependencies
Download JAR files tagged by binary ✓ With dependencies ✓ Documentation ✓ Source code. ... There is no JAR file uploaded. A download...
Read more >
Eclipse plugin not downloading source if JAR found in ...
My environment consists of a mixture of Maven and Gradle projects which seems to cause issues with the downloading of source by the...
Read more >
Non-Java Binary Dependencies in Maven - Rolfje's blog
The hardest part of this problem is getting the binary uploaded to your maven repository. It seems that there is no other way...
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