blob: 025f7c04538bd97753eaf563424387bb0306907b [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 Escoffier621f3742012-04-21 11:03:41 +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>
Clement Escoffier621f3742012-04-21 11:03:41 +000037 <version>${ipojo.core.snapshot}</version>
Clement Escoffier345e79a2011-02-23 10:36:42 +000038 </dependency>
39 <dependency>
40 <groupId>org.apache.felix</groupId>
41 <artifactId>org.apache.felix.ipojo.handler.whiteboard</artifactId>
42 <version>${ipojo.wbp.snapshot}</version>
43 </dependency>
44 <dependency>
45 <groupId>org.osgi</groupId>
46 <artifactId>org.osgi.core</artifactId>
47 </dependency>
48 <dependency>
49 <groupId>junit</groupId>
50 <artifactId>junit</artifactId>
51 <version>3.8.1</version>
52 </dependency>
53 <dependency>
54 <groupId>org.apache.felix</groupId>
55 <artifactId>org.apache.felix.ipojo.junit4osgi</artifactId>
56 <version>1.1.0-SNAPSHOT</version>
57 </dependency>
58 <dependency>
59 <groupId>org.osgi</groupId>
60 <artifactId>org.osgi.compendium</artifactId>
61 <version>4.0.0</version>
62 </dependency>
63 </dependencies>
64 <build>
65 <plugins>
66 <plugin>
67 <groupId>org.apache.felix</groupId>
68 <artifactId>maven-bundle-plugin</artifactId>
69 <extensions>true</extensions>
70 <configuration>
71 <instructions>
72 <Private-Package>org.apache.felix.ipojo.test,
73 org.apache.felix.ipojo.test.scenarios.util</Private-Package>
74 <Test-Suite>org.apache.felix.ipojo.test.WbpTests</Test-Suite>
75 </instructions>
76 </configuration>
77 </plugin>
78 <plugin>
79 <groupId>org.apache.felix</groupId>
80 <artifactId>maven-ipojo-plugin</artifactId>
81 <executions>
82 <execution>
83 <goals>
84 <goal>ipojo-bundle</goal>
85 </goals>
86 <configuration>
87 <ignoreAnnotations>true</ignoreAnnotations>
88 <metadata>
89 <![CDATA[
90 <ipojo
91 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
92 xsi:schemaLocation="org.apache.felix.ipojo http://felix.apache.org/ipojo/schemas/SNAPSHOT/core.xsd"
93 xmlns="org.apache.felix.ipojo"
94 xmlns:wbp="org.apache.felix.ipojo.whiteboard">
95 <component classname="org.apache.felix.ipojo.test.FooProvider" name="fooprovider">
96 <provides>
97 <property field="foo" value="foo"/>
98 </provides>
99 </component>
Clement Escoffierc80b73d2009-07-03 13:16:24 +0000100
Clement Escoffier345e79a2011-02-23 10:36:42 +0000101 <component classname="org.apache.felix.ipojo.test.FooWhiteBoardPattern" name="under-providers">
102 <wbp:wbp
103 filter="(objectclass=org.apache.felix.ipojo.test.FooService)"
104 onArrival="onArrival" onDeparture="onDeparture" onModification="onModification"
105 />
106 <provides/>
107 </component>
Clement Escoffierc80b73d2009-07-03 13:16:24 +0000108
Clement Escoffier345e79a2011-02-23 10:36:42 +0000109 <component classname="org.apache.felix.ipojo.test.FooWhiteBoardPattern" name="under-properties">
110 <wbp:wbp filter="(foo=foo)" onArrival="onArrival" onDeparture="onDeparture"
111 onModification="onModification"
112 />
113 <provides/>
114 </component>
Clement Escoffier5bfca392010-09-12 10:14:52 +0000115
Clement Escoffier345e79a2011-02-23 10:36:42 +0000116 <component classname="org.apache.felix.ipojo.test.FooWhiteBoardPattern" name="under-providers-2">
117 <wbp:whiteboards>
118 <wbp:wbp
119 filter="(objectclass=org.apache.felix.ipojo.test.FooService)"
120 onArrival="onArrival" onDeparture="onDeparture" onModification="onModification"
121 />
122 </wbp:whiteboards>
123 <provides/>
124 </component>
Clement Escoffier2db7fb42010-11-07 10:16:28 +0000125
Clement Escoffier345e79a2011-02-23 10:36:42 +0000126 <component classname="org.apache.felix.ipojo.test.FooWhiteBoardPattern" name="under-providers-lifecycle">
127 <wbp:wbp
128 filter="(objectclass=org.apache.felix.ipojo.test.FooService)"
129 onArrival="onArrival" onDeparture="onDeparture" onModification="onModification"
130 />
131 <provides/>
132 <callback transition="validate" method="start"/>
133 <callback transition="invalidate" method="stop"/>
134 </component>
135 </ipojo>
136 ]]>
137 </metadata>
138 </configuration>
139 </execution>
140 </executions>
141 </plugin>
142 <plugin>
143 <groupId>org.apache.felix</groupId>
144 <artifactId>maven-junit4osgi-plugin</artifactId>
145 <version>1.1.0-SNAPSHOT</version>
146 <executions>
147 <execution>
148 <goals>
149 <goal>test</goal>
150 </goals>
151 <configuration>
152 <configuration>
153 <org.osgi.http.port>8083</org.osgi.http.port>
154 </configuration>
155 </configuration>
156 </execution>
157 </executions>
158 </plugin>
159 </plugins>
160 </build>
Clement Escoffierb89bd612008-07-07 16:46:09 +0000161</project>