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