Guillaume Nodet | a9a1b5e | 2010-02-03 12:23:27 +0000 | [diff] [blame] | 1 | <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"> |
| 2 | <!-- |
| 3 | |
| 4 | Licensed to the Apache Software Foundation (ASF) under one or more |
| 5 | contributor license agreements. See the NOTICE file distributed with |
| 6 | this work for additional information regarding copyright ownership. |
| 7 | The ASF licenses this file to You under the Apache License, Version 2.0 |
| 8 | (the "License"); you may not use this file except in compliance with |
| 9 | the License. You may obtain a copy of the License at |
| 10 | |
| 11 | http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | |
| 13 | Unless required by applicable law or agreed to in writing, software |
| 14 | distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | See the License for the specific language governing permissions and |
| 17 | limitations under the License. |
| 18 | --> |
| 19 | <modelVersion>4.0.0</modelVersion> |
| 20 | |
| 21 | <parent> |
| 22 | <groupId>org.apache.felix.karaf.tooling</groupId> |
| 23 | <artifactId>tooling</artifactId> |
Guillaume Nodet | 9cec3d5 | 2010-06-11 20:02:35 +0000 | [diff] [blame^] | 24 | <version>1.7.0-SNAPSHOT</version> |
Guillaume Nodet | a9a1b5e | 2010-02-03 12:23:27 +0000 | [diff] [blame] | 25 | </parent> |
| 26 | |
| 27 | <groupId>org.apache.felix.karaf.tooling</groupId> |
| 28 | <artifactId>org.apache.felix.karaf.tooling.testing</artifactId> |
| 29 | <packaging>bundle</packaging> |
Guillaume Nodet | 9cec3d5 | 2010-06-11 20:02:35 +0000 | [diff] [blame^] | 30 | <version>1.7.0-SNAPSHOT</version> |
Guillaume Nodet | a9a1b5e | 2010-02-03 12:23:27 +0000 | [diff] [blame] | 31 | <name>Apache Felix Karaf :: Testing environment</name> |
| 32 | |
| 33 | <description> |
| 34 | A bundle to help using Pax-Exam and Karaf. |
| 35 | </description> |
| 36 | |
| 37 | <properties> |
| 38 | <appendedResourcesDirectory>${basedir}/../../etc/appended-resources</appendedResourcesDirectory> |
| 39 | </properties> |
| 40 | |
| 41 | <dependencies> |
Guillaume Nodet | 913b7ca | 2010-02-03 15:18:50 +0000 | [diff] [blame] | 42 | <!-- The assembly and all the dependencies --> |
| 43 | <dependency> |
| 44 | <groupId>org.apache.felix.karaf</groupId> |
| 45 | <artifactId>apache-felix-karaf</artifactId> |
| 46 | <type>xml</type> |
| 47 | <classifier>features</classifier> |
| 48 | </dependency> |
Guillaume Nodet | a9a1b5e | 2010-02-03 12:23:27 +0000 | [diff] [blame] | 49 | <!-- Pax EXAM --> |
| 50 | <dependency> |
| 51 | <groupId>org.ops4j.pax.exam</groupId> |
| 52 | <artifactId>pax-exam</artifactId> |
| 53 | </dependency> |
| 54 | <dependency> |
| 55 | <groupId>org.ops4j.pax.exam</groupId> |
| 56 | <artifactId>pax-exam-junit</artifactId> |
| 57 | </dependency> |
| 58 | <dependency> |
| 59 | <groupId>org.ops4j.pax.exam</groupId> |
| 60 | <artifactId>pax-exam-container-default</artifactId> |
| 61 | </dependency> |
| 62 | <dependency> |
| 63 | <groupId>org.ops4j.pax.exam</groupId> |
| 64 | <artifactId>pax-exam-junit-extender-impl</artifactId> |
| 65 | </dependency> |
| 66 | <dependency> |
Guillaume Nodet | 913b7ca | 2010-02-03 15:18:50 +0000 | [diff] [blame] | 67 | <groupId>org.apache.servicemix.bundles</groupId> |
| 68 | <artifactId>org.apache.servicemix.bundles.junit</artifactId> |
Guillaume Nodet | a9a1b5e | 2010-02-03 12:23:27 +0000 | [diff] [blame] | 69 | </dependency> |
| 70 | </dependencies> |
| 71 | |
| 72 | <build> |
| 73 | <resources> |
| 74 | <resource> |
Chris Custine | 8764d8f | 2010-05-16 08:24:14 +0000 | [diff] [blame] | 75 | <directory>${project.basedir}/src/main/resources</directory> |
Guillaume Nodet | a9a1b5e | 2010-02-03 12:23:27 +0000 | [diff] [blame] | 76 | <includes> |
| 77 | <include>**/*</include> |
| 78 | </includes> |
| 79 | </resource> |
| 80 | </resources> |
Guillaume Nodet | a9a1b5e | 2010-02-03 12:23:27 +0000 | [diff] [blame] | 81 | <plugins> |
| 82 | <plugin> |
| 83 | <groupId>org.apache.maven.plugins</groupId> |
Guillaume Nodet | a9a1b5e | 2010-02-03 12:23:27 +0000 | [diff] [blame] | 84 | <artifactId>maven-resources-plugin</artifactId> |
| 85 | <executions> |
| 86 | <execution> |
| 87 | <id>copy-filtered</id> |
| 88 | <!-- here the phase you need --> |
| 89 | <phase>compile</phase> |
| 90 | <goals> |
| 91 | <goal>copy-resources</goal> |
| 92 | </goals> |
| 93 | <configuration> |
| 94 | <outputDirectory>${basedir}/target/classes/</outputDirectory> |
| 95 | <resources> |
| 96 | <resource> |
| 97 | <directory>../../assembly/src/main/filtered-resources/etc</directory> |
| 98 | <filtering>true</filtering> |
| 99 | <includes> |
| 100 | <include>config.properties</include> |
| 101 | <include>startup.properties</include> |
| 102 | </includes> |
| 103 | </resource> |
| 104 | </resources> |
| 105 | </configuration> |
| 106 | </execution> |
| 107 | </executions> |
| 108 | </plugin> |
| 109 | <!-- generate dependencies versions --> |
| 110 | <plugin> |
| 111 | <groupId>org.apache.servicemix.tooling</groupId> |
| 112 | <artifactId>depends-maven-plugin</artifactId> |
| 113 | <version>1.1</version> |
| 114 | <executions> |
| 115 | <execution> |
| 116 | <id>generate-depends-file</id> |
| 117 | <goals> |
| 118 | <goal>generate-depends-file</goal> |
| 119 | </goals> |
| 120 | </execution> |
| 121 | </executions> |
| 122 | </plugin> |
| 123 | <plugin> |
| 124 | <groupId>org.apache.felix</groupId> |
| 125 | <artifactId>maven-bundle-plugin</artifactId> |
| 126 | <configuration> |
| 127 | <instructions> |
Chris Custine | 8764d8f | 2010-05-16 08:24:14 +0000 | [diff] [blame] | 128 | <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName> |
| 129 | <Export-Package>org.apache.felix.karaf.testing;version=${project.version}</Export-Package> |
Guillaume Nodet | a9a1b5e | 2010-02-03 12:23:27 +0000 | [diff] [blame] | 130 | <Import-Package> |
| 131 | !org.apache.felix.karaf.testing*, |
| 132 | * |
| 133 | </Import-Package> |
| 134 | <Include-Resource> |
| 135 | {maven-resources}, |
| 136 | org/apache/felix/karaf/testing/config.properties=target/classes/config.properties, |
| 137 | org/apache/felix/karaf/testing/startup.properties=target/classes/startup.properties |
| 138 | </Include-Resource> |
| 139 | <_versionpolicy>${bnd.version.policy}</_versionpolicy> |
| 140 | </instructions> |
| 141 | </configuration> |
| 142 | </plugin> |
| 143 | </plugins> |
| 144 | </build> |
| 145 | |
| 146 | </project> |