Managing Maven Dependencies with Jakarta Servlet and MySQL

Giovanni Pace

Description

Let's see how to manage Maven dependencies in pom.xml for a Servlet project: including jakarta.servlet-api with provided scope and the mysql-connector-j driver with the correct versions. I'll explain why some dependencies must be declared as provided to avoid conflicts with Tomcat.