Author: fmeschbe
Date: Wed Dec 5 13:09:46 2007
New Revision: 601527
URL: http://svn.apache.org/viewvc?rev=601527&view=rev
Log:
* Compile JSPs using the Sling Maven JSPC plugin
* Include JSP source files
* Register the JSP source and class files with the ResourceResolver
* Export JSP classes to enable OSGi based class loading
Modified:
incubator/sling/trunk/sling/sample/pom.xml
Modified: incubator/sling/trunk/sling/sample/pom.xml
URL:
http://svn.apache.org/viewvc/incubator/sling/trunk/sling/sample/pom.xml?rev=601527&r1=601526&r2=601527&view=diff
==============================================================================
--- incubator/sling/trunk/sling/sample/pom.xml (original)
+++ incubator/sling/trunk/sling/sample/pom.xml Wed Dec 5 13:09:46 2007
@@ -32,9 +32,10 @@
<name>Sling - Sample Sling Application</name>
<description>
- This bundle provides a simple Sling Application to show some of the
- features and functionalities of Sling, such as node type definition,
- content mapping, running JSPs off the repository and the bundle.
+ This bundle provides a simple Sling Application to show some of
+ the features and functionalities of Sling, such as node type
+ definition, content mapping, running JSPs off the repository and
+ the bundle.
</description>
<build>
@@ -44,7 +45,8 @@
<groupId>org.apache.sling</groupId>
<artifactId>maven-jcrocm-plugin</artifactId>
</plugin>
- <!-- Compile JSP scripts into the bundle
+
+ <!-- Compile JSP scripts into the bundle -->
<plugin>
<groupId>org.apache.sling</groupId>
<artifactId>maven-jspc-plugin</artifactId>
@@ -56,7 +58,8 @@
</goals>
</execution>
</executions>
- </plugin>-->
+ </plugin>
+
<!-- Generation of SCR descriptors -->
<plugin>
<groupId>org.apache.felix</groupId>
@@ -71,18 +74,30 @@
<instructions>
<!-- we have to export for the classes to be visible
-->
<Export-Package>
- org.apache.sling.sample;version=${pom.version}
+ org.apache.sling.sample;
+ org.apache.jsp.*;version=${pom.version}
</Export-Package>
-
+
<!-- node types to be created -->
<Sling-Nodetypes>
SLING-INF/nodetypes/test.cnd
</Sling-Nodetypes>
-
+
<!-- initial content to be loaded on bundle
installation -->
<Sling-Initial-Content>
SLING-INF/content
</Sling-Initial-Content>
+
+ <!-- Bundle supplied resource prefixes -->
+ <Include-Resource>
+ {maven-resources},src/main/scripts
+ </Include-Resource>
+
+ <Sling-Bundle-Resources>
+ /sling/scripts/org/apache/sling/sample,
+
/classes/org/apache/jsp/sling/scripts/org/apache/sling/sample
+ </Sling-Bundle-Resources>
+
</instructions>
</configuration>
</plugin>
@@ -111,7 +126,9 @@
</dependency>
<dependency>
<groupId>org.apache.sling</groupId>
- <artifactId>org.apache.sling.scripting.jsp.taglib</artifactId>
+ <artifactId>
+ org.apache.sling.scripting.jsp.taglib
+ </artifactId>
<version>2.0.0-incubator-SNAPSHOT</version>
<scope>compile</scope>
</dependency>