Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Maven JSPC Plugin 2.0.4
-
Apache Maven 3.0.3 (r1075438; 2011-02-28 12:31:09-0500)
Maven home: /usr/share/maven
Java version: 1.6.0_29, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.7.2", arch: "x86_64", family: "mac"Apache Maven 3.0.3 (r1075438; 2011-02-28 12:31:09-0500) Maven home: /usr/share/maven Java version: 1.6.0_29, vendor: Apple Inc. Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Default locale: en_US, platform encoding: MacRoman OS name: "mac os x", version: "10.7.2", arch: "x86_64", family: "mac"
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