There are several ways to add dependencies in Java Enterprise applications. If we think from a maven perspective, there are “compile” scoped dependencies and “provided” scoped dependencies. I’m more focused on creating a web service(as a WAR) here. If we set the scope as “compile”, You’ll be able to see…