I am using maven2, how do I add a dependency to JSTL (The JSP Standard Tag Library) ?
+2
A:
You need to add it to your pom.xml file.
In the dependencies node you need to add a reference to JSTL. You will probably need to set its scope to compile. So it would look something like this
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>"whatever version you need"</version>
<scope>runtime</scope>
</dependency>
This is assuming you have the proper references to the maven distribution repository in your pom.xml or settings.xml
Shayan
2010-02-16 20:31:35