Felix Meschberger | 84c838b | 2012-10-18 10:10:08 +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 | 8295c86 | 2014-02-11 10:17:19 +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"> |
| 20 | |
Felix Meschberger | 84c838b | 2012-10-18 10:10:08 +0000 | [diff] [blame] | 21 | |
Chetan Mehrotra | a6403c9 | 2014-02-05 06:40:31 +0000 | [diff] [blame] | 22 | <modelVersion>4.0.0</modelVersion> |
| 23 | <parent> |
| 24 | <groupId>org.apache.felix</groupId> |
| 25 | <artifactId>felix-parent</artifactId> |
Chetan Mehrotra | ea145c7 | 2015-11-30 12:43:07 +0000 | [diff] [blame] | 26 | <version>3</version> |
Chetan Mehrotra | a6403c9 | 2014-02-05 06:40:31 +0000 | [diff] [blame] | 27 | <relativePath>../pom/pom.xml</relativePath> |
| 28 | </parent> |
| 29 | |
| 30 | <artifactId>org.apache.felix.jaas</artifactId> |
Chetan Mehrotra | 03070a2 | 2014-02-11 10:22:31 +0000 | [diff] [blame] | 31 | <version>0.0.3-SNAPSHOT</version> |
Chetan Mehrotra | a6403c9 | 2014-02-05 06:40:31 +0000 | [diff] [blame] | 32 | <packaging>bundle</packaging> |
| 33 | |
| 34 | <name>Apache Felix JAAS Support</name> |
Chetan Mehrotra | 8295c86 | 2014-02-11 10:17:19 +0000 | [diff] [blame] | 35 | <description> |
| 36 | Bundle to simplify JAAS usage within OSGi environment. Refer to http://felix.apache.org/documentation/subprojects/apache-felix-jaas.html |
| 37 | for more details |
| 38 | </description> |
Chetan Mehrotra | a6403c9 | 2014-02-05 06:40:31 +0000 | [diff] [blame] | 39 | |
| 40 | <scm> |
Chetan Mehrotra | 03070a2 | 2014-02-11 10:22:31 +0000 | [diff] [blame] | 41 | <connection>scm:svn:http://svn.apache.org/repos/asf/felix/trunk/jaas</connection> |
| 42 | <developerConnection>scm:svn:https://svn.apache.org/repos/asf/felix/trunk/jaas</developerConnection> |
| 43 | <url>scm:svn:https://svn.apache.org/repos/asf/felix/jaas</url> |
Chetan Mehrotra | a6403c9 | 2014-02-05 06:40:31 +0000 | [diff] [blame] | 44 | </scm> |
| 45 | |
| 46 | <properties> |
| 47 | <pax-exam.version>3.0.0</pax-exam.version> |
| 48 | <bundle.build.name> |
| 49 | ${basedir}/target |
| 50 | </bundle.build.name> |
| 51 | <bundle.file.name> |
| 52 | ${bundle.build.name}/${project.build.finalName}.jar |
| 53 | </bundle.file.name> |
| 54 | <bundle.boot.file> |
| 55 | ${bundle.build.name}/${project.build.finalName}-boot.jar |
| 56 | </bundle.boot.file> |
Chetan Mehrotra | d9a3871 | 2015-11-30 12:46:50 +0000 | [diff] [blame^] | 57 | <felix.java.version>6</felix.java.version> |
Chetan Mehrotra | a6403c9 | 2014-02-05 06:40:31 +0000 | [diff] [blame] | 58 | </properties> |
| 59 | |
| 60 | <build> |
| 61 | <plugins> |
| 62 | <!-- |
| 63 | We do not use DS but the SCR plugin is used to generate the |
| 64 | metatype.xml from the SCR annotations |
| 65 | --> |
| 66 | <plugin> |
Felix Meschberger | 84c838b | 2012-10-18 10:10:08 +0000 | [diff] [blame] | 67 | <groupId>org.apache.felix</groupId> |
Chetan Mehrotra | a6403c9 | 2014-02-05 06:40:31 +0000 | [diff] [blame] | 68 | <artifactId>maven-scr-plugin</artifactId> |
| 69 | <version>1.7.4</version> |
| 70 | <executions> |
| 71 | <execution> |
| 72 | <id>generate-scr-scrdescriptor</id> |
| 73 | <goals> |
| 74 | <goal>scr</goal> |
| 75 | </goals> |
| 76 | </execution> |
| 77 | </executions> |
| 78 | </plugin> |
| 79 | <plugin> |
| 80 | <groupId>org.apache.maven.plugins</groupId> |
| 81 | <artifactId>maven-compiler-plugin</artifactId> |
| 82 | <version>2.5.1</version> |
| 83 | <!-- We use the new JDK 1.6 ConfigurationSpi API so can set the version to 1.6--> |
| 84 | <configuration> |
| 85 | <source>1.6</source> |
| 86 | <target>1.6</target> |
| 87 | </configuration> |
| 88 | </plugin> |
| 89 | <plugin> |
| 90 | <groupId>org.apache.felix</groupId> |
| 91 | <artifactId>maven-bundle-plugin</artifactId> |
| 92 | <version>2.3.7</version> |
| 93 | <extensions>true</extensions> |
| 94 | <configuration> |
| 95 | <instructions> |
| 96 | <Bundle-SymbolicName> |
| 97 | ${project.artifactId} |
| 98 | </Bundle-SymbolicName> |
| 99 | <Bundle-Vendor> |
| 100 | The Apache Software Foundation |
| 101 | </Bundle-Vendor> |
| 102 | <Bundle-DocURL> |
| 103 | http://felix.apache.org/documentation/subprojects/apache-felix-jaas.html |
| 104 | </Bundle-DocURL> |
| 105 | <Bundle-Activator> |
| 106 | org.apache.felix.jaas.internal.Activator |
| 107 | </Bundle-Activator> |
| 108 | <DynamicImport-Package> |
| 109 | javax.servlet, |
| 110 | javax.servlet.http |
| 111 | </DynamicImport-Package> |
| 112 | <_removeheaders> |
| 113 | Embed-Dependency,Private-Package,Include-Resource |
| 114 | </_removeheaders> |
| 115 | <Embed-Dependency> |
| 116 | org.apache.sling.commons.osgi;inline= |
| 117 | org/apache/sling/commons/osgi/PropertiesUtil*.class| |
| 118 | org/apache/sling/commons/osgi/ManifestHeader*.class |
| 119 | </Embed-Dependency> |
| 120 | </instructions> |
| 121 | </configuration> |
| 122 | </plugin> |
| 123 | <!-- Create jar which can be put in boot classpath to enable use of |
| 124 | ProxyLoginModule in normal JAAS mode of authentication --> |
| 125 | <plugin> |
| 126 | <artifactId>maven-jar-plugin</artifactId> |
| 127 | <executions> |
| 128 | <execution> |
| 129 | <id>boot-library</id> |
| 130 | <goals> |
| 131 | <goal>jar</goal> |
| 132 | </goals> |
| 133 | <phase>package</phase> |
| 134 | <configuration> |
| 135 | <classifier>boot</classifier> |
| 136 | <includes> |
| 137 | <include>org/apache/felix/jaas/boot/*.class</include> |
| 138 | <include>META-INF/NOTICE</include> |
| 139 | <include>META-INF/DEPENDENCIES</include> |
| 140 | <include>META-INF/LICENSE</include> |
| 141 | </includes> |
| 142 | </configuration> |
| 143 | </execution> |
| 144 | </executions> |
| 145 | </plugin> |
Felix Meschberger | 84c838b | 2012-10-18 10:10:08 +0000 | [diff] [blame] | 146 | |
Chetan Mehrotra | a6403c9 | 2014-02-05 06:40:31 +0000 | [diff] [blame] | 147 | <!-- Required for pax exam--> |
| 148 | <plugin> |
| 149 | <groupId>org.apache.servicemix.tooling</groupId> |
| 150 | <artifactId>depends-maven-plugin</artifactId> |
| 151 | <version>1.2</version> |
| 152 | <executions> |
| 153 | <execution> |
| 154 | <id>generate-depends-file</id> |
| 155 | <goals> |
| 156 | <goal>generate-depends-file</goal> |
| 157 | </goals> |
| 158 | </execution> |
| 159 | </executions> |
| 160 | </plugin> |
| 161 | <!-- integration tests run with pax-exam --> |
| 162 | <plugin> |
| 163 | <artifactId>maven-failsafe-plugin</artifactId> |
| 164 | <version>2.12</version> |
| 165 | <executions> |
| 166 | <execution> |
| 167 | <goals> |
| 168 | <goal>integration-test</goal> |
| 169 | <goal>verify</goal> |
| 170 | </goals> |
| 171 | </execution> |
| 172 | </executions> |
| 173 | <configuration> |
| 174 | <systemPropertyVariables> |
| 175 | <project.bundle.file>${bundle.file.name}</project.bundle.file> |
| 176 | <project.boot.file>${bundle.file.name}</project.boot.file> |
| 177 | <coverage.command>${coverage.command}</coverage.command> |
| 178 | = |
| 179 | </systemPropertyVariables> |
| 180 | </configuration> |
| 181 | </plugin> |
| 182 | <plugin> |
| 183 | <groupId>org.apache.maven.plugins</groupId> |
| 184 | <artifactId>maven-javadoc-plugin</artifactId> |
| 185 | <configuration> |
| 186 | <!--suppress MavenModelInspection --> |
| 187 | <encoding>${project.build.sourceEncoding}</encoding> |
| 188 | <excludePackageNames>*.internal</excludePackageNames> |
| 189 | </configuration> |
| 190 | </plugin> |
| 191 | </plugins> |
| 192 | </build> |
Felix Meschberger | 84c838b | 2012-10-18 10:10:08 +0000 | [diff] [blame] | 193 | |
Chetan Mehrotra | a6403c9 | 2014-02-05 06:40:31 +0000 | [diff] [blame] | 194 | <dependencies> |
| 195 | <dependency> |
| 196 | <groupId>org.osgi</groupId> |
| 197 | <artifactId>org.osgi.compendium</artifactId> |
| 198 | <version>4.2.0</version> |
| 199 | <scope>provided</scope> |
| 200 | </dependency> |
| 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>biz.aQute.bnd</groupId> |
| 209 | <artifactId>bnd</artifactId> |
| 210 | <version>2.1.0</version> |
| 211 | <scope>provided</scope> |
| 212 | </dependency> |
| 213 | <dependency> |
| 214 | <groupId>org.apache.felix</groupId> |
| 215 | <artifactId>org.apache.felix.scr.annotations</artifactId> |
| 216 | <version>1.6.0</version> |
| 217 | <scope>provided</scope> |
| 218 | </dependency> |
| 219 | <dependency> |
| 220 | <groupId>javax.servlet</groupId> |
| 221 | <artifactId>servlet-api</artifactId> |
| 222 | <version>2.3</version> |
| 223 | <optional>true</optional> |
| 224 | </dependency> |
| 225 | <dependency> |
| 226 | <groupId>org.apache.sling</groupId> |
| 227 | <artifactId>org.apache.sling.commons.osgi</artifactId> |
| 228 | <version>2.2.0</version> |
| 229 | <scope>provided</scope> |
| 230 | </dependency> |
Felix Meschberger | 84c838b | 2012-10-18 10:10:08 +0000 | [diff] [blame] | 231 | |
Chetan Mehrotra | a6403c9 | 2014-02-05 06:40:31 +0000 | [diff] [blame] | 232 | <!-- testing --> |
| 233 | <dependency> |
| 234 | <groupId>org.apache.felix</groupId> |
| 235 | <artifactId>org.apache.felix.framework</artifactId> |
Chetan Mehrotra | 2bdfd5a | 2015-11-30 06:07:27 +0000 | [diff] [blame] | 236 | <version>5.4.0</version> |
Chetan Mehrotra | a6403c9 | 2014-02-05 06:40:31 +0000 | [diff] [blame] | 237 | <scope>test</scope> |
| 238 | </dependency> |
Felix Meschberger | 84c838b | 2012-10-18 10:10:08 +0000 | [diff] [blame] | 239 | |
Chetan Mehrotra | a6403c9 | 2014-02-05 06:40:31 +0000 | [diff] [blame] | 240 | <dependency> |
| 241 | <groupId>junit</groupId> |
| 242 | <artifactId>junit</artifactId> |
| 243 | <scope>test</scope> |
| 244 | <version>4.10</version> |
| 245 | </dependency> |
| 246 | <!-- Pax Exam Dependencies --> |
| 247 | <dependency> |
| 248 | <groupId>org.ops4j.pax.exam</groupId> |
| 249 | <artifactId>pax-exam-container-forked</artifactId> |
| 250 | <version>${pax-exam.version}</version> |
| 251 | <scope>test</scope> |
| 252 | </dependency> |
| 253 | <dependency> |
| 254 | <groupId>org.ops4j.pax.exam</groupId> |
| 255 | <artifactId>pax-exam-junit4</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-link-mvn</artifactId> |
| 262 | <version>${pax-exam.version}</version> |
| 263 | <scope>test</scope> |
| 264 | </dependency> |
| 265 | <dependency> |
| 266 | <groupId>org.ops4j.pax.tinybundles</groupId> |
| 267 | <artifactId>tinybundles</artifactId> |
| 268 | <version>2.0.0</version> |
| 269 | <scope>test</scope> |
| 270 | </dependency> |
| 271 | <dependency> |
| 272 | <groupId>javax.inject</groupId> |
| 273 | <artifactId>javax.inject</artifactId> |
| 274 | <version>1</version> |
| 275 | <scope>test</scope> |
| 276 | </dependency> |
| 277 | <dependency> |
| 278 | <groupId>org.slf4j</groupId> |
| 279 | <artifactId>slf4j-simple</artifactId> |
| 280 | <version>1.6.0</version> |
| 281 | <scope>test</scope> |
| 282 | </dependency> |
| 283 | <dependency> |
| 284 | <groupId>org.apache.felix</groupId> |
| 285 | <artifactId>org.apache.felix.configadmin</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.http.bundle</artifactId> |
| 292 | <version>2.2.0</version> |
| 293 | <scope>test</scope> |
| 294 | </dependency> |
| 295 | </dependencies> |
| 296 | |
| 297 | <profiles> |
| 298 | <!-- |
| 299 | copy the package such that IDEs may easily use it without |
| 300 | setting the system property |
| 301 | --> |
| 302 | <profile> |
| 303 | <id>ide</id> |
| 304 | <build> |
Felix Meschberger | 84c838b | 2012-10-18 10:10:08 +0000 | [diff] [blame] | 305 | <plugins> |
Chetan Mehrotra | a6403c9 | 2014-02-05 06:40:31 +0000 | [diff] [blame] | 306 | <plugin> |
| 307 | <artifactId>maven-antrun-plugin</artifactId> |
| 308 | <executions> |
| 309 | <execution> |
| 310 | <id>jaas-file-create</id> |
| 311 | <phase>package</phase> |
| 312 | <goals> |
| 313 | <goal>run</goal> |
| 314 | </goals> |
Felix Meschberger | 84c838b | 2012-10-18 10:10:08 +0000 | [diff] [blame] | 315 | <configuration> |
Chetan Mehrotra | a6403c9 | 2014-02-05 06:40:31 +0000 | [diff] [blame] | 316 | <target> |
Chetan Mehrotra | 8295c86 | 2014-02-11 10:17:19 +0000 | [diff] [blame] | 317 | <copy file="${project.build.directory}/${project.build.finalName}.jar" tofile="${project.build.directory}/jaas.jar" /> |
| 318 | <copy file="${project.build.directory}/${project.build.finalName}-boot.jar" tofile="${project.build.directory}/jaas-boot.jar" /> |
Chetan Mehrotra | a6403c9 | 2014-02-05 06:40:31 +0000 | [diff] [blame] | 319 | </target> |
Felix Meschberger | 84c838b | 2012-10-18 10:10:08 +0000 | [diff] [blame] | 320 | </configuration> |
Chetan Mehrotra | a6403c9 | 2014-02-05 06:40:31 +0000 | [diff] [blame] | 321 | </execution> |
Felix Meschberger | 84c838b | 2012-10-18 10:10:08 +0000 | [diff] [blame] | 322 | </executions> |
Chetan Mehrotra | a6403c9 | 2014-02-05 06:40:31 +0000 | [diff] [blame] | 323 | </plugin> |
Felix Meschberger | 84c838b | 2012-10-18 10:10:08 +0000 | [diff] [blame] | 324 | </plugins> |
Chetan Mehrotra | a6403c9 | 2014-02-05 06:40:31 +0000 | [diff] [blame] | 325 | </build> |
| 326 | </profile> |
| 327 | <profile> |
| 328 | <id>coverage</id> |
| 329 | <build> |
| 330 | <plugins> |
| 331 | <plugin> |
| 332 | <groupId>org.jacoco</groupId> |
| 333 | <artifactId>jacoco-maven-plugin</artifactId> |
| 334 | <version>0.6.2.201302030002</version> |
| 335 | <executions> |
| 336 | <execution> |
| 337 | <id>prepare-agent</id> |
| 338 | <goals> |
| 339 | <goal>prepare-agent</goal> |
| 340 | </goals> |
| 341 | <configuration> |
| 342 | <propertyName>coverage.command</propertyName> |
| 343 | <includes> |
| 344 | <include>org.apache.felix.jaas.*</include> |
| 345 | </includes> |
| 346 | <excludes> |
| 347 | <exclude>org.apache.felix.jaas.integration.*</exclude> |
| 348 | </excludes> |
| 349 | </configuration> |
| 350 | </execution> |
| 351 | <execution> |
| 352 | <id>report</id> |
| 353 | <phase>post-integration-test</phase> |
| 354 | <goals> |
| 355 | <goal>report</goal> |
| 356 | </goals> |
| 357 | </execution> |
| 358 | <execution> |
| 359 | <id>check</id> |
| 360 | <goals> |
| 361 | <goal>check</goal> |
| 362 | </goals> |
| 363 | <configuration> |
| 364 | <skip>true</skip> |
| 365 | <check> |
| 366 | <classRatio>100</classRatio> |
| 367 | <instructionRatio>90</instructionRatio> |
| 368 | <methodRatio>95</methodRatio> |
| 369 | <branchRatio>85</branchRatio> |
| 370 | <complexityRatio>85</complexityRatio> |
| 371 | <lineRatio>90</lineRatio> |
| 372 | </check> |
| 373 | </configuration> |
| 374 | </execution> |
| 375 | </executions> |
| 376 | </plugin> |
| 377 | </plugins> |
| 378 | </build> |
| 379 | </profile> |
| 380 | </profiles> |
Felix Meschberger | 84c838b | 2012-10-18 10:10:08 +0000 | [diff] [blame] | 381 | </project> |