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