| <?xml version="1.0" encoding="ISO-8859-1"?> |
| <!-- |
| 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> |
| |
| <artifactId>org.apache.sling.engine</artifactId> |
| <packaging>bundle</packaging> |
| <version>2.3.2</version> |
| |
| <name>Apache Sling Engine Implementation</name> |
| <description> |
| Bundle implementing the core of Sling. |
| </description> |
| |
| <scm> |
| <connection>scm:svn:http://svn.apache.org/repos/asf/sling/tags/org.apache.sling.engine-2.3.2</connection> |
| <developerConnection>scm:svn:https://svn.apache.org/repos/asf/sling/tags/org.apache.sling.engine-2.3.2</developerConnection> |
| <url>scm:svn:https://svn.apache.org/repos/asf/sling/tags/org.apache.sling.engine-2.3.2</url> |
| </scm> |
| |
| <properties> |
| <site.jira.version.id>12314287</site.jira.version.id> |
| <site.javadoc.exclude>**.impl.**</site.javadoc.exclude> |
| </properties> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>compile</id> |
| <phase>compile</phase> |
| <configuration> |
| <target> |
| <property name="maven_compile_classpath" refid="maven.compile.classpath" /> |
| |
| <delete file="${project.build.outputDirectory}/org/apache/sling/engine/impl/SlingHttpServletRequestImpl3.class" /> |
| <delete file="${project.build.outputDirectory}/org/apache/sling/engine/impl/helper/ExternalServletContextWrapper3.class" /> |
| <delete file="${project.build.outputDirectory}/org/apache/sling/engine/impl/helper/SlingServletContext3.class" /> |
| <delete file="${project.build.outputDirectory}/org/apache/sling/engine/impl/parameters/ParameterSupportHttpServletRequestWrapper3.class" /> |
| |
| <javac srcdir="${basedir}/src/main/java-servlet3" destdir="${project.build.outputDirectory}" encoding="${project.build.sourceEncoding}" target="1.${sling.java.version}" source="1.${sling.java.version}" includeantruntime="false"> |
| <classpath path="${javax.servlet:javax.servlet-api:jar}:${maven_compile_classpath}" /> |
| </javac> |
| |
| </target> |
| </configuration> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| </execution> |
| </executions> |
| <dependencies> |
| <!-- |
| SLING-3403: Need tools.jar for compilation. See |
| non-mac-tools-jar and mac-tools-jar profiles for |
| definition of the toolsjar property. |
| See http://stackoverflow.com/questions/3080437/jdk-tools-jar-as-maven-dependency#answer-3080695 |
| for background of the trick. |
| --> |
| <dependency> |
| <groupId>com.sun</groupId> |
| <artifactId>tools</artifactId> |
| <version>1.5.0</version> |
| <scope>system</scope> |
| <systemPath>${toolsjar}</systemPath> |
| </dependency> |
| </dependencies> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.felix</groupId> |
| <artifactId>maven-scr-plugin</artifactId> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.felix</groupId> |
| <artifactId>maven-bundle-plugin</artifactId> |
| <extensions>true</extensions> |
| <configuration> |
| <instructions> |
| <Export-Package> |
| org.apache.sling.engine;version=2.1;provide:=true, |
| org.apache.sling.engine.servlets;version=2.0.6;provide:=true, |
| org.apache.sling.engine.jmx;version=1.0;provide:=true |
| </Export-Package> |
| <Private-Package> |
| org.apache.sling.engine.impl, |
| org.apache.sling.engine.impl.* |
| </Private-Package> |
| <Import-Package> |
| javax.servlet;javax.servlet.http;version="[2.3,4)", |
| javax.servlet.descriptor;version="[2.6,4)";resolution:=optional, |
| org.osgi.service.useradmin; |
| org.apache.commons.math.*;resolution:=optional, |
| * |
| </Import-Package> |
| </instructions> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| <reporting> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-javadoc-plugin</artifactId> |
| <configuration> |
| <excludePackageNames> |
| org.apache.sling.engine.impl |
| </excludePackageNames> |
| </configuration> |
| </plugin> |
| </plugins> |
| </reporting> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.api</artifactId> |
| <version>2.6.0</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.settings</artifactId> |
| <version>1.0.0</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.auth.core</artifactId> |
| <version>1.0.0</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.commons.mime</artifactId> |
| <version>2.0.2-incubator</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.commons.osgi</artifactId> |
| <version>2.1.0</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>commons-fileupload</groupId> |
| <artifactId>commons-fileupload</artifactId> |
| <version>1.3</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>javax.servlet</groupId> |
| <artifactId>servlet-api</artifactId> |
| <version>2.5</version> |
| </dependency> |
| <dependency> |
| <groupId>org.osgi</groupId> |
| <artifactId>org.osgi.core</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.osgi</groupId> |
| <artifactId>org.osgi.compendium</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.jmock</groupId> |
| <artifactId>jmock-junit4</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.felix</groupId> |
| <artifactId>org.apache.felix.scr.annotations</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>com.sun.japex</groupId> |
| <artifactId>japex</artifactId> |
| <version>1.2.3</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.commons</groupId> |
| <artifactId>commons-math</artifactId> |
| <version>2.2</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.jmock</groupId> |
| <artifactId>jmock-legacy</artifactId> |
| <version>2.5.1</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>cglib</groupId> |
| <artifactId>cglib-nodep</artifactId> |
| <version>2.1_3</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.objenesis</groupId> |
| <artifactId>objenesis</artifactId> |
| <version>1.0</version> |
| <scope>test</scope> |
| </dependency> |
| |
| <!-- Servlet API 3 dependency required for the ANT build and must |
| remain at the end of the dependencies ! --> |
| <dependency> |
| <groupId>javax.servlet</groupId> |
| <artifactId>javax.servlet-api</artifactId> |
| <version>3.0.1</version> |
| </dependency> |
| </dependencies> |
| <profiles> |
| <profile> |
| <id>benchmarks</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>copy-commons-math-for-japex</id> |
| <goals> |
| <goal>copy-dependencies</goal> |
| </goals> |
| <configuration> |
| <includeArtifactIds>commons-math</includeArtifactIds> |
| <outputDirectory>${project.build.directory}/japex-dependency</outputDirectory> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>com.sun.japex</groupId> |
| <artifactId>japex-maven-plugin</artifactId> |
| <version>1.2.3</version> |
| <executions> |
| <execution> |
| <id>japex</id> |
| <goals> |
| <goal>japex</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <japexConfigFiles> |
| <file>src/test/resources/japex/hundred_iterations.xml</file> |
| <file>src/test/resources/japex/thousand_iterations.xml</file> |
| <file>src/test/resources/japex/million_iterations.xml</file> |
| </japexConfigFiles> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| <profile> |
| <id>non-mac-tools-jar</id> |
| <activation> |
| <activeByDefault>true</activeByDefault> |
| <file> |
| <exists>${java.home}/../lib/tools.jar</exists> |
| </file> |
| </activation> |
| <properties> |
| <toolsjar>${java.home}/../lib/tools.jar</toolsjar> |
| </properties> |
| </profile> |
| <profile> |
| <id>mac-tools-jar</id> |
| <activation> |
| <activeByDefault>false</activeByDefault> |
| <file> |
| <exists>${java.home}/../Classes/classes.jar</exists> |
| </file> |
| </activation> |
| <properties> |
| <toolsjar>${java.home}/../Classes/classes.jar</toolsjar> |
| </properties> |
| </profile> |
| </profiles> |
| </project> |