<#17521 When getting started with the JVM, it's no...
# github-notifications
q
#17521 When getting started with the JVM, it's not obvious how/when to create your intial lockfile New issue created by stuhood To create a lockfile for the JVM, you need to run
./pants generate-lockfiles
. But if you haven't done that, and have redefined the lockfile location, you will get a unmatched globs warning instead:
Copy code
10:14:46.00 [ERROR] 1 Exception encountered:

  Exception: Unmatched glob from The resolve `jvm-default` from `[jvm].resolves`: "lib/3rdparty/jvm/default.lock"

Do the file(s) exist? If so, check if the file(s) are in your `.gitignore` or the global `pants_ignore` option, which may result in Pants not being able to see the file(s) even though they exist on disk. Refer to <https://www.pantsbuild.org/v2.14/docs/troubleshooting#pants-cannot-find-a-file-in-your-project>.
Rather than an unmatched glob, we should instead detect the missing file at a higher level, and explain how to create the lockfile. It looks like we already attempt to do that (in some cases): pants/src/python/pants/jvm/resolve/coursier_fetch.py Lines 761 to 767 in </pantsbuild/pants/commit/c1514b73a6248a366228549c95bc1cc00fc2d93c|c1514b7> ... but apparently not in others. pantsbuild/pants