<?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> | |
<groupId>org.apache.sling</groupId> | |
<artifactId>installing-dependencies-sample</artifactId> | |
<packaging>bundle</packaging> | |
<version>0.0.1-SNAPSHOT</version> | |
<name>Dependency Install Sample</name> | |
<description>Sample project showing how to install dependencies using a combination of maven-dependency-plugin and maven-sling-plugin</description> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.felix</groupId> | |
<artifactId>maven-bundle-plugin</artifactId> | |
<extensions>true</extensions> | |
<version>2.0.1</version> | |
<configuration> | |
<instructions> | |
<Export-Package>org.apache.sling.samples.dependenciesinstall</Export-Package> | |
<Sling-Test-Regexp>.*Test</Sling-Test-Regexp> | |
</instructions> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<configuration> | |
<source>1.5</source> | |
<target>1.5</target> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-dependency-plugin</artifactId> | |
<executions> | |
<execution> | |
<id>copy-testsupport</id> | |
<goals> | |
<goal>copy-dependencies</goal> | |
</goals> | |
<configuration> | |
<includeArtifactIds>org.apache.sling.junit.core</includeArtifactIds> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
<dependencies> | |
<dependency> | |
<groupId>javax.jcr</groupId> | |
<artifactId>jcr</artifactId> | |
<version>2.0</version> | |
<scope>provided</scope> | |
</dependency> | |
<dependency> | |
<groupId>junit</groupId> | |
<artifactId>junit</artifactId> | |
<version>4.8.2</version> | |
<scope>provided</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.sling</groupId> | |
<artifactId>org.apache.sling.junit.core</artifactId> | |
<version>1.0.7-SNAPSHOT</version> | |
<scope>provided</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.sling</groupId> | |
<artifactId>org.apache.sling.jcr.api</artifactId> | |
<version>2.1.0</version> | |
<scope>provided</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.sling</groupId> | |
<artifactId>org.apache.sling.api</artifactId> | |
<version>2.1.0</version> | |
<scope>provided</scope> | |
</dependency> | |
<dependency> | |
<groupId>javax.servlet</groupId> | |
<artifactId>servlet-api</artifactId> | |
<version>2.5</version> | |
<scope>provided</scope> | |
</dependency> | |
</dependencies> | |
<profiles> | |
<profile> | |
<id>autoInstallBundles</id> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.sling</groupId> | |
<artifactId>maven-sling-plugin</artifactId> | |
<version>2.0.4-incubator</version> | |
<executions> | |
<execution> | |
<id>install-bundle</id> | |
<goals> | |
<goal>install</goal> | |
</goals> | |
</execution> | |
<execution> | |
<id>install-dependency1</id> | |
<goals> | |
<goal>install-file</goal> | |
</goals> | |
<phase>install</phase> | |
<configuration> | |
<bundleFileName>${project.build.directory}/dependency/org.apache.sling.junit.core-0.1.1-SNAPSHOT.jar</bundleFileName> | |
</configuration> | |
</execution> | |
</executions> | |
<configuration> | |
<slingUrl>http://localhost:8888/system/console</slingUrl> | |
<user>admin</user> | |
<password>admin</password> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
</profile> | |
</profiles> | |
</project> |