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> |
Felix Meschberger | 84c838b | 2012-10-18 10:10:08 +0000 | [diff] [blame] | 50 | </properties> |
| 51 | |
| 52 | <build> |
| 53 | <plugins> |
| 54 | <!-- |
| 55 | We do not use DS but the SCR plugin is used to generate the |
| 56 | metatype.xml from the SCR annotations |
| 57 | --> |
| 58 | <plugin> |
| 59 | <groupId>org.apache.felix</groupId> |
| 60 | <artifactId>maven-scr-plugin</artifactId> |
| 61 | <version>1.7.4</version> |
| 62 | <executions> |
| 63 | <execution> |
| 64 | <id>generate-scr-scrdescriptor</id> |
| 65 | <goals> |
| 66 | <goal>scr</goal> |
| 67 | </goals> |
| 68 | </execution> |
| 69 | </executions> |
| 70 | </plugin> |
| 71 | <plugin> |
| 72 | <groupId>org.apache.maven.plugins</groupId> |
| 73 | <artifactId>maven-compiler-plugin</artifactId> |
| 74 | <version>2.5.1</version> |
| 75 | <!-- We use the new JDK 1.6 ConfigurationSpi API so can set the version to 1.6--> |
| 76 | <configuration> |
| 77 | <source>1.6</source> |
| 78 | <target>1.6</target> |
| 79 | </configuration> |
| 80 | </plugin> |
| 81 | <plugin> |
| 82 | <groupId>org.apache.felix</groupId> |
| 83 | <artifactId>maven-bundle-plugin</artifactId> |
| 84 | <version>2.3.7</version> |
| 85 | <extensions>true</extensions> |
| 86 | <configuration> |
| 87 | <instructions> |
| 88 | <Bundle-SymbolicName> |
| 89 | ${project.artifactId} |
| 90 | </Bundle-SymbolicName> |
| 91 | <Bundle-Vendor> |
| 92 | The Apache Software Foundation |
| 93 | </Bundle-Vendor> |
| 94 | <Bundle-Activator> |
| 95 | org.apache.felix.jaas.internal.Activator |
| 96 | </Bundle-Activator> |
Chetan Mehrotra | 3b3ac59 | 2013-03-06 11:25:01 +0000 | [diff] [blame] | 97 | <Import-Package> |
| 98 | javax.servlet.*;resolution:=optional, |
| 99 | * |
| 100 | </Import-Package> |
Felix Meschberger | 84c838b | 2012-10-18 10:10:08 +0000 | [diff] [blame] | 101 | <_removeheaders> |
| 102 | Embed-Dependency,Private-Package,Include-Resource |
| 103 | </_removeheaders> |
| 104 | </instructions> |
| 105 | </configuration> |
| 106 | </plugin> |
| 107 | <!-- Create jar which can be put in boot classpath to enable use of |
| 108 | ProxyLoginModule in normal JAAS mode of authentication --> |
| 109 | <plugin> |
| 110 | <artifactId>maven-jar-plugin</artifactId> |
| 111 | <executions> |
| 112 | <execution> |
| 113 | <id>boot-library</id> |
| 114 | <goals><goal>jar</goal></goals> |
| 115 | <phase>package</phase> |
| 116 | <configuration> |
| 117 | <classifier>boot</classifier> |
| 118 | <includes> |
| 119 | <include>org/apache/felix/jaas/boot/*.class</include> |
| 120 | <include>META-INF/NOTICE</include> |
| 121 | <include>META-INF/DEPENDENCIES</include> |
| 122 | <include>META-INF/LICENSE</include> |
| 123 | </includes> |
| 124 | </configuration> |
| 125 | </execution> |
| 126 | </executions> |
| 127 | </plugin> |
| 128 | |
| 129 | <!-- Required for pax exam--> |
| 130 | <plugin> |
| 131 | <groupId>org.apache.servicemix.tooling</groupId> |
| 132 | <artifactId>depends-maven-plugin</artifactId> |
| 133 | <version>1.2</version> |
| 134 | <executions> |
| 135 | <execution> |
| 136 | <id>generate-depends-file</id> |
| 137 | <goals> |
| 138 | <goal>generate-depends-file</goal> |
| 139 | </goals> |
| 140 | </execution> |
| 141 | </executions> |
| 142 | </plugin> |
Chetan Mehrotra | 6ff82d5 | 2013-03-06 11:26:54 +0000 | [diff] [blame] | 143 | <!-- integration tests run with pax-exam --> |
| 144 | <plugin> |
| 145 | <artifactId>maven-failsafe-plugin</artifactId> |
| 146 | <version>2.12</version> |
| 147 | <executions> |
| 148 | <execution> |
| 149 | <goals> |
| 150 | <goal>integration-test</goal> |
| 151 | <goal>verify</goal> |
| 152 | </goals> |
| 153 | </execution> |
| 154 | </executions> |
| 155 | <configuration> |
| 156 | <systemPropertyVariables> |
| 157 | <project.bundle.file>${bundle.file.name}</project.bundle.file> |
| 158 | <felix.ca.version>${felix.ca.version}</felix.ca.version> |
| 159 | </systemPropertyVariables> |
| 160 | </configuration> |
| 161 | </plugin> |
| 162 | <plugin> |
| 163 | <groupId>org.apache.maven.plugins</groupId> |
| 164 | <artifactId>maven-javadoc-plugin</artifactId> |
| 165 | <configuration> |
| 166 | <encoding>${project.build.sourceEncoding}</encoding> |
| 167 | <excludePackageNames>*.internal</excludePackageNames> |
| 168 | </configuration> |
| 169 | </plugin> |
Felix Meschberger | 84c838b | 2012-10-18 10:10:08 +0000 | [diff] [blame] | 170 | </plugins> |
| 171 | </build> |
| 172 | |
| 173 | <dependencies> |
| 174 | <dependency> |
| 175 | <groupId>org.osgi</groupId> |
| 176 | <artifactId>org.osgi.compendium</artifactId> |
| 177 | <version>4.2.0</version> |
| 178 | </dependency> |
| 179 | <dependency> |
| 180 | <groupId>org.osgi</groupId> |
| 181 | <artifactId>org.osgi.core</artifactId> |
| 182 | <version>4.2.0</version> |
| 183 | </dependency> |
| 184 | <dependency> |
| 185 | <groupId>biz.aQute</groupId> |
| 186 | <artifactId>bndlib</artifactId> |
| 187 | <version>1.50.0</version> |
| 188 | </dependency> |
| 189 | <dependency> |
| 190 | <groupId>org.apache.felix</groupId> |
| 191 | <artifactId>org.apache.felix.scr.annotations</artifactId> |
| 192 | <version>1.6.0</version> |
| 193 | </dependency> |
| 194 | <dependency> |
| 195 | <groupId>javax.servlet</groupId> |
| 196 | <artifactId>servlet-api</artifactId> |
| 197 | <version>2.3</version> |
| 198 | </dependency> |
| 199 | |
| 200 | <!-- testing --> |
| 201 | <dependency> |
| 202 | <groupId>junit</groupId> |
| 203 | <artifactId>junit</artifactId> |
| 204 | <scope>test</scope> |
| 205 | <version>4.10</version> |
| 206 | </dependency> |
Chetan Mehrotra | 6ff82d5 | 2013-03-06 11:26:54 +0000 | [diff] [blame] | 207 | <!-- Pax Exam Dependencies --> |
| 208 | <dependency> |
| 209 | <groupId>org.ops4j.pax.exam</groupId> |
| 210 | <artifactId>pax-exam-container-forked</artifactId> |
| 211 | <version>${pax-exam.version}</version> |
| 212 | <scope>test</scope> |
| 213 | </dependency> |
| 214 | <dependency> |
| 215 | <groupId>org.ops4j.pax.exam</groupId> |
| 216 | <artifactId>pax-exam-junit4</artifactId> |
| 217 | <version>${pax-exam.version}</version> |
| 218 | <scope>test</scope> |
| 219 | </dependency> |
| 220 | <dependency> |
| 221 | <groupId>org.ops4j.pax.exam</groupId> |
| 222 | <artifactId>pax-exam-link-mvn</artifactId> |
| 223 | <version>${pax-exam.version}</version> |
| 224 | <scope>test</scope> |
| 225 | </dependency> |
| 226 | <dependency> |
| 227 | <groupId>org.ops4j.pax.tinybundles</groupId> |
| 228 | <artifactId>tinybundles</artifactId> |
| 229 | <version>1.0.0</version> |
| 230 | <scope>test</scope> |
| 231 | </dependency> |
| 232 | <dependency> |
| 233 | <groupId>javax.inject</groupId> |
| 234 | <artifactId>javax.inject</artifactId> |
| 235 | <version>1</version> |
| 236 | <scope>test</scope> |
| 237 | </dependency> |
| 238 | <dependency> |
| 239 | <groupId>org.slf4j</groupId> |
| 240 | <artifactId>slf4j-simple</artifactId> |
| 241 | <version>1.6.0</version> |
| 242 | <scope>test</scope> |
| 243 | </dependency> |
Felix Meschberger | 84c838b | 2012-10-18 10:10:08 +0000 | [diff] [blame] | 244 | </dependencies> |
| 245 | |
| 246 | <profiles> |
| 247 | <!-- |
| 248 | copy the package such that IDEs may easily use it without |
| 249 | setting the system property |
| 250 | --> |
| 251 | <profile> |
| 252 | <id>ide</id> |
| 253 | <build> |
| 254 | <plugins> |
| 255 | <plugin> |
| 256 | <artifactId>maven-antrun-plugin</artifactId> |
| 257 | <executions> |
| 258 | <execution> |
| 259 | <id>scr-file-create</id> |
| 260 | <phase>package</phase> |
| 261 | <goals> |
| 262 | <goal>run</goal> |
| 263 | </goals> |
| 264 | <configuration> |
| 265 | <target> |
| 266 | <copy file="${project.build.directory}/${project.build.finalName}.jar" |
| 267 | tofile="${project.build.directory}/jaas.jar" /> |
| 268 | <copy file="${project.build.directory}/${project.build.finalName}-boot.jar" |
| 269 | tofile="${project.build.directory}/jaas-boot.jar" /> |
| 270 | </target> |
| 271 | </configuration> |
| 272 | </execution> |
| 273 | </executions> |
| 274 | </plugin> |
| 275 | </plugins> |
| 276 | </build> |
| 277 | </profile> |
| 278 | |
| 279 | <profile> |
| 280 | <id>felix</id> |
| 281 | <activation> |
| 282 | <activeByDefault>true</activeByDefault> |
| 283 | </activation> |
| 284 | <dependencies> |
| 285 | <dependency> |
| 286 | <groupId>org.apache.felix</groupId> |
| 287 | <artifactId>org.apache.felix.framework</artifactId> |
| 288 | <version>4.0.2</version> |
| 289 | <scope>test</scope> |
| 290 | </dependency> |
| 291 | </dependencies> |
| 292 | </profile> |
| 293 | <profile> |
| 294 | <id>equinox</id> |
| 295 | <dependencies> |
| 296 | <dependency> |
| 297 | <groupId>org.eclipse</groupId> |
| 298 | <artifactId>osgi</artifactId> |
| 299 | <version>3.7.1.R37x_v20110808-1106</version> |
| 300 | <scope>test</scope> |
| 301 | </dependency> |
| 302 | </dependencies> |
| 303 | </profile> |
| 304 | </profiles> |
| 305 | </project> |