blob: eb23da15a1c4391b68870cbffb92b4509b594c58 [file] [log] [blame]
Clement Escoffiere50ede52008-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 Escoffierc80b73d2009-07-03 13:16:24 +00009
Clement Escoffiere50ede52008-03-28 15:33:36 +000010 http://www.apache.org/licenses/LICENSE-2.0
Clement Escoffierc80b73d2009-07-03 13:16:24 +000011
Clement Escoffiere50ede52008-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 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">
21 <parent>
22 <groupId>ipojo.tests</groupId>
23 <artifactId>ipojo.tests</artifactId>
24 <version>1.5.0-SNAPSHOT</version>
25 </parent>
26
Clement Escoffiere50ede52008-03-28 15:33:36 +000027 <modelVersion>4.0.0</modelVersion>
28 <packaging>bundle</packaging>
Clement Escoffier832ab7a2008-04-25 16:49:43 +000029 <name>iPOJO Lifecycle controller Test Suite</name>
30 <artifactId>tests.core.lifecycle.controller</artifactId>
Clement Escoffiera4142112008-03-29 15:04:02 +000031 <groupId>ipojo.tests</groupId>
Clement Escoffier4cb4ff32009-08-14 12:11:19 +000032 <version>1.5.0-SNAPSHOT</version>
Clement Escoffiere50ede52008-03-28 15:33:36 +000033 <dependencies>
34 <dependency>
35 <groupId>org.apache.felix</groupId>
36 <artifactId>org.apache.felix.ipojo</artifactId>
Clement Escoffier86ea4652010-04-29 15:53:58 +000037 <version>1.7.0-SNAPSHOT</version>
Clement Escoffiere50ede52008-03-28 15:33:36 +000038 </dependency>
39 <dependency>
40 <groupId>org.apache.felix</groupId>
Clement Escoffiere50ede52008-03-28 15:33:36 +000041 <artifactId>org.apache.felix.ipojo.metadata</artifactId>
Clement Escoffiere50ede52008-03-28 15:33:36 +000042 </dependency>
43 <dependency>
Clement Escoffierf4622e52010-05-01 10:21:51 +000044 <groupId>org.osgi</groupId>
Clement Escoffiere50ede52008-03-28 15:33:36 +000045 <artifactId>org.osgi.core</artifactId>
Clement Escoffiere50ede52008-03-28 15:33:36 +000046 </dependency>
47 <dependency>
48 <groupId>junit</groupId>
49 <artifactId>junit</artifactId>
50 <version>3.8.1</version>
51 </dependency>
52 <dependency>
Clement Escoffier91fad492008-12-01 19:42:13 +000053 <groupId>org.apache.felix</groupId>
Clement Escoffiere50ede52008-03-28 15:33:36 +000054 <artifactId>org.apache.felix.ipojo.junit4osgi</artifactId>
Clement Escoffier818e6922008-10-14 13:55:56 +000055 <version>1.1.0-SNAPSHOT</version>
Clement Escoffiere50ede52008-03-28 15:33:36 +000056 </dependency>
Clement Escoffierf4622e52010-05-01 10:21:51 +000057 <dependency>
58 <groupId>org.osgi</groupId>
59 <artifactId>org.osgi.compendium</artifactId>
60 <version>4.0.0</version>
61 </dependency>
Clement Escoffiere50ede52008-03-28 15:33:36 +000062 </dependencies>
63 <build>
64 <plugins>
65 <plugin>
66 <groupId>org.apache.felix</groupId>
67 <artifactId>maven-bundle-plugin</artifactId>
Clement Escoffiere50ede52008-03-28 15:33:36 +000068 <extensions>true</extensions>
69 <configuration>
70 <instructions>
71 <Export-Package>
Clement Escoffier832ab7a2008-04-25 16:49:43 +000072 org.apache.felix.ipojo.test.scenarios.lfc.service
Clement Escoffiere50ede52008-03-28 15:33:36 +000073 </Export-Package>
74 <Bundle-SymbolicName>
Clement Escoffierfe606902010-05-01 10:46:02 +000075 ${project.artifactId}
Clement Escoffiere50ede52008-03-28 15:33:36 +000076 </Bundle-SymbolicName>
77 <Private-Package>
78 org.apache.felix.ipojo.test*
79 </Private-Package>
80 <Test-Suite>
Clement Escoffier832ab7a2008-04-25 16:49:43 +000081 org.apache.felix.ipojo.test.scenarios.lfc.LifeCycleControllerTestSuite
Clement Escoffiere50ede52008-03-28 15:33:36 +000082 </Test-Suite>
83 </instructions>
84 </configuration>
85 </plugin>
86 <plugin>
87 <groupId>org.apache.felix</groupId>
88 <artifactId>maven-ipojo-plugin</artifactId>
Clement Escoffiere50ede52008-03-28 15:33:36 +000089 <executions>
90 <execution>
91 <goals>
92 <goal>ipojo-bundle</goal>
93 </goals>
94 <configuration>
95 <ignoreAnnotations>true</ignoreAnnotations>
Clement Escoffieraa8bd862008-12-23 13:21:58 +000096 <metadata>
97 <![CDATA[
98 <ipojo
99 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Clement Escoffierc80b73d2009-07-03 13:16:24 +0000100 xsi:schemaLocation="org.apache.felix.ipojo http://felix.apache.org/ipojo/schemas/SNAPSHOT/core.xsd"
Clement Escoffieraa8bd862008-12-23 13:21:58 +0000101 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>
111
112 <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
122 <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>
Clement Escoffieraa8bd862008-12-23 13:21:58 +0000132 </ipojo>
133 ]]>
134 </metadata>
Clement Escoffiere50ede52008-03-28 15:33:36 +0000135 </configuration>
136 </execution>
137 </executions>
138 </plugin>
139 <plugin>
140 <groupId>org.apache.maven.plugins</groupId>
141 <artifactId>maven-compiler-plugin</artifactId>
142 <configuration>
Clement Escoffier832ab7a2008-04-25 16:49:43 +0000143 <source>1.4</source>
144 <target>1.4</target>
Clement Escoffiere50ede52008-03-28 15:33:36 +0000145 </configuration>
146 </plugin>
Clement Escoffiera947d902010-10-07 17:56:58 +0000147 <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>
Clement Escoffiere50ede52008-03-28 15:33:36 +0000166 </plugins>
167 </build>
Clement Escoffiera947d902010-10-07 17:56:58 +0000168</project>