blob: 7e726815320ec87c2b9da52262c4f833f901235a [file] [log] [blame]
<?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>20</version>
<relativePath>../../parent/pom.xml</relativePath>
</parent>
<artifactId>org.apache.sling.launchpad</artifactId>
<packaging>war</packaging>
<version>7</version>
<name>Apache Sling Launchpad Application Builder</name>
<description>
The Launchpad. Available in both JAR and WAR flavors.
</description>
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/sling/tags/org.apache.sling.launchpad-7</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/sling/tags/org.apache.sling.launchpad-7</developerConnection>
<url>http://svn.apache.org/viewvc/sling/tags/org.apache.sling.launchpad-7</url>
</scm>
<properties>
<!--
Jetty default port (override with -D)
-->
<http.port>8888</http.port>
<!-- path suffix for HTTP access to Sling -->
<http.base.path />
<!-- path suffix for WebDAV access to the repository -->
<webdav.workspace.path />
<!-- hostname for integration tests -->
<test.host>localhost</test.host>
<!--
Disable Jetty webapp rescan (override with -D)
-->
<jetty.scan.interval.seconds>0</jetty.scan.interval.seconds>
<!--
Sling home directory when starting with jetty:run
-->
<jetty.sling.home>target/sling</jetty.sling.home>
<!--
Context path of the Sling web application
-->
<jetty.sling.context>/</jetty.sling.context>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>ianal-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>verify-legal-files</goal>
</goals>
<configuration>
<!-- TODO required for now due to missing legal files in bundleListConfig.zip -->
<strict>false</strict>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
<filesets>
<fileset>
<directory>${basedir}</directory>
<includes>
<include>derby.log</include>
<include>cachedir</include>
<include>sling</include>
<include>jackrabbit</include>
<include>coverage.ec</include>
</includes>
</fileset>
</filesets>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.sling</groupId>
<artifactId>maven-launchpad-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<includeDefaultBundles>false</includeDefaultBundles>
<bundlesDirectory>install</bundlesDirectory>
<bootDirectory>bundles</bootDirectory>
<jarWebSupport>
<bundles>
<bundle>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.http.api</artifactId>
<version>2.3.0</version>
<startLevel>5</startLevel>
</bundle>
<bundle>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.http.servlet-api</artifactId>
<version>1.0.0</version>
<startLevel>5</startLevel>
</bundle>
<bundle>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.http.jetty</artifactId>
<version>2.3.0</version>
<startLevel>5</startLevel>
</bundle>
</bundles>
</jarWebSupport>
</configuration>
<executions>
<execution>
<id>prepare-package-war</id>
<goals>
<goal>prepare-package</goal>
</goals>
</execution>
<execution>
<id>prepare-package-jar</id>
<goals>
<goal>prepare-package</goal>
</goals>
<configuration>
<packaging>jar</packaging>
</configuration>
</execution>
<execution>
<id>attach-bundle-list</id>
<goals>
<goal>attach-bundle-list</goal>
</goals>
</execution>
<execution>
<id>create-bundle-jar</id>
<goals>
<goal>create-bundle-jar</goal>
</goals>
<configuration>
<resources>
<!-- Legal stuff -->
<resource>
<directory>${project.build.directory}/maven-shared-archive-resources</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<id>create-standalone-jar</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<classifier>standalone</classifier>
<archive>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
<manifest>
<addDefaultImplementationEntries>
true
</addDefaultImplementationEntries>
</manifest>
</archive>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptors>
<descriptor>src/main/assembly/bin.xml</descriptor>
</descriptors>
</configuration>
</plugin>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<configuration>
<contextPath>/</contextPath>
<scanIntervalSeconds>
${jetty.scan.interval.seconds}
</scanIntervalSeconds>
<connectors>
<connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
<port>${http.port}</port>
<maxIdleTime>60000</maxIdleTime>
</connector>
</connectors>
<!--
Use target/... as the webapp source, as we unpack stuff there from the Sling
launcher modules
-->
<webAppSourceDirectory>
target/${project.artifactId}-${project.version}
</webAppSourceDirectory>
<webAppConfig>
<contextPath>${jetty.sling.context}</contextPath>
<initParams>
<sling.home>${jetty.sling.home}</sling.home>
</initParams>
</webAppConfig>
</configuration>
</plugin>
<!-- Include sling-webapp launcher classes and resources -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addDefaultImplementationEntries>
true
</addDefaultImplementationEntries>
</manifest>
</archive>
<packagingExcludes>WEB-INF/classes/resources/**,WEB-INF/classes/META-INF/**</packagingExcludes>
<webResources>
<!-- the configuration resources -->
<resource>
<directory>
${project.build.directory}/launchpad-bundles
</directory>
<targetPath>WEB-INF</targetPath>
</resource>
<!-- ensure the legalize stuff is in the war -->
<webResource>
<targetPath />
<filtering>false</filtering>
<directory>${project.build.directory}/maven-shared-archive-resources</directory>
</webResource>
</webResources>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<configuration>
<preparationGoals>
launchpad:check-bundle-list-for-snapshots clean verify
</preparationGoals>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>emma-maven-plugin</artifactId>
<configuration>
<filters>
<filter>-*</filter>
</filters>
</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>org.apache.sling</groupId>
<artifactId>org.apache.sling.launchpad.base</artifactId>
<version>4.4.1-2.5.2</version>
<classifier>webapp</classifier>
<type>war</type>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.launchpad.base</artifactId>
<version>4.4.1-2.5.2</version>
<classifier>app</classifier>
<scope>provided</scope>
</dependency>
</dependencies>
<repositories>
<repository>
<id>OPS4J</id>
<name>OPS4J Repository</name>
<url>http://repository.ops4j.org/maven2</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
</project>