blob: 1e883e36390031c5a837ddd429e58022667c21b5 [file] [log] [blame]
Clement Escoffierf4622e52010-05-01 10:21:51 +00001<!--
Clement Escoffier345e79a2011-02-23 10:36:42 +00002 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
Clement Escoffierf4622e52010-05-01 10:21:51 +00009
Clement Escoffier345e79a2011-02-23 10:36:42 +000010 http://www.apache.org/licenses/LICENSE-2.0
Clement Escoffierf4622e52010-05-01 10:21:51 +000011
Clement Escoffier345e79a2011-02-23 10:36:42 +000012 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.
Clement Escoffierf4622e52010-05-01 10:21:51 +000018-->
19<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Clement Escoffier345e79a2011-02-23 10:36:42 +000020 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>
Clement Escoffier95358cb2011-08-18 11:36:08 +000025 <relativePath>../../pom.xml</relativePath>
Clement Escoffier345e79a2011-02-23 10:36:42 +000026 </parent>
27 <groupId>ipojo.tests</groupId>
28 <version>${ipojo.wbp.snapshot}</version>
29 <modelVersion>4.0.0</modelVersion>
30 <packaging>bundle</packaging>
31 <name>iPOJO White Board Pattern Handler Test Suite</name>
32 <artifactId>tests.whiteboard</artifactId>
33 <dependencies>
34 <dependency>
35 <groupId>org.apache.felix</groupId>
36 <artifactId>org.apache.felix.ipojo</artifactId>
37 </dependency>
38 <dependency>
39 <groupId>org.apache.felix</groupId>
40 <artifactId>org.apache.felix.ipojo.handler.whiteboard</artifactId>
41 <version>${ipojo.wbp.snapshot}</version>
42 </dependency>
43 <dependency>
44 <groupId>org.osgi</groupId>
45 <artifactId>org.osgi.core</artifactId>
46 </dependency>
47 <dependency>
48 <groupId>junit</groupId>
49 <artifactId>junit</artifactId>
50 <version>3.8.1</version>
51 </dependency>
52 <dependency>
53 <groupId>org.apache.felix</groupId>
54 <artifactId>org.apache.felix.ipojo.junit4osgi</artifactId>
55 <version>1.1.0-SNAPSHOT</version>
56 </dependency>
57 <dependency>
58 <groupId>org.osgi</groupId>
59 <artifactId>org.osgi.compendium</artifactId>
60 <version>4.0.0</version>
61 </dependency>
62 </dependencies>
63 <build>
64 <plugins>
65 <plugin>
66 <groupId>org.apache.felix</groupId>
67 <artifactId>maven-bundle-plugin</artifactId>
68 <extensions>true</extensions>
69 <configuration>
70 <instructions>
71 <Private-Package>org.apache.felix.ipojo.test,
72 org.apache.felix.ipojo.test.scenarios.util</Private-Package>
73 <Test-Suite>org.apache.felix.ipojo.test.WbpTests</Test-Suite>
74 </instructions>
75 </configuration>
76 </plugin>
77 <plugin>
78 <groupId>org.apache.felix</groupId>
79 <artifactId>maven-ipojo-plugin</artifactId>
80 <executions>
81 <execution>
82 <goals>
83 <goal>ipojo-bundle</goal>
84 </goals>
85 <configuration>
86 <ignoreAnnotations>true</ignoreAnnotations>
87 <metadata>
88 <![CDATA[
89 <ipojo
90 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
91 xsi:schemaLocation="org.apache.felix.ipojo http://felix.apache.org/ipojo/schemas/SNAPSHOT/core.xsd"
92 xmlns="org.apache.felix.ipojo"
93 xmlns:wbp="org.apache.felix.ipojo.whiteboard">
94 <component classname="org.apache.felix.ipojo.test.FooProvider" name="fooprovider">
95 <provides>
96 <property field="foo" value="foo"/>
97 </provides>
98 </component>
Clement Escoffierc80b73d2009-07-03 13:16:24 +000099
Clement Escoffier345e79a2011-02-23 10:36:42 +0000100 <component classname="org.apache.felix.ipojo.test.FooWhiteBoardPattern" name="under-providers">
101 <wbp:wbp
102 filter="(objectclass=org.apache.felix.ipojo.test.FooService)"
103 onArrival="onArrival" onDeparture="onDeparture" onModification="onModification"
104 />
105 <provides/>
106 </component>
Clement Escoffierc80b73d2009-07-03 13:16:24 +0000107
Clement Escoffier345e79a2011-02-23 10:36:42 +0000108 <component classname="org.apache.felix.ipojo.test.FooWhiteBoardPattern" name="under-properties">
109 <wbp:wbp filter="(foo=foo)" onArrival="onArrival" onDeparture="onDeparture"
110 onModification="onModification"
111 />
112 <provides/>
113 </component>
Clement Escoffier5bfca392010-09-12 10:14:52 +0000114
Clement Escoffier345e79a2011-02-23 10:36:42 +0000115 <component classname="org.apache.felix.ipojo.test.FooWhiteBoardPattern" name="under-providers-2">
116 <wbp:whiteboards>
117 <wbp:wbp
118 filter="(objectclass=org.apache.felix.ipojo.test.FooService)"
119 onArrival="onArrival" onDeparture="onDeparture" onModification="onModification"
120 />
121 </wbp:whiteboards>
122 <provides/>
123 </component>
Clement Escoffier2db7fb42010-11-07 10:16:28 +0000124
Clement Escoffier345e79a2011-02-23 10:36:42 +0000125 <component classname="org.apache.felix.ipojo.test.FooWhiteBoardPattern" name="under-providers-lifecycle">
126 <wbp:wbp
127 filter="(objectclass=org.apache.felix.ipojo.test.FooService)"
128 onArrival="onArrival" onDeparture="onDeparture" onModification="onModification"
129 />
130 <provides/>
131 <callback transition="validate" method="start"/>
132 <callback transition="invalidate" method="stop"/>
133 </component>
134 </ipojo>
135 ]]>
136 </metadata>
137 </configuration>
138 </execution>
139 </executions>
140 </plugin>
141 <plugin>
142 <groupId>org.apache.felix</groupId>
143 <artifactId>maven-junit4osgi-plugin</artifactId>
144 <version>1.1.0-SNAPSHOT</version>
145 <executions>
146 <execution>
147 <goals>
148 <goal>test</goal>
149 </goals>
150 <configuration>
151 <configuration>
152 <org.osgi.http.port>8083</org.osgi.http.port>
153 </configuration>
154 </configuration>
155 </execution>
156 </executions>
157 </plugin>
158 </plugins>
159 </build>
Clement Escoffierb89bd612008-07-07 16:46:09 +0000160</project>