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