blob: f59f0b7665ca249c0cea14e16cfca0804f128553 [file] [log] [blame]
Clement Escoffierce0e1e52008-03-28 15:33:36 +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
Clement Escoffier0b93f382009-07-03 13:16:24 +00009
Clement Escoffierce0e1e52008-03-28 15:33:36 +000010 http://www.apache.org/licenses/LICENSE-2.0
Clement Escoffier0b93f382009-07-03 13:16:24 +000011
Clement Escoffierce0e1e52008-03-28 15:33:36 +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.
18-->
Clement Escoffier03e1db72010-05-01 10:21:51 +000019<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>
26
Clement Escoffierce0e1e52008-03-28 15:33:36 +000027 <modelVersion>4.0.0</modelVersion>
28 <packaging>bundle</packaging>
Clement Escoffierad6c5552008-04-25 16:49:43 +000029 <name>iPOJO Lifecycle controller Test Suite</name>
30 <artifactId>tests.core.lifecycle.controller</artifactId>
Clement Escoffier7d116ff2008-03-29 15:04:02 +000031 <groupId>ipojo.tests</groupId>
Clement Escoffier84075052011-02-23 10:36:42 +000032 <version>${ipojo.core.snapshot}</version>
Clement Escoffierce0e1e52008-03-28 15:33:36 +000033 <dependencies>
34 <dependency>
35 <groupId>org.apache.felix</groupId>
36 <artifactId>org.apache.felix.ipojo</artifactId>
Clement Escoffierce0e1e52008-03-28 15:33:36 +000037 </dependency>
38 <dependency>
39 <groupId>org.apache.felix</groupId>
Clement Escoffierce0e1e52008-03-28 15:33:36 +000040 <artifactId>org.apache.felix.ipojo.metadata</artifactId>
Clement Escoffierce0e1e52008-03-28 15:33:36 +000041 </dependency>
42 <dependency>
Clement Escoffier03e1db72010-05-01 10:21:51 +000043 <groupId>org.osgi</groupId>
Clement Escoffierce0e1e52008-03-28 15:33:36 +000044 <artifactId>org.osgi.core</artifactId>
Clement Escoffierce0e1e52008-03-28 15:33:36 +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 Escoffierce0e1e52008-03-28 15:33:36 +000053 <artifactId>org.apache.felix.ipojo.junit4osgi</artifactId>
Clement Escoffier2e9f4b32008-10-14 13:55:56 +000054 <version>1.1.0-SNAPSHOT</version>
Clement Escoffierce0e1e52008-03-28 15:33:36 +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 Escoffierce0e1e52008-03-28 15:33:36 +000061 </dependencies>
62 <build>
63 <plugins>
64 <plugin>
65 <groupId>org.apache.felix</groupId>
66 <artifactId>maven-bundle-plugin</artifactId>
Clement Escoffierce0e1e52008-03-28 15:33:36 +000067 <extensions>true</extensions>
68 <configuration>
69 <instructions>
70 <Export-Package>
Clement Escoffierad6c5552008-04-25 16:49:43 +000071 org.apache.felix.ipojo.test.scenarios.lfc.service
Clement Escoffierce0e1e52008-03-28 15:33:36 +000072 </Export-Package>
73 <Bundle-SymbolicName>
Clement Escoffier134b0062010-05-01 10:46:02 +000074 ${project.artifactId}
Clement Escoffierce0e1e52008-03-28 15:33:36 +000075 </Bundle-SymbolicName>
76 <Private-Package>
77 org.apache.felix.ipojo.test*
78 </Private-Package>
79 <Test-Suite>
Clement Escoffierad6c5552008-04-25 16:49:43 +000080 org.apache.felix.ipojo.test.scenarios.lfc.LifeCycleControllerTestSuite
Clement Escoffierce0e1e52008-03-28 15:33:36 +000081 </Test-Suite>
82 </instructions>
83 </configuration>
84 </plugin>
85 <plugin>
86 <groupId>org.apache.felix</groupId>
87 <artifactId>maven-ipojo-plugin</artifactId>
Clement Escoffierce0e1e52008-03-28 15:33:36 +000088 <executions>
89 <execution>
90 <goals>
91 <goal>ipojo-bundle</goal>
92 </goals>
93 <configuration>
94 <ignoreAnnotations>true</ignoreAnnotations>
Clement Escoffierd9128542008-12-23 13:21:58 +000095 <metadata>
96 <![CDATA[
97 <ipojo
98 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Clement Escoffier0b93f382009-07-03 13:16:24 +000099 xsi:schemaLocation="org.apache.felix.ipojo http://felix.apache.org/ipojo/schemas/SNAPSHOT/core.xsd"
Clement Escoffierd9128542008-12-23 13:21:58 +0000100 xmlns="org.apache.felix.ipojo">
101 <component
102 classname="org.apache.felix.ipojo.test.scenarios.component.LifecycleControllerTest"
103 name="LFC-Test">
104 <provides />
105 <controller field="m_state" />
106 <properties>
107 <property name="conf" field="m_conf" method="setConf" />
108 </properties>
109 </component>
110
111 <component
112 classname="org.apache.felix.ipojo.test.scenarios.component.LifecycleControllerTest"
113 name="LFC-Test-Immediate" immediate="true" architecture="true">
114 <provides />
115 <controller field="m_state" />
116 <properties>
117 <property name="conf" field="m_conf" method="setConf" />
118 </properties>
119 </component>
Clement Escoffier63419392010-10-07 17:56:58 +0000120
121 <component
122 classname="org.apache.felix.ipojo.test.scenarios.component.ConfigurableLifecycleControllerTest"
123 name="LFC-Test-Configurable" architecture="true">
124 <provides />
125 <!-- The property and the controller share the same field -->
126 <controller field="m_state" />
127 <properties>
128 <property name="state" field="m_state" />
129 </properties>
130 </component>
Clement Escoffierd9128542008-12-23 13:21:58 +0000131 </ipojo>
132 ]]>
133 </metadata>
Clement Escoffierce0e1e52008-03-28 15:33:36 +0000134 </configuration>
135 </execution>
136 </executions>
137 </plugin>
138 <plugin>
139 <groupId>org.apache.maven.plugins</groupId>
140 <artifactId>maven-compiler-plugin</artifactId>
141 <configuration>
Clement Escoffierad6c5552008-04-25 16:49:43 +0000142 <source>1.4</source>
143 <target>1.4</target>
Clement Escoffierce0e1e52008-03-28 15:33:36 +0000144 </configuration>
145 </plugin>
Clement Escoffier63419392010-10-07 17:56:58 +0000146 <plugin>
147 <groupId>org.apache.felix</groupId>
148 <artifactId>maven-junit4osgi-plugin
149 </artifactId>
150 <version>1.1.0-SNAPSHOT</version>
151 <executions>
152 <execution>
153 <goals>
154 <goal>test</goal>
155 </goals>
156 <configuration>
157 <logService>false</logService>
158 <configuration>
159 <org.osgi.http.port>8083</org.osgi.http.port>
160 </configuration>
161 </configuration>
162 </execution>
163 </executions>
164 </plugin>
Clement Escoffierce0e1e52008-03-28 15:33:36 +0000165 </plugins>
166 </build>
Clement Escoffier63419392010-10-07 17:56:58 +0000167</project>