Chetan Mehrotra | 58a0df6 | 2013-07-22 06:58:03 +0000 | [diff] [blame] | 1 | <!-- |
| 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 Mehrotra | 1491e9d | 2013-07-22 12:16:42 +0000 | [diff] [blame] | 19 | <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 Mehrotra | 58a0df6 | 2013-07-22 06:58:03 +0000 | [diff] [blame] | 20 | |
| 21 | <modelVersion>4.0.0</modelVersion> |
| 22 | <parent> |
| 23 | <groupId>org.apache.felix</groupId> |
| 24 | <artifactId>felix-parent</artifactId> |
Carsten Ziegeler | 947ea26 | 2015-08-13 12:49:52 +0000 | [diff] [blame] | 25 | <version>3</version> |
Chetan Mehrotra | 58a0df6 | 2013-07-22 06:58:03 +0000 | [diff] [blame] | 26 | <relativePath>../pom/pom.xml</relativePath> |
| 27 | </parent> |
| 28 | |
| 29 | <artifactId>org.apache.felix.webconsole.plugins.scriptconsole</artifactId> |
| 30 | <packaging>bundle</packaging> |
Chetan Mehrotra | be95b1a | 2013-07-22 12:17:02 +0000 | [diff] [blame] | 31 | <version>1.0.1-SNAPSHOT</version> |
Chetan Mehrotra | 58a0df6 | 2013-07-22 06:58:03 +0000 | [diff] [blame] | 32 | |
| 33 | <name>Apache Felix Script Console Plugin</name> |
Chetan Mehrotra | bf8832b | 2013-07-22 10:34:12 +0000 | [diff] [blame] | 34 | <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 Mehrotra | 58a0df6 | 2013-07-22 06:58:03 +0000 | [diff] [blame] | 37 | </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> |
Carsten Ziegeler | 947ea26 | 2015-08-13 12:49:52 +0000 | [diff] [blame] | 47 | <felix.java.version>6</felix.java.version> |
Chetan Mehrotra | 58a0df6 | 2013-07-22 06:58:03 +0000 | [diff] [blame] | 48 | </properties> |
| 49 | |
| 50 | <scm> |
Chetan Mehrotra | be95b1a | 2013-07-22 12:17:02 +0000 | [diff] [blame] | 51 | <connection>scm:svn:http://svn.apache.org/repos/asf/felix/trunk/webconsole-plugins/script-console</connection> |
Chetan Mehrotra | 58a0df6 | 2013-07-22 06:58:03 +0000 | [diff] [blame] | 52 | <developerConnection> |
Chetan Mehrotra | be95b1a | 2013-07-22 12:17:02 +0000 | [diff] [blame] | 53 | scm:svn:https://svn.apache.org/repos/asf/felix/trunk/webconsole-plugins/script-console |
Chetan Mehrotra | 58a0df6 | 2013-07-22 06:58:03 +0000 | [diff] [blame] | 54 | </developerConnection> |
Chetan Mehrotra | be95b1a | 2013-07-22 12:17:02 +0000 | [diff] [blame] | 55 | <url>http://svn.apache.org/viewvc/felix/trunk/webconsole-plugins/script-console</url> |
Chetan Mehrotra | 58a0df6 | 2013-07-22 06:58:03 +0000 | [diff] [blame] | 56 | </scm> |
| 57 | |
| 58 | <build> |
| 59 | <plugins> |
| 60 | <plugin> |
Chetan Mehrotra | 58a0df6 | 2013-07-22 06:58:03 +0000 | [diff] [blame] | 61 | <groupId>org.apache.felix</groupId> |
| 62 | <artifactId>maven-bundle-plugin</artifactId> |
Carsten Ziegeler | 947ea26 | 2015-08-13 12:49:52 +0000 | [diff] [blame] | 63 | <version>2.5.3</version> |
Chetan Mehrotra | 58a0df6 | 2013-07-22 06:58:03 +0000 | [diff] [blame] | 64 | <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> |
| 122 | <groupId>org.codehaus.mojo</groupId> |
| 123 | <artifactId>properties-maven-plugin</artifactId> |
| 124 | <version>1.0-alpha-2</version> |
| 125 | <executions> |
| 126 | <execution> |
| 127 | <goals> |
| 128 | <goal>set-system-properties</goal> |
| 129 | </goals> |
| 130 | <phase>pre-integration-test</phase> |
| 131 | <configuration> |
| 132 | <properties> |
| 133 | <property> |
| 134 | <name>project.bundle.file</name> |
| 135 | <value>${bundle.file.name}</value> |
| 136 | </property> |
| 137 | <property> |
| 138 | <name>http.port</name> |
| 139 | <value>${http.port}</value> |
| 140 | </property> |
| 141 | </properties> |
| 142 | </configuration> |
| 143 | </execution> |
| 144 | </executions> |
| 145 | </plugin> |
| 146 | <plugin> |
| 147 | <groupId>org.ops4j.pax.exam</groupId> |
| 148 | <artifactId>exam-maven-plugin</artifactId> |
Carsten Ziegeler | 947ea26 | 2015-08-13 12:49:52 +0000 | [diff] [blame] | 149 | <version>4.5.0</version> |
Chetan Mehrotra | 58a0df6 | 2013-07-22 06:58:03 +0000 | [diff] [blame] | 150 | <configuration> |
| 151 | <configClass>org.apache.felix.webconsole.plugins.scriptconsole.integration.ServerConfiguration</configClass> |
| 152 | </configuration> |
| 153 | <executions> |
| 154 | <execution> |
| 155 | <goals> |
| 156 | <goal>start-container</goal> |
| 157 | <goal>stop-container</goal> |
| 158 | </goals> |
| 159 | </execution> |
| 160 | </executions> |
| 161 | </plugin> |
| 162 | <plugin> |
| 163 | <groupId>org.apache.servicemix.tooling</groupId> |
| 164 | <artifactId>depends-maven-plugin</artifactId> |
| 165 | <version>1.2</version> |
| 166 | <executions> |
| 167 | <execution> |
| 168 | <id>generate-depends-file</id> |
| 169 | <goals> |
| 170 | <goal>generate-depends-file</goal> |
| 171 | </goals> |
| 172 | </execution> |
| 173 | </executions> |
| 174 | </plugin> |
| 175 | <!-- integration tests run with pax-exam --> |
| 176 | <plugin> |
| 177 | <artifactId>maven-failsafe-plugin</artifactId> |
| 178 | <version>2.12</version> |
| 179 | <executions> |
| 180 | <execution> |
| 181 | <goals> |
| 182 | <goal>integration-test</goal> |
| 183 | <goal>verify</goal> |
| 184 | </goals> |
| 185 | </execution> |
| 186 | </executions> |
| 187 | <configuration> |
| 188 | <systemPropertyVariables> |
| 189 | <coverage.command>${coverage.command}</coverage.command> |
| 190 | <http.port>${http.port}</http.port> |
| 191 | </systemPropertyVariables> |
| 192 | <forkMode>always</forkMode> |
| 193 | <parallel>none</parallel> |
| 194 | <threadCount>1</threadCount> |
| 195 | </configuration> |
| 196 | </plugin> |
| 197 | </plugins> |
| 198 | </build> |
| 199 | |
| 200 | <dependencies> |
| 201 | <dependency> |
| 202 | <groupId>org.osgi</groupId> |
| 203 | <artifactId>org.osgi.core</artifactId> |
| 204 | <version>4.2.0</version> |
| 205 | <scope>provided</scope> |
| 206 | </dependency> |
| 207 | <dependency> |
| 208 | <groupId>org.osgi</groupId> |
| 209 | <artifactId>org.osgi.compendium</artifactId> |
| 210 | <version>4.2.0</version> |
| 211 | <scope>provided</scope> |
| 212 | </dependency> |
| 213 | <dependency> |
| 214 | <groupId>javax.servlet</groupId> |
| 215 | <artifactId>servlet-api</artifactId> |
| 216 | <version>2.4</version> |
| 217 | <scope>provided</scope> |
| 218 | </dependency> |
| 219 | <dependency> |
| 220 | <groupId>commons-io</groupId> |
| 221 | <artifactId>commons-io</artifactId> |
| 222 | <version>1.4</version> |
| 223 | <scope>provided</scope> |
| 224 | </dependency> |
| 225 | <dependency> |
| 226 | <groupId>org.apache.felix</groupId> |
| 227 | <artifactId>org.apache.felix.webconsole</artifactId> |
| 228 | <version>3.1.8</version> |
| 229 | <scope>provided</scope> |
| 230 | </dependency> |
| 231 | <dependency> |
| 232 | <groupId>org.json</groupId> |
| 233 | <artifactId>json</artifactId> |
| 234 | <version>20070829</version> |
| 235 | <scope>provided</scope> |
| 236 | </dependency> |
| 237 | <dependency> |
| 238 | <groupId>commons-fileupload</groupId> |
| 239 | <artifactId>commons-fileupload</artifactId> |
| 240 | <version>1.2.1</version> |
| 241 | <scope>provided</scope> |
| 242 | </dependency> |
| 243 | |
| 244 | |
| 245 | <!-- testing --> |
| 246 | <dependency> |
| 247 | <groupId>junit</groupId> |
| 248 | <artifactId>junit</artifactId> |
| 249 | <scope>test</scope> |
| 250 | <version>4.10</version> |
| 251 | </dependency> |
| 252 | <!-- Pax Exam Dependencies --> |
| 253 | <dependency> |
| 254 | <groupId>org.ops4j.pax.exam</groupId> |
| 255 | <artifactId>pax-exam-container-forked</artifactId> |
| 256 | <version>${pax-exam.version}</version> |
| 257 | <scope>test</scope> |
| 258 | </dependency> |
| 259 | <dependency> |
| 260 | <groupId>org.ops4j.pax.exam</groupId> |
| 261 | <artifactId>pax-exam-junit4</artifactId> |
| 262 | <version>${pax-exam.version}</version> |
| 263 | <scope>test</scope> |
| 264 | </dependency> |
| 265 | <dependency> |
| 266 | <groupId>org.ops4j.pax.exam</groupId> |
| 267 | <artifactId>pax-exam-link-mvn</artifactId> |
| 268 | <version>${pax-exam.version}</version> |
| 269 | <scope>test</scope> |
| 270 | </dependency> |
| 271 | <dependency> |
| 272 | <groupId>org.ops4j.pax.url</groupId> |
| 273 | <artifactId>pax-url-wrap</artifactId> |
| 274 | <version>1.5.2</version> |
| 275 | <scope>test</scope> |
| 276 | </dependency> |
| 277 | <dependency> |
| 278 | <groupId>javax.inject</groupId> |
| 279 | <artifactId>javax.inject</artifactId> |
| 280 | <version>1</version> |
| 281 | <scope>test</scope> |
| 282 | </dependency> |
| 283 | <dependency> |
| 284 | <groupId>org.slf4j</groupId> |
| 285 | <artifactId>slf4j-simple</artifactId> |
| 286 | <version>1.6.0</version> |
| 287 | <scope>test</scope> |
| 288 | </dependency> |
| 289 | <dependency> |
| 290 | <groupId>org.apache.felix</groupId> |
| 291 | <artifactId>org.apache.felix.configadmin</artifactId> |
| 292 | <version>1.6.0</version> |
| 293 | <scope>test</scope> |
| 294 | </dependency> |
| 295 | <dependency> |
| 296 | <groupId>org.apache.felix</groupId> |
| 297 | <artifactId>org.apache.felix.http.jetty</artifactId> |
| 298 | <version>2.2.0</version> |
| 299 | <scope>test</scope> |
| 300 | </dependency> |
| 301 | <dependency> |
| 302 | <groupId>org.apache.sling</groupId> |
| 303 | <artifactId>org.apache.sling.testing.tools</artifactId> |
| 304 | <version>1.0.2</version> |
| 305 | <scope>test</scope> |
| 306 | </dependency> |
| 307 | </dependencies> |
| 308 | |
| 309 | |
| 310 | <profiles> |
| 311 | <!-- |
| 312 | copy the package such that IDEs may easily use it without |
| 313 | setting the system property |
| 314 | --> |
| 315 | <profile> |
| 316 | <id>ide</id> |
| 317 | <build> |
| 318 | <plugins> |
| 319 | <plugin> |
| 320 | <artifactId>maven-antrun-plugin</artifactId> |
Carsten Ziegeler | 947ea26 | 2015-08-13 12:49:52 +0000 | [diff] [blame] | 321 | <version>1.7</version> |
Chetan Mehrotra | 58a0df6 | 2013-07-22 06:58:03 +0000 | [diff] [blame] | 322 | <executions> |
| 323 | <execution> |
| 324 | <id>scr-file-create</id> |
| 325 | <phase>package</phase> |
| 326 | <goals> |
| 327 | <goal>run</goal> |
| 328 | </goals> |
| 329 | <configuration> |
| 330 | <target> |
Chetan Mehrotra | 1491e9d | 2013-07-22 12:16:42 +0000 | [diff] [blame] | 331 | <copy file="${project.build.directory}/${project.build.finalName}.jar" tofile="${project.build.directory}/scriptconsole.jar" /> |
Chetan Mehrotra | 58a0df6 | 2013-07-22 06:58:03 +0000 | [diff] [blame] | 332 | </target> |
| 333 | </configuration> |
| 334 | </execution> |
| 335 | </executions> |
| 336 | </plugin> |
| 337 | </plugins> |
| 338 | </build> |
| 339 | </profile> |
| 340 | <profile> |
| 341 | <id>coverage</id> |
| 342 | <build> |
| 343 | <plugins> |
| 344 | <plugin> |
| 345 | <groupId>org.jacoco</groupId> |
| 346 | <artifactId>jacoco-maven-plugin</artifactId> |
| 347 | <version>0.6.2.201302030002</version> |
| 348 | <executions> |
| 349 | <execution> |
| 350 | <id>prepare-agent</id> |
| 351 | <goals> |
| 352 | <goal>prepare-agent</goal> |
| 353 | </goals> |
| 354 | <configuration> |
| 355 | <propertyName>coverage.command</propertyName> |
| 356 | <includes> |
| 357 | <include>org.apache.felix.jaas.*</include> |
| 358 | </includes> |
| 359 | <excludes> |
| 360 | <exclude>org.apache.felix.jaas.integration.*</exclude> |
| 361 | </excludes> |
| 362 | </configuration> |
| 363 | </execution> |
| 364 | <execution> |
| 365 | <id>report</id> |
| 366 | <phase>post-integration-test</phase> |
| 367 | <goals> |
| 368 | <goal>report</goal> |
| 369 | </goals> |
| 370 | </execution> |
| 371 | <execution> |
| 372 | <id>check</id> |
| 373 | <goals> |
| 374 | <goal>check</goal> |
| 375 | </goals> |
| 376 | <configuration> |
| 377 | <check> |
| 378 | <classRatio>100</classRatio> |
| 379 | <instructionRatio>90</instructionRatio> |
| 380 | <methodRatio>95</methodRatio> |
| 381 | <branchRatio>85</branchRatio> |
| 382 | <complexityRatio>85</complexityRatio> |
| 383 | <lineRatio>90</lineRatio> |
| 384 | </check> |
| 385 | </configuration> |
| 386 | </execution> |
| 387 | </executions> |
| 388 | </plugin> |
| 389 | </plugins> |
| 390 | </build> |
| 391 | </profile> |
| 392 | |
| 393 | <profile> |
| 394 | <id>felix</id> |
| 395 | <activation> |
| 396 | <activeByDefault>true</activeByDefault> |
| 397 | </activation> |
| 398 | <dependencies> |
| 399 | <dependency> |
| 400 | <groupId>org.apache.felix</groupId> |
| 401 | <artifactId>org.apache.felix.framework</artifactId> |
| 402 | <version>4.0.2</version> |
| 403 | <scope>test</scope> |
| 404 | </dependency> |
| 405 | </dependencies> |
| 406 | </profile> |
| 407 | <profile> |
| 408 | <id>equinox</id> |
| 409 | <dependencies> |
| 410 | <dependency> |
| 411 | <groupId>org.eclipse</groupId> |
| 412 | <artifactId>org.eclipse.osgi</artifactId> |
| 413 | <version>3.8.0.v20120529-1548</version> |
| 414 | <scope>test</scope> |
| 415 | </dependency> |
| 416 | </dependencies> |
| 417 | </profile> |
| 418 | </profiles> |
| 419 | </project> |