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.

Classgraph can't find percent-encoded Coursier paths for private repositories

See original GitHub issue

I’m using classgraph to resolve artifacts in sbt project with coursier.

We have two dependency types:

  1. Pusblished on public repositories
  2. Published on our private repository

While running under JDK 10 (OpenJDK 64-Bit Server VM Zulu10.3+5 (build 10.0.2+13, mixed mode)) within SBT or under Idea classgraph fails to resolve any classes from private repo artifacts.

At the same time it resolves these classes without an issue in case I gather all the dependencies manually into a directory and run java providing them all as classpath entries.

I’m almost sure that this is happening because of crappy directory naming convention used by coursier:

/Users/<user>/Library/Caches/Coursier/v1/https/<username>%40<company>.com%40<company>.jfrog.io/<company>/<repo>/com/<company>/<artifact>/<version>/<name>.jar

Seems like classgraphs fails to scan directories with % in name.

All such jars are completely missing from classgraph debug output.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:19 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
pshirshovcommented, Nov 30, 2018

I’ll report back in case of any issues.

0reactions
lukehutchcommented, Dec 1, 2018

Strange – there may have been a change in URL or file path handling in JDK 10 that causes this issue.

Either way, ClassGraph 4.6.0 (which implements the new behavior, and should be released soon) should not exhibit a regression, if the classpath is set up as typical (without “file:” or “jar:file:” prefixes on classpath entries).

Read more comments on GitHub >

github_iconTop Results From Across the Web

ClassGraph - GitHub
ClassGraph scans the classpath or module path using carefully optimized multithreaded code for the shortest possible scan times, and it runs as close...
Read more >
Error starting Springboot when update version to 2.7.0 "An ...
classgraph :classgraph but their versions are incompatible. Spring Boot's dependency management for webjars-core-locator uses version 0.50 .
Read more >
Gruff | AllegroGraph 7.3.0 - Franz Inc.
Gruff is an interactive tool for browsing, querying, and editing triple-stores (which are also known as graph databases or repositories). It ...
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