This case uses the native java_binary and java_library rules. The java_library rule compiles and links sources into a .jar file The java_binary rule builds a jar file, plus a wrapper shell script. See bazel-bin/workshop/case2/hello.runfiles/_main/workshop/case2/hello for the wrapper script.
Maven dependencies are resolved using the WORKSPACE file and the maven_install.json file.
Update the WORKSPACE.bazel file with new versions and run bazel run @maven//:pin to update the maven_install.json file.
bazel query "deps(//workshop/case2:hello)"
vs
bazel query "deps('//workshop/case2:hello') intersect //..."
bazel cquery //workshop/case2:hello --output=files

