Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-16007

Regression - javax.servlet-api.jar shoud not be in WEB-INF/lib

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • 9.0
    • Build
    • None

    Description

      In SOLR-15984, javax.servlet-api dependency was explicitly added to solr-core. This library is already included by Jetty, so has always existed in server/lib. Now after SOLR-15984, the servlet jar is also added to WEB-INF/lib causing smoketester to fail, as javax classes are forbidden in the distribution.

      I have tried to remove this line again: https://github.com/apache/solr/commit/0ab2705f22553dc764c15fde47f927220e1c1d56#commitcomment-66617212 but then the build complains about usedUndeclaredArtifacts

      Then I tried to make an exclusion permitUsedUndeclared 'javax.servlet:javax.servlet-api:3.1.0', but that seems to have no effect at all.

      krisden 

      Attachments

        Issue Links

          Activity

            People

              krisden Kevin Risden
              janhoy Jan Høydahl
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m