blob: 7dca5d17bea0ff1c252a6328e574cf03ac15befd [file] [log] [blame]
Felix Meschberger84c838b2012-10-18 10:10:08 +00001<!--
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 Mehrotra6ff82d52013-03-06 11:26:54 +000043 <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 Mehrotraa1342842013-03-20 09:53:49 +000050 <bundle.boot.file>
51 ${bundle.build.name}/${project.build.finalName}-boot.jar
52 </bundle.boot.file>
Felix Meschberger84c838b2012-10-18 10:10:08 +000053 </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>
97 <Bundle-Activator>
98 org.apache.felix.jaas.internal.Activator
99 </Bundle-Activator>
Chetan Mehrotrafeeb7182013-03-15 11:57:26 +0000100 <DynamicImport-Package>
101 javax.servlet,
102 javax.servlet.http
103 </DynamicImport-Package>
Felix Meschberger84c838b2012-10-18 10:10:08 +0000104 <_removeheaders>
105 Embed-Dependency,Private-Package,Include-Resource
106 </_removeheaders>
Chetan Mehrotra87d11cc2013-03-21 06:37:23 +0000107 <Embed-Dependency>
108 org.apache.sling.commons.osgi;inline=
109 org/apache/sling/commons/osgi/PropertiesUtil*.class|
110 org/apache/sling/commons/osgi/ManifestHeader*.class
111 </Embed-Dependency>
Felix Meschberger84c838b2012-10-18 10:10:08 +0000112 </instructions>
113 </configuration>
114 </plugin>
115 <!-- Create jar which can be put in boot classpath to enable use of
116 ProxyLoginModule in normal JAAS mode of authentication -->
117 <plugin>
118 <artifactId>maven-jar-plugin</artifactId>
119 <executions>
120 <execution>
121 <id>boot-library</id>
122 <goals><goal>jar</goal></goals>
123 <phase>package</phase>
124 <configuration>
125 <classifier>boot</classifier>
126 <includes>
127 <include>org/apache/felix/jaas/boot/*.class</include>
128 <include>META-INF/NOTICE</include>
129 <include>META-INF/DEPENDENCIES</include>
130 <include>META-INF/LICENSE</include>
131 </includes>
132 </configuration>
133 </execution>
134 </executions>
135 </plugin>
136
137 <!-- Required for pax exam-->
138 <plugin>
139 <groupId>org.apache.servicemix.tooling</groupId>
140 <artifactId>depends-maven-plugin</artifactId>
141 <version>1.2</version>
142 <executions>
143 <execution>
144 <id>generate-depends-file</id>
145 <goals>
146 <goal>generate-depends-file</goal>
147 </goals>
148 </execution>
149 </executions>
150 </plugin>
Chetan Mehrotra6ff82d52013-03-06 11:26:54 +0000151 <!-- integration tests run with pax-exam -->
152 <plugin>
153 <artifactId>maven-failsafe-plugin</artifactId>
154 <version>2.12</version>
155 <executions>
156 <execution>
157 <goals>
158 <goal>integration-test</goal>
159 <goal>verify</goal>
160 </goals>
161 </execution>
162 </executions>
163 <configuration>
164 <systemPropertyVariables>
165 <project.bundle.file>${bundle.file.name}</project.bundle.file>
Chetan Mehrotraa1342842013-03-20 09:53:49 +0000166 <project.boot.file>${bundle.file.name}</project.boot.file>
Chetan Mehrotrab0fb87b2013-03-22 07:56:45 +0000167 <coverage.command>${coverage.command}</coverage.command>
168= </systemPropertyVariables>
Chetan Mehrotra6ff82d52013-03-06 11:26:54 +0000169 </configuration>
170 </plugin>
171 <plugin>
172 <groupId>org.apache.maven.plugins</groupId>
173 <artifactId>maven-javadoc-plugin</artifactId>
174 <configuration>
Chetan Mehrotra19d06962013-03-21 11:20:27 +0000175 <!--suppress MavenModelInspection -->
Chetan Mehrotra6ff82d52013-03-06 11:26:54 +0000176 <encoding>${project.build.sourceEncoding}</encoding>
177 <excludePackageNames>*.internal</excludePackageNames>
178 </configuration>
179 </plugin>
Felix Meschberger84c838b2012-10-18 10:10:08 +0000180 </plugins>
181 </build>
182
183 <dependencies>
184 <dependency>
185 <groupId>org.osgi</groupId>
186 <artifactId>org.osgi.compendium</artifactId>
187 <version>4.2.0</version>
188 </dependency>
189 <dependency>
190 <groupId>org.osgi</groupId>
191 <artifactId>org.osgi.core</artifactId>
192 <version>4.2.0</version>
193 </dependency>
194 <dependency>
195 <groupId>biz.aQute</groupId>
196 <artifactId>bndlib</artifactId>
197 <version>1.50.0</version>
198 </dependency>
199 <dependency>
200 <groupId>org.apache.felix</groupId>
201 <artifactId>org.apache.felix.scr.annotations</artifactId>
202 <version>1.6.0</version>
203 </dependency>
204 <dependency>
205 <groupId>javax.servlet</groupId>
206 <artifactId>servlet-api</artifactId>
207 <version>2.3</version>
208 </dependency>
Chetan Mehrotra87d11cc2013-03-21 06:37:23 +0000209 <dependency>
210 <groupId>org.apache.sling</groupId>
211 <artifactId>org.apache.sling.commons.osgi</artifactId>
212 <version>2.2.0</version>
213 </dependency>
Felix Meschberger84c838b2012-10-18 10:10:08 +0000214
215 <!-- testing -->
216 <dependency>
217 <groupId>junit</groupId>
218 <artifactId>junit</artifactId>
219 <scope>test</scope>
220 <version>4.10</version>
221 </dependency>
Chetan Mehrotra6ff82d52013-03-06 11:26:54 +0000222 <!-- Pax Exam Dependencies -->
223 <dependency>
224 <groupId>org.ops4j.pax.exam</groupId>
225 <artifactId>pax-exam-container-forked</artifactId>
226 <version>${pax-exam.version}</version>
227 <scope>test</scope>
228 </dependency>
229 <dependency>
230 <groupId>org.ops4j.pax.exam</groupId>
231 <artifactId>pax-exam-junit4</artifactId>
232 <version>${pax-exam.version}</version>
233 <scope>test</scope>
234 </dependency>
235 <dependency>
236 <groupId>org.ops4j.pax.exam</groupId>
237 <artifactId>pax-exam-link-mvn</artifactId>
238 <version>${pax-exam.version}</version>
239 <scope>test</scope>
240 </dependency>
241 <dependency>
242 <groupId>org.ops4j.pax.tinybundles</groupId>
243 <artifactId>tinybundles</artifactId>
244 <version>1.0.0</version>
245 <scope>test</scope>
246 </dependency>
247 <dependency>
248 <groupId>javax.inject</groupId>
249 <artifactId>javax.inject</artifactId>
250 <version>1</version>
251 <scope>test</scope>
252 </dependency>
253 <dependency>
254 <groupId>org.slf4j</groupId>
255 <artifactId>slf4j-simple</artifactId>
256 <version>1.6.0</version>
257 <scope>test</scope>
258 </dependency>
Chetan Mehrotraa1342842013-03-20 09:53:49 +0000259 <dependency>
260 <groupId>org.apache.felix</groupId>
261 <artifactId>org.apache.felix.configadmin</artifactId>
262 <version>1.6.0</version>
263 <scope>test</scope>
264 </dependency>
Chetan Mehrotra19d06962013-03-21 11:20:27 +0000265 <dependency>
266 <groupId>org.apache.felix</groupId>
267 <artifactId>org.apache.felix.http.bundle</artifactId>
268 <version>2.2.0</version>
269 <scope>test</scope>
270 </dependency>
Felix Meschberger84c838b2012-10-18 10:10:08 +0000271 </dependencies>
272
273 <profiles>
274 <!--
275 copy the package such that IDEs may easily use it without
276 setting the system property
277 -->
278 <profile>
279 <id>ide</id>
280 <build>
281 <plugins>
282 <plugin>
283 <artifactId>maven-antrun-plugin</artifactId>
284 <executions>
285 <execution>
286 <id>scr-file-create</id>
287 <phase>package</phase>
288 <goals>
289 <goal>run</goal>
290 </goals>
291 <configuration>
292 <target>
293 <copy file="${project.build.directory}/${project.build.finalName}.jar"
294 tofile="${project.build.directory}/jaas.jar" />
295 <copy file="${project.build.directory}/${project.build.finalName}-boot.jar"
296 tofile="${project.build.directory}/jaas-boot.jar" />
297 </target>
298 </configuration>
299 </execution>
300 </executions>
301 </plugin>
302 </plugins>
303 </build>
304 </profile>
Chetan Mehrotrab0fb87b2013-03-22 07:56:45 +0000305 <profile>
306 <id>coverage</id>
307 <build>
308 <plugins>
309 <plugin>
310 <groupId>org.jacoco</groupId>
311 <artifactId>jacoco-maven-plugin</artifactId>
312 <version>0.6.2.201302030002</version>
313 <executions>
314 <execution>
315 <id>prepare-agent</id>
316 <goals>
317 <goal>prepare-agent</goal>
318 </goals>
319 <configuration>
320 <propertyName>coverage.command</propertyName>
321 <includes>
322 <include>org.apache.felix.jaas.*</include>
323 </includes>
324 <excludes>
325 <exclude>org.apache.felix.jaas.integration.*</exclude>
326 </excludes>
327 </configuration>
328 </execution>
329 <execution>
330 <id>report</id>
331 <phase>post-integration-test</phase>
332 <goals>
333 <goal>report</goal>
334 </goals>
335 </execution>
336 <execution>
337 <id>check</id>
338 <goals>
339 <goal>check</goal>
340 </goals>
341 <configuration>
342 <check>
343 <classRatio>100</classRatio>
344 <instructionRatio>90</instructionRatio>
345 <methodRatio>95</methodRatio>
346 <branchRatio>85</branchRatio>
347 <complexityRatio>85</complexityRatio>
348 <lineRatio>90</lineRatio>
349 </check>
350 </configuration>
351 </execution>
352 </executions>
353 </plugin>
354 </plugins>
355 </build>
356 </profile>
Felix Meschberger84c838b2012-10-18 10:10:08 +0000357
358 <profile>
359 <id>felix</id>
360 <activation>
361 <activeByDefault>true</activeByDefault>
362 </activation>
363 <dependencies>
364 <dependency>
365 <groupId>org.apache.felix</groupId>
366 <artifactId>org.apache.felix.framework</artifactId>
367 <version>4.0.2</version>
368 <scope>test</scope>
369 </dependency>
370 </dependencies>
371 </profile>
372 <profile>
373 <id>equinox</id>
374 <dependencies>
375 <dependency>
376 <groupId>org.eclipse</groupId>
Chetan Mehrotra19d06962013-03-21 11:20:27 +0000377 <artifactId>org.eclipse.osgi</artifactId>
378 <version>3.8.0.v20120529-1548</version>
Felix Meschberger84c838b2012-10-18 10:10:08 +0000379 <scope>test</scope>
380 </dependency>
381 </dependencies>
382 </profile>
383 </profiles>
384</project>