blob: 88c7f35924b9404d273db4456f49a3664188720f [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 Escoffier8c0fcd42010-11-07 10:16:28 +000089 xsi:schemaLocation="org.apache.felix.ipojo http://felix.apache.org/ipojo/schemas/SNAPSHOT/core.xsd"
Clement Escoffierd9128542008-12-23 13:21:58 +000090 xmlns="org.apache.felix.ipojo"
91 xmlns:wbp="org.apache.felix.ipojo.whiteboard">
92 <component classname="org.apache.felix.ipojo.test.FooProvider" name="fooprovider">
93 <provides>
94 <property field="foo" value="foo"/>
95 </provides>
96 </component>
Clement Escoffier0b93f382009-07-03 13:16:24 +000097
Clement Escoffierd9128542008-12-23 13:21:58 +000098 <component classname="org.apache.felix.ipojo.test.FooWhiteBoardPattern" name="under-providers">
Clement Escoffier0b93f382009-07-03 13:16:24 +000099 <wbp:wbp
100 filter="(objectclass=org.apache.felix.ipojo.test.FooService)"
Clement Escoffierd9128542008-12-23 13:21:58 +0000101 onArrival="onArrival" onDeparture="onDeparture" onModification="onModification"
102 />
103 <provides/>
104 </component>
Clement Escoffier0b93f382009-07-03 13:16:24 +0000105
Clement Escoffierd9128542008-12-23 13:21:58 +0000106 <component classname="org.apache.felix.ipojo.test.FooWhiteBoardPattern" name="under-properties">
Clement Escoffier0b93f382009-07-03 13:16:24 +0000107 <wbp:wbp filter="(foo=foo)" onArrival="onArrival" onDeparture="onDeparture"
Clement Escoffierd9128542008-12-23 13:21:58 +0000108 onModification="onModification"
109 />
110 <provides/>
111 </component>
Clement Escoffier001f0962010-09-12 10:14:52 +0000112
Clement Escoffier8c0fcd42010-11-07 10:16:28 +0000113 <component classname="org.apache.felix.ipojo.test.FooWhiteBoardPattern" name="under-providers-2">
114 <wbp:whiteboards>
115 <wbp:wbp
116 filter="(objectclass=org.apache.felix.ipojo.test.FooService)"
117 onArrival="onArrival" onDeparture="onDeparture" onModification="onModification"
118 />
119 </wbp:whiteboards>
120 <provides/>
121 </component>
122
Clement Escoffier001f0962010-09-12 10:14:52 +0000123 <component classname="org.apache.felix.ipojo.test.FooWhiteBoardPattern" name="under-providers-lifecycle">
124 <wbp:wbp
125 filter="(objectclass=org.apache.felix.ipojo.test.FooService)"
126 onArrival="onArrival" onDeparture="onDeparture" onModification="onModification"
127 />
128 <provides/>
129 <callback transition="validate" method="start"/>
130 <callback transition="invalidate" method="stop"/>
131 </component>
Clement Escoffierd9128542008-12-23 13:21:58 +0000132 </ipojo>
133 ]]>
134 </metadata>
135 </configuration>
136 </execution>
137 </executions>
138 </plugin>
Clement Escoffier001f0962010-09-12 10:14:52 +0000139 <plugin>
140 <groupId>org.apache.felix</groupId>
141 <artifactId>maven-junit4osgi-plugin</artifactId>
142 <version>1.1.0-SNAPSHOT</version>
143 <executions>
144 <execution>
145 <goals>
146 <goal>test</goal>
147 </goals>
148 <configuration>
149 <configuration>
150 <org.osgi.http.port>8083</org.osgi.http.port>
151 </configuration>
152 </configuration>
153 </execution>
154 </executions>
155 </plugin>
Clement Escoffiera39317c2008-07-07 16:46:09 +0000156 </plugins>
157 </build>
158</project>