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