| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| --> |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
| |
| <modelVersion>4.0.0</modelVersion> |
| <parent> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>sling</artifactId> |
| <version>18</version> |
| <relativePath>../../parent/pom.xml</relativePath> |
| </parent> |
| |
| <groupId>org.apache.sling.samples</groupId> |
| <artifactId>org.apache.sling.samples.simple-demo</artifactId> |
| <version>2.0.3-SNAPSHOT</version> |
| <packaging>bundle</packaging> |
| |
| <name>Apache Sling Sample Application</name> |
| <description> |
| This bundle provides a simple Apache Sling Application to show |
| some of the features and functionalities of Apache Sling, such |
| as node type definition, content mapping, running JSPs off the |
| repository and the bundle. |
| </description> |
| |
| <scm> |
| <connection>scm:svn:http://svn.apache.org/repos/asf/sling/trunk/samples/simple-demo</connection> |
| <developerConnection>scm:svn:https://svn.apache.org/repos/asf/sling/trunk/samples/simple-demo</developerConnection> |
| <url>http://svn.apache.org/viewvc/sling/trunk/samples/simple-demo</url> |
| </scm> |
| |
| <build> |
| <plugins> |
| <!-- Handle the @ocm JavaDoc tags to generate the mapping descriptors --> |
| <plugin> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>maven-jcrocm-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>generate-JCR-OCM-descriptor</id> |
| <goals> |
| <goal>ocm</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <!-- Compile JSP scripts into the bundle --> |
| <plugin> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>maven-jspc-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>compile-jsp</id> |
| <goals> |
| <goal>jspc</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <!-- Generation of SCR descriptors --> |
| <plugin> |
| <groupId>org.apache.felix</groupId> |
| <artifactId>maven-scr-plugin</artifactId> |
| </plugin> |
| <!-- Bundling the sample project --> |
| <plugin> |
| <groupId>org.apache.felix</groupId> |
| <artifactId>maven-bundle-plugin</artifactId> |
| <extensions>true</extensions> |
| <configuration> |
| <instructions> |
| <!-- we have to export for the classes to be visible --> |
| <Export-Package> |
| org.apache.sling.sample; |
| org.apache.jsp.*;version=${project.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> |
| /apps/sling/sample, |
| /classes/org/apache/jsp/apps/sling/sample |
| </Sling-Bundle-Resources> |
| |
| </instructions> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| <reporting> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-javadoc-plugin</artifactId> |
| <configuration> |
| <!-- No javadocs --> |
| <excludePackageNames> |
| org.apache.sling |
| </excludePackageNames> |
| </configuration> |
| </plugin> |
| </plugins> |
| </reporting> |
| |
| <dependencies> |
| <dependency> |
| <groupId>javax.servlet</groupId> |
| <artifactId>servlet-api</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.api</artifactId> |
| <version>2.0.8</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.jcr.resource</artifactId> |
| <version>2.0.6</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.jcr.ocm</artifactId> |
| <version>2.0.2-incubator</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.engine</artifactId> |
| <version>2.0.6</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.scripting.jsp.taglib</artifactId> |
| <version>2.0.2-incubator</version> |
| <scope>compile</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.osgi</groupId> |
| <artifactId>org.osgi.core</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.felix</groupId> |
| <artifactId>org.apache.felix.scr.annotations</artifactId> |
| </dependency> |
| </dependencies> |
| </project> |