Classgraph can't find percent-encoded Coursier paths for private repositories
See original GitHub issueI’m using classgraph to resolve artifacts in sbt project with coursier.
We have two dependency types:
- Pusblished on public repositories
- 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:
- Created 5 years ago
- Comments:19 (10 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ll report back in case of any issues.
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).