Reputation: 27
getting error for maven-compiler-pluggin in eclipse any solution?
Upvotes: 0
Views: 1530
Reputation: 661
You have to include the servlet-api-xxx.jar
in your dependencies.
Maven
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>4.0.0</version>
<scope>provided</scope>
</dependency>
Upvotes: 0
Reputation: 643
As the error says you are missing one class, so you'll need to add the dependency, as is a dependency that will exist on server mark it as provided to indicate maven to use it in compile time but not include it in the generated artifact (provided by deploy environment). Try adding this dependency in your project pom.xml:
<!-- https://mvnrepository.com/artifact/javax.servlet/servlet-api -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>
Hopes this helps.
Upvotes: 1