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.

Could not resolve io.jsonwebtoken:jjwt-api:0.9.1

See original GitHub issue

I’m trying to use jjwt with spring boot and I used gradle like it’s said in the readme of this github like this :

dependencies {
    api 'io.jsonwebtoken:jjwt-api:0.11.2'
    runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.11.2' 
    runtimeOnly('io.jsonwebtoken:jjwt-orgjson:0.11.2') {
        exclude group: 'org.json', module: 'json' //provided by Android natively
    }

and changed the version from 0.11.2 to 0.9.1 because I’m following this guide that uses this library.

I keep getting this error message even when switching to the newest version:

Could not resolve io.jsonwebtoken:jjwt-api:0.9.1.

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
martinvissercommented, Feb 9, 2021

@hadestructhor There is no jjwt-api version 0.9.x, that was introduced in 0.10.0. See for example https://mvnrepository.com/artifact/io.jsonwebtoken/jjwt-api. The question is why you need to downgrade though.

@scharrua Your dependency is just fine, which should resolve normally. See https://mvnrepository.com/artifact/io.jsonwebtoken/jjwt/0.9.1.

To me, this doesn’t sound like an issue of jjwt, just a misconfiguration.

1reaction
lhazlewoodcommented, Feb 15, 2021

Artifact names changed with the 0.10.x release, so when you downgraded below 0.10.x, the names were incorrect. Please read the following for the correct current names:

https://github.com/jwtk/jjwt#install

Read more comments on GitHub >

github_iconTop Results From Across the Web

jwt dependency not found in Springboot 2.2.6 - Stack Overflow
I was facing something like "dependency io.jsonwebtoken::jjwt:0.9.1 not found" when I added io.jsonwebtoken dependency same with your case.
Read more >
io.jsonwebtoken : jjwt : 0.9.1 - Maven Central Repository Search
JSON Web Token support for the JVM.
Read more >
Implement Spring Boot + JSON Web Token Security - JavaInUse
We will be implementing Spring Boot Security using JWT.In this tutorial we will also be looking at how to manage role based authorization...
Read more >
JwtParser (JSON Web Token support for the JVM 0.9.1 API)
Parses the specified compact serialized JWT string based on the builder's current ... If missing or if the parsed value does not equal...
Read more >
io.jsonwebtoken » jjwt » 0.9.0 - Maven Repository
JSON Web Token Support For The JVM. License, Apache 2.0. Categories, JWT Libraries. Tags, jwtjsonsecurity ... New Version, 0.9.1 ...
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