blob: 1c56f54049af81ef8bb2abaee8068c768fcbebc0 [file] [log] [blame]
Clement Escoffier03e1db72010-05-01 10:21:51 +00001<!--
2 Licensed to the Apache Software Foundation (ASF) under one
3 or more contributor license agreements. See the NOTICE file
4 distributed with this work for additional information
5 regarding copyright ownership. The ASF licenses this file
6 to you under the Apache License, Version 2.0 (the
7 "License"); you may not use this file except in compliance
8 with the License. You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing,
13 software distributed under the License is distributed on an
14 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 KIND, either express or implied. See the License for the
16 specific language governing permissions and limitations
17 under the License.
18-->
19<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
21 <parent>
22 <groupId>ipojo.tests</groupId>
23 <artifactId>ipojo.tests</artifactId>
24 <version>1.5.0-SNAPSHOT</version>
25 </parent> <groupId>ipojo.tests</groupId>
Clement Escoffieraf9ad1b2009-08-14 12:11:19 +000026 <version>1.5.0-SNAPSHOT</version>
Clement Escoffiera39317c2008-07-07 16:46:09 +000027 <modelVersion>4.0.0</modelVersion>
28 <packaging>bundle</packaging>
29 <name>iPOJO White Board Pattern Handler Test Suite</name>
Clement Escoffiereb15bc62008-07-24 10:06:34 +000030 <artifactId>tests.whiteboard</artifactId>
Clement Escoffiera39317c2008-07-07 16:46:09 +000031 <dependencies>
32 <dependency>
33 <groupId>org.apache.felix</groupId>
34 <artifactId>org.apache.felix.ipojo</artifactId>
Clement Escoffier2fdda122010-04-29 15:53:58 +000035 <version>1.7.0-SNAPSHOT</version>
Clement Escoffiera39317c2008-07-07 16:46:09 +000036 </dependency>
Clement Escoffier001f0962010-09-12 10:14:52 +000037 <dependency>
38 <groupId>org.apache.felix</groupId>
39 <artifactId>org.apache.felix.ipojo.handler.whiteboard</artifactId>
40 <version>1.5.0-SNAPSHOT</version>
41 </dependency>
Clement Escoffiera39317c2008-07-07 16:46:09 +000042 <dependency>
Clement Escoffier03e1db72010-05-01 10:21:51 +000043 <groupId>org.osgi</groupId>
Clement Escoffiera39317c2008-07-07 16:46:09 +000044 <artifactId>org.osgi.core</artifactId>
Clement Escoffiera39317c2008-07-07 16:46:09 +000045 </dependency>
46 <dependency>
47 <groupId>junit</groupId>
48 <artifactId>junit</artifactId>
49 <version>3.8.1</version>
50 </dependency>
51 <dependency>
Clement Escoffier18bfd022008-12-01 19:42:13 +000052 <groupId>org.apache.felix</groupId>
Clement Escoffiera39317c2008-07-07 16:46:09 +000053 <artifactId>org.apache.felix.ipojo.junit4osgi</artifactId>
Clement Escoffier2e9f4b32008-10-14 13:55:56 +000054 <version>1.1.0-SNAPSHOT</version>
Clement Escoffiera39317c2008-07-07 16:46:09 +000055 </dependency>
Clement Escoffier03e1db72010-05-01 10:21:51 +000056 <dependency>
57 <groupId>org.osgi</groupId>
58 <artifactId>org.osgi.compendium</artifactId>
59 <version>4.0.0</version>
60 </dependency>
Clement Escoffiera39317c2008-07-07 16:46:09 +000061 </dependencies>
62 <build>
63 <plugins>
64 <plugin>
65 <groupId>org.apache.felix</groupId>
66 <artifactId>maven-bundle-plugin</artifactId>
Clement Escoffiera39317c2008-07-07 16:46:09 +000067 <extensions>true</extensions>
68 <configuration>
69 <instructions>
70 <Private-Package>org.apache.felix.ipojo.test, org.apache.felix.ipojo.test.scenarios.util</Private-Package>
71 <Test-Suite>org.apache.felix.ipojo.test.WbpTests</Test-Suite>
72 </instructions>
73 </configuration>
74 </plugin>
Clement Escoffierd9128542008-12-23 13:21:58 +000075 <plugin>
76 <groupId>org.apache.felix</groupId>
77 <artifactId>maven-ipojo-plugin</artifactId>
Clement Escoffierd9128542008-12-23 13:21:58 +000078 <executions>
79 <execution>
80 <goals>
81 <goal>ipojo-bundle</goal>
82 </goals>
83 <configuration>
84 <ignoreAnnotations>true</ignoreAnnotations>
85 <metadata>
86 <![CDATA[
Clement Escoffier0b93f382009-07-03 13:16:24 +000087 <ipojo
Clement Escoffierd9128542008-12-23 13:21:58 +000088 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Clement Escoffier0b93f382009-07-03 13:16:24 +000089 xsi:schemaLocation="org.apache.felix.ipojo http://felix.apache.org/ipojo/schemas/SNAPSHOT/core.xsd
90 org.apache.felix.ipojo.whiteboard http://felix.apache.org/ipojo/schemas/SNAPSHOT/whiteboard-pattern.xsd"
Clement Escoffierd9128542008-12-23 13:21:58 +000091 xmlns="org.apache.felix.ipojo"
92 xmlns:wbp="org.apache.felix.ipojo.whiteboard">
93 <component classname="org.apache.felix.ipojo.test.FooProvider" name="fooprovider">
94 <provides>
95 <property field="foo" value="foo"/>
96 </provides>
97 </component>
Clement Escoffier0b93f382009-07-03 13:16:24 +000098
Clement Escoffierd9128542008-12-23 13:21:58 +000099 <component classname="org.apache.felix.ipojo.test.FooWhiteBoardPattern" name="under-providers">
Clement Escoffier0b93f382009-07-03 13:16:24 +0000100 <wbp:wbp
101 filter="(objectclass=org.apache.felix.ipojo.test.FooService)"
Clement Escoffierd9128542008-12-23 13:21:58 +0000102 onArrival="onArrival" onDeparture="onDeparture" onModification="onModification"
103 />
104 <provides/>
105 </component>
Clement Escoffier0b93f382009-07-03 13:16:24 +0000106
Clement Escoffierd9128542008-12-23 13:21:58 +0000107 <component classname="org.apache.felix.ipojo.test.FooWhiteBoardPattern" name="under-properties">
Clement Escoffier0b93f382009-07-03 13:16:24 +0000108 <wbp:wbp filter="(foo=foo)" onArrival="onArrival" onDeparture="onDeparture"
Clement Escoffierd9128542008-12-23 13:21:58 +0000109 onModification="onModification"
110 />
111 <provides/>
112 </component>
Clement Escoffier001f0962010-09-12 10:14:52 +0000113
114 <component classname="org.apache.felix.ipojo.test.FooWhiteBoardPattern" name="under-providers-lifecycle">
115 <wbp:wbp
116 filter="(objectclass=org.apache.felix.ipojo.test.FooService)"
117 onArrival="onArrival" onDeparture="onDeparture" onModification="onModification"
118 />
119 <provides/>
120 <callback transition="validate" method="start"/>
121 <callback transition="invalidate" method="stop"/>
122 </component>
Clement Escoffierd9128542008-12-23 13:21:58 +0000123 </ipojo>
124 ]]>
125 </metadata>
126 </configuration>
127 </execution>
128 </executions>
129 </plugin>
Clement Escoffier001f0962010-09-12 10:14:52 +0000130 <plugin>
131 <groupId>org.apache.felix</groupId>
132 <artifactId>maven-junit4osgi-plugin</artifactId>
133 <version>1.1.0-SNAPSHOT</version>
134 <executions>
135 <execution>
136 <goals>
137 <goal>test</goal>
138 </goals>
139 <configuration>
140 <configuration>
141 <org.osgi.http.port>8083</org.osgi.http.port>
142 </configuration>
143 </configuration>
144 </execution>
145 </executions>
146 </plugin>
Clement Escoffiera39317c2008-07-07 16:46:09 +0000147 </plugins>
148 </build>
149</project>