classgraph: Classgraph can't find percent-encoded Coursier paths for private repositories
I’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.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 19 (10 by maintainers)
Commits related to this issue
- Allow %-encoded dir names to be matched by non-%-encoded paths (#255) — committed to classgraph/classgraph by lukehutch 6 years ago
I’ll report back in case of any issues.