I was trying to implement a login filter in my web app with jsf 2, following this guide:
https://stackoverflow.com/tags/servlet-filters/info
after I compiled
I only put this code in my pom.xml and I executed the command maven install.
javax.servlet javax.servlet-api 3.0.1 provided