Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners How to add the servlet api to my pom.xml?
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


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


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


Advertisement
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
Advertisements
 

 

 

DMCA.com