Issue 1632: gerrit depends on two versions of the servlet-api
Status:  New
Owner: ----
Reported by thkoch2001@gmail.com, Oct 29, 2012
Gerrit depends on two versions of the servlet-api:

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

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

In eclipse I had to take care of the correct order of both libraries to avoid compilation errors.

This also causes problems for me when packaging for Debian.

Could you remove the dependency on the older version?
Oct 29, 2012
#1 sop@google.com
No. Right now my build for gerrit-review requires servlet 2.5. If I upgrade the servlet API to 3.0 I will have to fork Gerrit, and doing that means we will be spending our cycles maintaining our fork rather than contributing upstream to Gerrit.

m2e should be importing the correct versions in the correct places. If its not, we should be able to fix this because we exclude servlet 3.0 in some places and 2.5 in others to get the right classpath at compile time.
Nov 1, 2012
#2 Dariusz.Luksza
Other issue of having both servlet-api declared as provided in gerrit-war pom.xml file is that now we cannot use pgm_debug launch configuration because m2e adds both jars to classpath. This results in NoSuchMethodError exception when you try to log in using DEVELOPMENT_BECOME_ANY_ACCOUNT or OPENID
Nov 29, 2012
Project Member #3 edwin.ke...@gmail.com
The issue with the pgm_debug launch configuration was fixed by [1].

[1] https://gerrit-review.googlesource.com/38962