Jared
Jared

Reputation: 39877

What Maven repository should I use to obtain tomcat jars?

I’m trying to use Gradle to build a project that will run an imbedded instance of Tomcat. I want to use the Tomcat jar files as dependencies on my project, not use a Tomcat plug-in to run a web app. The main Maven repository doesn’t appear to have Tomcat in it, and the only repository I found with Tomcat is < http://tomcat.apache.org/dev/dist/m2-repository/org/apache/tomcat/> which is fairly out of date. The last version of Tomcat 7 that appears to be available in that repository is 7.0.2 and Tomcat 7 is now up to 7.0.19

Upvotes: 3

Views: 3517

Answers (1)

bstick12
bstick12

Reputation: 1749

The main repository does have Tomcat 7 jars. See http://tomcat.apache.org/tomcat-7.0-doc/maven-jars.html

<dependency>
   <groupId>org.apache.tomcat</groupId>
   <artifactId>tomcat-api</artifactId>
   <version>7.0.19</version>
</dependency>

Above is a sample dependency. Perhaps you are using the wrong groupId.

Upvotes: 5

Related Questions