I am new to maven.
mvn eclipse:clean
The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path home.jsp
After adding the server runtime library manually the problem solved. Is there any other way to solve the problem or the problem will not occur at all.
Add below dependency in your pom.xml to avoid the exception:
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
<scope>provided</scope>
</dependency>