blob: 0ed98d9c98b74bb7fd4efaa546dfbdad7831d693 [file] [log] [blame]
Clement Escoffiere50ede52008-03-28 15:33:36 +00001<!--
Clement Escoffier95358cb2011-08-18 11:36:08 +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 Escoffierc80b73d2009-07-03 13:16:24 +00009
Clement Escoffier95358cb2011-08-18 11:36:08 +000010 http://www.apache.org/licenses/LICENSE-2.0
Clement Escoffierc80b73d2009-07-03 13:16:24 +000011
Clement Escoffier95358cb2011-08-18 11:36:08 +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 Escoffiere50ede52008-03-28 15:33:36 +000018-->
Clement Escoffierf4622e52010-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">
Clement Escoffier95358cb2011-08-18 11:36:08 +000021 <parent>
22 <groupId>ipojo.tests</groupId>
23 <artifactId>ipojo.tests</artifactId>
24 <version>1.5.0-SNAPSHOT</version>
25 <relativePath>../../pom.xml</relativePath>
26 </parent>
Clement Escoffierf4622e52010-05-01 10:21:51 +000027
Clement Escoffier95358cb2011-08-18 11:36:08 +000028 <modelVersion>4.0.0</modelVersion>
29 <packaging>bundle</packaging>
30 <name>iPOJO Lifecycle controller Test Suite</name>
31 <artifactId>tests.core.lifecycle.controller</artifactId>
32 <groupId>ipojo.tests</groupId>
33 <version>${ipojo.core.snapshot}</version>
34 <dependencies>
35 <dependency>
36 <groupId>org.apache.felix</groupId>
37 <artifactId>org.apache.felix.ipojo</artifactId>
38 </dependency>
39 <dependency>
40 <groupId>org.apache.felix</groupId>
41 <artifactId>org.apache.felix.ipojo.metadata</artifactId>
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 <Export-Package>
72 org.apache.felix.ipojo.test.scenarios.lfc.service
73 </Export-Package>
74 <Bundle-SymbolicName>
75 ${project.artifactId}
76 </Bundle-SymbolicName>
77 <Private-Package>
78 org.apache.felix.ipojo.test*
79 </Private-Package>
80 <Test-Suite>
81 org.apache.felix.ipojo.test.scenarios.lfc.LifeCycleControllerTestSuite
82 </Test-Suite>
83 </instructions>
84 </configuration>
85 </plugin>
86 <plugin>
87 <groupId>org.apache.felix</groupId>
88 <artifactId>maven-ipojo-plugin</artifactId>
89 <executions>
90 <execution>
91 <goals>
92 <goal>ipojo-bundle</goal>
93 </goals>
94 <configuration>
95 <ignoreAnnotations>true</ignoreAnnotations>
96 <metadata>
97 <![CDATA[
98 <ipojo
99 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
100 xsi:schemaLocation="org.apache.felix.ipojo http://felix.apache.org/ipojo/schemas/SNAPSHOT/core.xsd"
101 xmlns="org.apache.felix.ipojo">
102 <component
103 classname="org.apache.felix.ipojo.test.scenarios.component.LifecycleControllerTest"
104 name="LFC-Test">
105 <provides />
106 <controller field="m_state" />
107 <properties>
108 <property name="conf" field="m_conf" method="setConf" />
109 </properties>
110 </component>
Clement Escoffieraa8bd862008-12-23 13:21:58 +0000111
Clement Escoffier95358cb2011-08-18 11:36:08 +0000112 <component
113 classname="org.apache.felix.ipojo.test.scenarios.component.LifecycleControllerTest"
114 name="LFC-Test-Immediate" immediate="true" architecture="true">
115 <provides />
116 <controller field="m_state" />
117 <properties>
118 <property name="conf" field="m_conf" method="setConf" />
119 </properties>
120 </component>
Clement Escoffiera947d902010-10-07 17:56:58 +0000121
Clement Escoffier95358cb2011-08-18 11:36:08 +0000122 <component
123 classname="org.apache.felix.ipojo.test.scenarios.component.ConfigurableLifecycleControllerTest"
124 name="LFC-Test-Configurable" architecture="true">
125 <provides />
126 <!-- The property and the controller share the same field -->
127 <controller field="m_state" />
128 <properties>
129 <property name="state" field="m_state" />
130 </properties>
131 </component>
132 </ipojo>
133 ]]>
134 </metadata>
135 </configuration>
136 </execution>
137 </executions>
138 </plugin>
139 <plugin>
140 <groupId>org.apache.maven.plugins</groupId>
141 <artifactId>maven-compiler-plugin</artifactId>
142 <configuration>
143 <source>1.4</source>
144 <target>1.4</target>
145 </configuration>
146 </plugin>
147 <plugin>
148 <groupId>org.apache.felix</groupId>
149 <artifactId>maven-junit4osgi-plugin
150 </artifactId>
151 <version>1.1.0-SNAPSHOT</version>
152 <executions>
153 <execution>
154 <goals>
155 <goal>test</goal>
156 </goals>
157 <configuration>
158 <logService>false</logService>
159 <configuration>
160 <org.osgi.http.port>8083</org.osgi.http.port>
161 </configuration>
162 </configuration>
163 </execution>
164 </executions>
165 </plugin>
166 </plugins>
167 </build>
Clement Escoffiera947d902010-10-07 17:56:58 +0000168</project>