blob: 552d7f9f608f288bfcd6beb3569fdc6bf59a1f27 [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>
Carsten Ziegeler947ea262015-08-13 12:49:52 +000025 <version>3</version>
Chetan Mehrotrafebed482015-11-30 08:35:35 +000026 <relativePath>../../pom/pom.xml</relativePath>
Chetan Mehrotra58a0df62013-07-22 06:58:03 +000027 </parent>
28
29 <artifactId>org.apache.felix.webconsole.plugins.scriptconsole</artifactId>
30 <packaging>bundle</packaging>
Chetan Mehrotra223e8082015-11-30 12:14:47 +000031 <version>1.0.3-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>
Chetan Mehrotrafebed482015-11-30 08:35:35 +000040 <pax-exam.version>4.6.0</pax-exam.version>
Chetan Mehrotra58a0df62013-07-22 06:58:03 +000041 <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>
Carsten Ziegeler947ea262015-08-13 12:49:52 +000047 <felix.java.version>6</felix.java.version>
Chetan Mehrotra58a0df62013-07-22 06:58:03 +000048 </properties>
49
50 <scm>
Chetan Mehrotra223e8082015-11-30 12:14:47 +000051 <connection>scm:svn:http://svn.apache.org/repos/asf/felix/trunk/webconsole-plugins/script-console</connection>
Chetan Mehrotra58a0df62013-07-22 06:58:03 +000052 <developerConnection>
Chetan Mehrotra223e8082015-11-30 12:14:47 +000053 scm:svn:https://svn.apache.org/repos/asf/felix/trunk/webconsole-plugins/script-console
Chetan Mehrotra58a0df62013-07-22 06:58:03 +000054 </developerConnection>
Chetan Mehrotra223e8082015-11-30 12:14:47 +000055 <url>http://svn.apache.org/viewvc/felix/trunk/webconsole-plugins/script-console</url>
Chetan Mehrotra58a0df62013-07-22 06:58:03 +000056 </scm>
57
58 <build>
59 <plugins>
60 <plugin>
Chetan Mehrotra58a0df62013-07-22 06:58:03 +000061 <groupId>org.apache.felix</groupId>
62 <artifactId>maven-bundle-plugin</artifactId>
Carsten Ziegeler947ea262015-08-13 12:49:52 +000063 <version>2.5.3</version>
Chetan Mehrotra58a0df62013-07-22 06:58:03 +000064 <extensions>true</extensions>
65 <configuration>
66 <instructions>
67 <Bundle-Category>osgi</Bundle-Category>
68 <Bundle-SymbolicName>
69 ${project.artifactId}
70 </Bundle-SymbolicName>
71 <Import-Package>
72 org.json.*;version=0,
73 javax.servlet.*;version=2.3,
74 org.apache.commons.io; version="[1.4,3)",
75 *
76 </Import-Package>
77 <Bundle-Activator>
78 org.apache.felix.webconsole.plugins.scriptconsole.internal.Activator
79 </Bundle-Activator>
80 </instructions>
81 </configuration>
82 </plugin>
83 <plugin>
84 <groupId>org.apache.rat</groupId>
85 <artifactId>apache-rat-plugin</artifactId>
86 <configuration>
87 <includes>
88 <include>src/**</include>
89 </includes>
90 <excludes>
91 <exclude>src/main/appended-resources/**</exclude>
92 <exclude>src/main/resources/res/ui/codemirror/**</exclude>
93 <exclude>src/main/resources/res/ui/*.*</exclude>
94 <exclude>src/main/resources/templates/*.*</exclude>
95 <exclude>src/test/resources/*.*</exclude>
96 </excludes>
97 </configuration>
98 </plugin>
99
100 <!-- Required for pax exam-->
101
102 <plugin>
103 <groupId>org.codehaus.mojo</groupId>
104 <artifactId>build-helper-maven-plugin</artifactId>
105 <version>1.8</version>
106 <executions>
107 <execution>
108 <id>reserve-network-port</id>
109 <goals>
110 <goal>reserve-network-port</goal>
111 </goals>
112 <phase>pre-integration-test</phase>
113 <configuration>
114 <portNames>
115 <portName>http.port</portName>
116 </portNames>
117 </configuration>
118 </execution>
119 </executions>
120 </plugin>
121 <plugin>
Chetan Mehrotra58a0df62013-07-22 06:58:03 +0000122 <groupId>org.apache.servicemix.tooling</groupId>
123 <artifactId>depends-maven-plugin</artifactId>
124 <version>1.2</version>
125 <executions>
126 <execution>
127 <id>generate-depends-file</id>
128 <goals>
129 <goal>generate-depends-file</goal>
130 </goals>
131 </execution>
132 </executions>
133 </plugin>
134 <!-- integration tests run with pax-exam -->
135 <plugin>
136 <artifactId>maven-failsafe-plugin</artifactId>
137 <version>2.12</version>
138 <executions>
139 <execution>
140 <goals>
141 <goal>integration-test</goal>
142 <goal>verify</goal>
143 </goals>
144 </execution>
145 </executions>
146 <configuration>
147 <systemPropertyVariables>
148 <coverage.command>${coverage.command}</coverage.command>
149 <http.port>${http.port}</http.port>
Chetan Mehrotrafebed482015-11-30 08:35:35 +0000150 <project.bundle.file>${bundle.file.name}</project.bundle.file>
Chetan Mehrotra58a0df62013-07-22 06:58:03 +0000151 </systemPropertyVariables>
152 <forkMode>always</forkMode>
153 <parallel>none</parallel>
154 <threadCount>1</threadCount>
155 </configuration>
156 </plugin>
157 </plugins>
158 </build>
159
160 <dependencies>
Chetan Mehrotrafebed482015-11-30 08:35:35 +0000161 <!-- Need to keep first to override conflicts in core and
162 compendium jars-->
163 <dependency>
164 <groupId>org.apache.felix</groupId>
165 <artifactId>org.apache.felix.framework</artifactId>
166 <version>5.4.0</version>
167 <scope>test</scope>
168 </dependency>
169
Chetan Mehrotra58a0df62013-07-22 06:58:03 +0000170 <dependency>
171 <groupId>org.osgi</groupId>
172 <artifactId>org.osgi.core</artifactId>
173 <version>4.2.0</version>
174 <scope>provided</scope>
175 </dependency>
176 <dependency>
177 <groupId>org.osgi</groupId>
178 <artifactId>org.osgi.compendium</artifactId>
179 <version>4.2.0</version>
180 <scope>provided</scope>
181 </dependency>
182 <dependency>
183 <groupId>javax.servlet</groupId>
184 <artifactId>servlet-api</artifactId>
185 <version>2.4</version>
186 <scope>provided</scope>
187 </dependency>
188 <dependency>
189 <groupId>commons-io</groupId>
190 <artifactId>commons-io</artifactId>
191 <version>1.4</version>
192 <scope>provided</scope>
193 </dependency>
194 <dependency>
195 <groupId>org.apache.felix</groupId>
196 <artifactId>org.apache.felix.webconsole</artifactId>
197 <version>3.1.8</version>
198 <scope>provided</scope>
199 </dependency>
200 <dependency>
201 <groupId>org.json</groupId>
202 <artifactId>json</artifactId>
203 <version>20070829</version>
204 <scope>provided</scope>
205 </dependency>
206 <dependency>
207 <groupId>commons-fileupload</groupId>
208 <artifactId>commons-fileupload</artifactId>
209 <version>1.2.1</version>
210 <scope>provided</scope>
211 </dependency>
212
213
214 <!-- testing -->
215 <dependency>
216 <groupId>junit</groupId>
217 <artifactId>junit</artifactId>
218 <scope>test</scope>
219 <version>4.10</version>
220 </dependency>
221 <!-- Pax Exam Dependencies -->
222 <dependency>
223 <groupId>org.ops4j.pax.exam</groupId>
Chetan Mehrotrafebed482015-11-30 08:35:35 +0000224 <artifactId>pax-exam-container-native</artifactId>
Chetan Mehrotra58a0df62013-07-22 06:58:03 +0000225 <version>${pax-exam.version}</version>
226 <scope>test</scope>
227 </dependency>
228 <dependency>
229 <groupId>org.ops4j.pax.exam</groupId>
230 <artifactId>pax-exam-junit4</artifactId>
231 <version>${pax-exam.version}</version>
232 <scope>test</scope>
233 </dependency>
234 <dependency>
235 <groupId>org.ops4j.pax.exam</groupId>
236 <artifactId>pax-exam-link-mvn</artifactId>
237 <version>${pax-exam.version}</version>
238 <scope>test</scope>
239 </dependency>
240 <dependency>
241 <groupId>org.ops4j.pax.url</groupId>
242 <artifactId>pax-url-wrap</artifactId>
Chetan Mehrotrafebed482015-11-30 08:35:35 +0000243 <version>2.4.3</version>
Chetan Mehrotra58a0df62013-07-22 06:58:03 +0000244 <scope>test</scope>
245 </dependency>
246 <dependency>
247 <groupId>javax.inject</groupId>
248 <artifactId>javax.inject</artifactId>
249 <version>1</version>
250 <scope>test</scope>
251 </dependency>
252 <dependency>
253 <groupId>org.slf4j</groupId>
254 <artifactId>slf4j-simple</artifactId>
255 <version>1.6.0</version>
256 <scope>test</scope>
257 </dependency>
258 <dependency>
259 <groupId>org.apache.felix</groupId>
260 <artifactId>org.apache.felix.configadmin</artifactId>
261 <version>1.6.0</version>
262 <scope>test</scope>
263 </dependency>
264 <dependency>
265 <groupId>org.apache.felix</groupId>
266 <artifactId>org.apache.felix.http.jetty</artifactId>
267 <version>2.2.0</version>
268 <scope>test</scope>
269 </dependency>
270 <dependency>
271 <groupId>org.apache.sling</groupId>
272 <artifactId>org.apache.sling.testing.tools</artifactId>
273 <version>1.0.2</version>
274 <scope>test</scope>
275 </dependency>
276 </dependencies>
277
278
279 <profiles>
280 <!--
281 copy the package such that IDEs may easily use it without
282 setting the system property
283 -->
284 <profile>
285 <id>ide</id>
286 <build>
287 <plugins>
288 <plugin>
289 <artifactId>maven-antrun-plugin</artifactId>
Carsten Ziegeler947ea262015-08-13 12:49:52 +0000290 <version>1.7</version>
Chetan Mehrotra58a0df62013-07-22 06:58:03 +0000291 <executions>
292 <execution>
293 <id>scr-file-create</id>
294 <phase>package</phase>
295 <goals>
296 <goal>run</goal>
297 </goals>
298 <configuration>
299 <target>
Chetan Mehrotra1491e9d2013-07-22 12:16:42 +0000300 <copy file="${project.build.directory}/${project.build.finalName}.jar" tofile="${project.build.directory}/scriptconsole.jar" />
Chetan Mehrotra58a0df62013-07-22 06:58:03 +0000301 </target>
302 </configuration>
303 </execution>
304 </executions>
305 </plugin>
306 </plugins>
307 </build>
308 </profile>
309 <profile>
310 <id>coverage</id>
311 <build>
312 <plugins>
313 <plugin>
314 <groupId>org.jacoco</groupId>
315 <artifactId>jacoco-maven-plugin</artifactId>
316 <version>0.6.2.201302030002</version>
317 <executions>
318 <execution>
319 <id>prepare-agent</id>
320 <goals>
321 <goal>prepare-agent</goal>
322 </goals>
323 <configuration>
324 <propertyName>coverage.command</propertyName>
325 <includes>
326 <include>org.apache.felix.jaas.*</include>
327 </includes>
328 <excludes>
329 <exclude>org.apache.felix.jaas.integration.*</exclude>
330 </excludes>
331 </configuration>
332 </execution>
333 <execution>
334 <id>report</id>
335 <phase>post-integration-test</phase>
336 <goals>
337 <goal>report</goal>
338 </goals>
339 </execution>
340 <execution>
341 <id>check</id>
342 <goals>
343 <goal>check</goal>
344 </goals>
345 <configuration>
346 <check>
347 <classRatio>100</classRatio>
348 <instructionRatio>90</instructionRatio>
349 <methodRatio>95</methodRatio>
350 <branchRatio>85</branchRatio>
351 <complexityRatio>85</complexityRatio>
352 <lineRatio>90</lineRatio>
353 </check>
354 </configuration>
355 </execution>
356 </executions>
357 </plugin>
358 </plugins>
359 </build>
360 </profile>
Chetan Mehrotra58a0df62013-07-22 06:58:03 +0000361 </profiles>
362</project>