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

Ads
Ads

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


Java Coder
How to add the servlet api to my pom.xml?
1 Answer(s)      4 years and 2 months ago
Posted in : Java Beginners
Ads

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


Ads









Related Tutorials/Questions & Answers:
Advertisements