blob: eff9f0bdee6e4e565f12b9e999f30ba015481dce [file] [log] [blame]
Chetan Mehrotra58a0df62013-07-22 06:58:03 +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
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 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-->
19<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
22 <modelVersion>4.0.0</modelVersion>
23 <parent>
24 <groupId>org.apache.felix</groupId>
25 <artifactId>felix-parent</artifactId>
26 <version>2.1</version>
27 <relativePath>../pom/pom.xml</relativePath>
28 </parent>
29
30 <artifactId>org.apache.felix.webconsole.plugins.scriptconsole</artifactId>
31 <packaging>bundle</packaging>
32 <version>0.0.1-SNAPSHOT</version>
33
34 <name>Apache Felix Script Console Plugin</name>
Chetan Mehrotrabf8832b2013-07-22 10:34:12 +000035 <description>
36 Apache Felix Script Console Plugin allows invocation of script through Felix Web Console UI. Refer to
37 http://felix.apache.org/documentation/subprojects/apache-felix-script-console-plugin.html for more details.
Chetan Mehrotra58a0df62013-07-22 06:58:03 +000038 </description>
39
40 <properties>
41 <pax-exam.version>3.0.0</pax-exam.version>
42 <bundle.build.name>
43 ${basedir}/target
44 </bundle.build.name>
45 <bundle.file.name>
46 ${bundle.build.name}/${project.build.finalName}.jar
47 </bundle.file.name>
48 </properties>
49
50 <scm>
51 <connection>scm:svn:http://svn.apache.org/repos/asf/felix/trunk/webconsole-plugins/script-console</connection>
52 <developerConnection>
53 scm:svn:https://svn.apache.org/repos/asf/felix/trunk/webconsole-plugins/script-console
54 </developerConnection>
55 <url>http://svn.apache.org/viewvc/felix/trunk/webconsole-plugins/script-console</url>
56 </scm>
57
58 <build>
59 <plugins>
60 <plugin>
61 <groupId>org.apache.maven.plugins</groupId>
62 <artifactId>maven-compiler-plugin</artifactId>
63 <configuration>
64 <source>1.5</source>
65 <target>1.5</target>
66 </configuration>
67 </plugin>
68 <plugin>
69 <groupId>org.apache.felix</groupId>
70 <artifactId>maven-bundle-plugin</artifactId>
71 <version>2.3.7</version>
72 <extensions>true</extensions>
73 <configuration>
74 <instructions>
75 <Bundle-Category>osgi</Bundle-Category>
76 <Bundle-SymbolicName>
77 ${project.artifactId}
78 </Bundle-SymbolicName>
79 <Import-Package>
80 org.json.*;version=0,
81 javax.servlet.*;version=2.3,
82 org.apache.commons.io; version="[1.4,3)",
83 *
84 </Import-Package>
85 <Bundle-Activator>
86 org.apache.felix.webconsole.plugins.scriptconsole.internal.Activator
87 </Bundle-Activator>
88 </instructions>
89 </configuration>
90 </plugin>
91 <plugin>
92 <groupId>org.apache.rat</groupId>
93 <artifactId>apache-rat-plugin</artifactId>
94 <configuration>
95 <includes>
96 <include>src/**</include>
97 </includes>
98 <excludes>
99 <exclude>src/main/appended-resources/**</exclude>
100 <exclude>src/main/resources/res/ui/codemirror/**</exclude>
101 <exclude>src/main/resources/res/ui/*.*</exclude>
102 <exclude>src/main/resources/templates/*.*</exclude>
103 <exclude>src/test/resources/*.*</exclude>
104 </excludes>
105 </configuration>
106 </plugin>
107
108 <!-- Required for pax exam-->
109
110 <plugin>
111 <groupId>org.codehaus.mojo</groupId>
112 <artifactId>build-helper-maven-plugin</artifactId>
113 <version>1.8</version>
114 <executions>
115 <execution>
116 <id>reserve-network-port</id>
117 <goals>
118 <goal>reserve-network-port</goal>
119 </goals>
120 <phase>pre-integration-test</phase>
121 <configuration>
122 <portNames>
123 <portName>http.port</portName>
124 </portNames>
125 </configuration>
126 </execution>
127 </executions>
128 </plugin>
129 <plugin>
130 <groupId>org.codehaus.mojo</groupId>
131 <artifactId>properties-maven-plugin</artifactId>
132 <version>1.0-alpha-2</version>
133 <executions>
134 <execution>
135 <goals>
136 <goal>set-system-properties</goal>
137 </goals>
138 <phase>pre-integration-test</phase>
139 <configuration>
140 <properties>
141 <property>
142 <name>project.bundle.file</name>
143 <value>${bundle.file.name}</value>
144 </property>
145 <property>
146 <name>http.port</name>
147 <value>${http.port}</value>
148 </property>
149 </properties>
150 </configuration>
151 </execution>
152 </executions>
153 </plugin>
154 <plugin>
155 <groupId>org.ops4j.pax.exam</groupId>
156 <artifactId>exam-maven-plugin</artifactId>
157 <version>3.0.3</version>
158 <configuration>
159 <configClass>org.apache.felix.webconsole.plugins.scriptconsole.integration.ServerConfiguration</configClass>
160 </configuration>
161 <executions>
162 <execution>
163 <goals>
164 <goal>start-container</goal>
165 <goal>stop-container</goal>
166 </goals>
167 </execution>
168 </executions>
169 </plugin>
170 <plugin>
171 <groupId>org.apache.servicemix.tooling</groupId>
172 <artifactId>depends-maven-plugin</artifactId>
173 <version>1.2</version>
174 <executions>
175 <execution>
176 <id>generate-depends-file</id>
177 <goals>
178 <goal>generate-depends-file</goal>
179 </goals>
180 </execution>
181 </executions>
182 </plugin>
183 <!-- integration tests run with pax-exam -->
184 <plugin>
185 <artifactId>maven-failsafe-plugin</artifactId>
186 <version>2.12</version>
187 <executions>
188 <execution>
189 <goals>
190 <goal>integration-test</goal>
191 <goal>verify</goal>
192 </goals>
193 </execution>
194 </executions>
195 <configuration>
196 <systemPropertyVariables>
197 <coverage.command>${coverage.command}</coverage.command>
198 <http.port>${http.port}</http.port>
199 </systemPropertyVariables>
200 <forkMode>always</forkMode>
201 <parallel>none</parallel>
202 <threadCount>1</threadCount>
203 </configuration>
204 </plugin>
205 </plugins>
206 </build>
207
208 <dependencies>
209 <dependency>
210 <groupId>org.osgi</groupId>
211 <artifactId>org.osgi.core</artifactId>
212 <version>4.2.0</version>
213 <scope>provided</scope>
214 </dependency>
215 <dependency>
216 <groupId>org.osgi</groupId>
217 <artifactId>org.osgi.compendium</artifactId>
218 <version>4.2.0</version>
219 <scope>provided</scope>
220 </dependency>
221 <dependency>
222 <groupId>javax.servlet</groupId>
223 <artifactId>servlet-api</artifactId>
224 <version>2.4</version>
225 <scope>provided</scope>
226 </dependency>
227 <dependency>
228 <groupId>commons-io</groupId>
229 <artifactId>commons-io</artifactId>
230 <version>1.4</version>
231 <scope>provided</scope>
232 </dependency>
233 <dependency>
234 <groupId>org.apache.felix</groupId>
235 <artifactId>org.apache.felix.webconsole</artifactId>
236 <version>3.1.8</version>
237 <scope>provided</scope>
238 </dependency>
239 <dependency>
240 <groupId>org.json</groupId>
241 <artifactId>json</artifactId>
242 <version>20070829</version>
243 <scope>provided</scope>
244 </dependency>
245 <dependency>
246 <groupId>commons-fileupload</groupId>
247 <artifactId>commons-fileupload</artifactId>
248 <version>1.2.1</version>
249 <scope>provided</scope>
250 </dependency>
251
252
253 <!-- testing -->
254 <dependency>
255 <groupId>junit</groupId>
256 <artifactId>junit</artifactId>
257 <scope>test</scope>
258 <version>4.10</version>
259 </dependency>
260 <!-- Pax Exam Dependencies -->
261 <dependency>
262 <groupId>org.ops4j.pax.exam</groupId>
263 <artifactId>pax-exam-container-forked</artifactId>
264 <version>${pax-exam.version}</version>
265 <scope>test</scope>
266 </dependency>
267 <dependency>
268 <groupId>org.ops4j.pax.exam</groupId>
269 <artifactId>pax-exam-junit4</artifactId>
270 <version>${pax-exam.version}</version>
271 <scope>test</scope>
272 </dependency>
273 <dependency>
274 <groupId>org.ops4j.pax.exam</groupId>
275 <artifactId>pax-exam-link-mvn</artifactId>
276 <version>${pax-exam.version}</version>
277 <scope>test</scope>
278 </dependency>
279 <dependency>
280 <groupId>org.ops4j.pax.url</groupId>
281 <artifactId>pax-url-wrap</artifactId>
282 <version>1.5.2</version>
283 <scope>test</scope>
284 </dependency>
285 <dependency>
286 <groupId>javax.inject</groupId>
287 <artifactId>javax.inject</artifactId>
288 <version>1</version>
289 <scope>test</scope>
290 </dependency>
291 <dependency>
292 <groupId>org.slf4j</groupId>
293 <artifactId>slf4j-simple</artifactId>
294 <version>1.6.0</version>
295 <scope>test</scope>
296 </dependency>
297 <dependency>
298 <groupId>org.apache.felix</groupId>
299 <artifactId>org.apache.felix.configadmin</artifactId>
300 <version>1.6.0</version>
301 <scope>test</scope>
302 </dependency>
303 <dependency>
304 <groupId>org.apache.felix</groupId>
305 <artifactId>org.apache.felix.http.jetty</artifactId>
306 <version>2.2.0</version>
307 <scope>test</scope>
308 </dependency>
309 <dependency>
310 <groupId>org.apache.sling</groupId>
311 <artifactId>org.apache.sling.testing.tools</artifactId>
312 <version>1.0.2</version>
313 <scope>test</scope>
314 </dependency>
315 </dependencies>
316
317
318 <profiles>
319 <!--
320 copy the package such that IDEs may easily use it without
321 setting the system property
322 -->
323 <profile>
324 <id>ide</id>
325 <build>
326 <plugins>
327 <plugin>
328 <artifactId>maven-antrun-plugin</artifactId>
329 <executions>
330 <execution>
331 <id>scr-file-create</id>
332 <phase>package</phase>
333 <goals>
334 <goal>run</goal>
335 </goals>
336 <configuration>
337 <target>
338 <copy file="${project.build.directory}/${project.build.finalName}.jar"
339 tofile="${project.build.directory}/scriptconsole.jar" />
340 </target>
341 </configuration>
342 </execution>
343 </executions>
344 </plugin>
345 </plugins>
346 </build>
347 </profile>
348 <profile>
349 <id>coverage</id>
350 <build>
351 <plugins>
352 <plugin>
353 <groupId>org.jacoco</groupId>
354 <artifactId>jacoco-maven-plugin</artifactId>
355 <version>0.6.2.201302030002</version>
356 <executions>
357 <execution>
358 <id>prepare-agent</id>
359 <goals>
360 <goal>prepare-agent</goal>
361 </goals>
362 <configuration>
363 <propertyName>coverage.command</propertyName>
364 <includes>
365 <include>org.apache.felix.jaas.*</include>
366 </includes>
367 <excludes>
368 <exclude>org.apache.felix.jaas.integration.*</exclude>
369 </excludes>
370 </configuration>
371 </execution>
372 <execution>
373 <id>report</id>
374 <phase>post-integration-test</phase>
375 <goals>
376 <goal>report</goal>
377 </goals>
378 </execution>
379 <execution>
380 <id>check</id>
381 <goals>
382 <goal>check</goal>
383 </goals>
384 <configuration>
385 <check>
386 <classRatio>100</classRatio>
387 <instructionRatio>90</instructionRatio>
388 <methodRatio>95</methodRatio>
389 <branchRatio>85</branchRatio>
390 <complexityRatio>85</complexityRatio>
391 <lineRatio>90</lineRatio>
392 </check>
393 </configuration>
394 </execution>
395 </executions>
396 </plugin>
397 </plugins>
398 </build>
399 </profile>
400
401 <profile>
402 <id>felix</id>
403 <activation>
404 <activeByDefault>true</activeByDefault>
405 </activation>
406 <dependencies>
407 <dependency>
408 <groupId>org.apache.felix</groupId>
409 <artifactId>org.apache.felix.framework</artifactId>
410 <version>4.0.2</version>
411 <scope>test</scope>
412 </dependency>
413 </dependencies>
414 </profile>
415 <profile>
416 <id>equinox</id>
417 <dependencies>
418 <dependency>
419 <groupId>org.eclipse</groupId>
420 <artifactId>org.eclipse.osgi</artifactId>
421 <version>3.8.0.v20120529-1548</version>
422 <scope>test</scope>
423 </dependency>
424 </dependencies>
425 </profile>
426 </profiles>
427</project>