Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-2350

Sling Maven JSPC Plugin depends on legacy Sling API lib which does not support adaptable SlingHttpServletRequest objects

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Maven JSPC Plugin 2.0.4
    • Maven JSPC Plugin 2.0.6

    Description

      Buiding Sling-based project using the Maven JSPC Plugin but am getting compilation errors because SlingHttpServletRequest object doesn't have .adaptTo(...) defined.

      Latest Sling API docs state:
      Starting with Sling API 2.0.6, this [SlingHttpServletRequest] interface also extends the Adaptable interface.

      Sling Maven JSPC Plugin 2.0.4-incubator plugin [1] depends on "Sling Scripting 2.0.2-incubator" [2] which in turn depends on "Sling API 2.0.2-incubator" which is older than 2.0.6 thus no Adaptable support.

      [1] http://svn.apache.org/repos/asf/sling/tags/maven-jspc-plugin-2.0.4-incubator/pom.xml
      [2] http://svn.apache.org/viewvc/sling/tags/org.apache.sling.scripting.jsp-2.0.2-incubator/pom.xml?view=markup

      Attachments

        1. jspc-test.zip
          28 kB
          David Gonzalez
        2. pom.xml.diff
          0.5 kB
          David Gonzalez
        3. pom.xml
          4 kB
          David Gonzalez

        Activity

          People

            cziegeler Carsten Ziegeler
            empire29 David Gonzalez
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0.5h
                0.5h
                Remaining:
                Remaining Estimate - 0.5h
                0.5h
                Logged:
                Time Spent - Not Specified
                Not Specified