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.

[BUG] Could not find com.fasterxml.jackson.core:jackson-databind:.

See original GitHub issue

Bug Report

Describe the bug

I’m trying to upgrade the version from 4.7.0 to later of the line-bot-api-client, but it’s not working. Could not find com.fasterxml.jackson.core:jackson-databind:. error is reported when adding dependency by gradle(version 7.4). I know that com.fasterxml.jackson.core:jackson-databind:. is the compile dependency of the line-bot-model which is compile dependency of the line-bot-api-client.

The following is the build.gradle file that I used for test.

plugins {
    id 'java'
}

group 'org.example'
version '1.0-SNAPSHOT'

repositories {
    mavenCentral()
}

dependencies {
    implementation 'com.linecorp.bot:line-bot-api-client:4.8.0' // or later version
}

I know that gradle download the jar files of transitive dependencies either runtime or compile time dependencies. I don’t know why gradle doesn’t download com.fasterxml.jackson.core:jackson-databind:. so that it cannot find the classpath when compile time. This only happens when version is 4.8.0 or later.

I found that you used maven-publish plugin instead of maven plugin when publishing sdk to maven from version 4.8.0. Is this the reason why gradle didn’t download the transitive dependencies? I’m not sure if this is my problem or external.

Screenshots image

Environment (please complete the following information):

  • OS: macOS Monterey 12.2.1
  • JDK: corretto-17
  • line-bot-api-client version: > 4.7.0
  • Gradle version: 4.7

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
tokuhiromcommented, Aug 15, 2022

I reproduced this issue. And it may caused by switching maven plugin to maven-publish plugin. https://github.com/line/line-bot-sdk-java/compare/4.7.0...4.8.0

1reaction
tokuhiromcommented, Aug 12, 2022

Yes, it’s a bug. It’ll fix by #802

Read more comments on GitHub >

github_iconTop Results From Across the Web

Could not find artifact com.fasterxml.jackson.module ... - GitHub
A clear and concise description of what the bug is. Could not find artifact com.fasterxml.jackson.module:jackson-module-kotlin:pom:2.13.2 in ...
Read more >
java - Maven - can't download fasterxml.jackson - Stack Overflow
I tried this on 2 computer in different network environment, the result is the same. Error message in eclipse: Missing artifact com.fasterxml.
Read more >
com.fasterxml.jackson.core : jackson-databind : 2.13.2.2
jackson -databind - General data-binding functionality for Jackson: works on core streaming API.
Read more >
Maven dependency issue - MuleSoft Help Center
Could not resolve dependencies for project com. ... com.fasterxml.jackson.core:jackson-databind:jar:2.12.1: Could not find artifact ...
Read more >
Learning the Basics - Gradle User Manual
Gradle stores resolved dependencies in its own cache. A build does not need to declare the local Maven repository even if you resolve...
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