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