How to add the servlet api to my pom.xml?

Hi,

I have learned Maven Web Application: Creating web application in Maven 3 from your website.

Now I have to add the servlet api in pom.xml file.

Let's know how to add the servlet api to my pom.xml?

Thanks

View Answers

April 18, 2014 at 2:38 PM

Hi,

Use the following code in your pom.xml file:

<dependency>
    <groupId>javax.servlet</groupId>
    <artifactId>servlet-api</artifactId>
    <version>2.5</version>
    <scope>provided</scope>
</dependency>

Thanks









Related Tutorials/Questions & Answers:
Advertisements