javax.servlet:servlet-api should not be included in WAR

I deployed the WAR on a tomcat and it complained that servlet-api was included in the WAR. 

I marked the dependency as "provided", now it's no longer included in the WAR.