blob: 9cbc129fe405756656337b3c5261e0828fcc8cd5 [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>
107 </instructions>
108 </configuration>
109 </plugin>
110 <!-- Create jar which can be put in boot classpath to enable use of
111 ProxyLoginModule in normal JAAS mode of authentication -->
112 <plugin>
113 <artifactId>maven-jar-plugin</artifactId>
114 <executions>
115 <execution>
116 <id>boot-library</id>
117 <goals><goal>jar</goal></goals>
118 <phase>package</phase>
119 <configuration>
120 <classifier>boot</classifier>
121 <includes>
122 <include>org/apache/felix/jaas/boot/*.class</include>
123 <include>META-INF/NOTICE</include>
124 <include>META-INF/DEPENDENCIES</include>
125 <include>META-INF/LICENSE</include>
126 </includes>
127 </configuration>
128 </execution>
129 </executions>
130 </plugin>
131
132 <!-- Required for pax exam-->
133 <plugin>
134 <groupId>org.apache.servicemix.tooling</groupId>
135 <artifactId>depends-maven-plugin</artifactId>
136 <version>1.2</version>
137 <executions>
138 <execution>
139 <id>generate-depends-file</id>
140 <goals>
141 <goal>generate-depends-file</goal>
142 </goals>
143 </execution>
144 </executions>
145 </plugin>
Chetan Mehrotra6ff82d52013-03-06 11:26:54 +0000146 <!-- integration tests run with pax-exam -->
147 <plugin>
148 <artifactId>maven-failsafe-plugin</artifactId>
149 <version>2.12</version>
150 <executions>
151 <execution>
152 <goals>
153 <goal>integration-test</goal>
154 <goal>verify</goal>
155 </goals>
156 </execution>
157 </executions>
158 <configuration>
159 <systemPropertyVariables>
160 <project.bundle.file>${bundle.file.name}</project.bundle.file>
Chetan Mehrotraa1342842013-03-20 09:53:49 +0000161 <project.boot.file>${bundle.file.name}</project.boot.file>
Chetan Mehrotra6ff82d52013-03-06 11:26:54 +0000162 </systemPropertyVariables>
163 </configuration>
164 </plugin>
165 <plugin>
166 <groupId>org.apache.maven.plugins</groupId>
167 <artifactId>maven-javadoc-plugin</artifactId>
168 <configuration>
169 <encoding>${project.build.sourceEncoding}</encoding>
170 <excludePackageNames>*.internal</excludePackageNames>
171 </configuration>
172 </plugin>
Felix Meschberger84c838b2012-10-18 10:10:08 +0000173 </plugins>
174 </build>
175
176 <dependencies>
177 <dependency>
178 <groupId>org.osgi</groupId>
179 <artifactId>org.osgi.compendium</artifactId>
180 <version>4.2.0</version>
181 </dependency>
182 <dependency>
183 <groupId>org.osgi</groupId>
184 <artifactId>org.osgi.core</artifactId>
185 <version>4.2.0</version>
186 </dependency>
187 <dependency>
188 <groupId>biz.aQute</groupId>
189 <artifactId>bndlib</artifactId>
190 <version>1.50.0</version>
191 </dependency>
192 <dependency>
193 <groupId>org.apache.felix</groupId>
194 <artifactId>org.apache.felix.scr.annotations</artifactId>
195 <version>1.6.0</version>
196 </dependency>
197 <dependency>
198 <groupId>javax.servlet</groupId>
199 <artifactId>servlet-api</artifactId>
200 <version>2.3</version>
201 </dependency>
202
203 <!-- testing -->
204 <dependency>
205 <groupId>junit</groupId>
206 <artifactId>junit</artifactId>
207 <scope>test</scope>
208 <version>4.10</version>
209 </dependency>
Chetan Mehrotra6ff82d52013-03-06 11:26:54 +0000210 <!-- Pax Exam Dependencies -->
211 <dependency>
212 <groupId>org.ops4j.pax.exam</groupId>
213 <artifactId>pax-exam-container-forked</artifactId>
214 <version>${pax-exam.version}</version>
215 <scope>test</scope>
216 </dependency>
217 <dependency>
218 <groupId>org.ops4j.pax.exam</groupId>
219 <artifactId>pax-exam-junit4</artifactId>
220 <version>${pax-exam.version}</version>
221 <scope>test</scope>
222 </dependency>
223 <dependency>
224 <groupId>org.ops4j.pax.exam</groupId>
225 <artifactId>pax-exam-link-mvn</artifactId>
226 <version>${pax-exam.version}</version>
227 <scope>test</scope>
228 </dependency>
229 <dependency>
230 <groupId>org.ops4j.pax.tinybundles</groupId>
231 <artifactId>tinybundles</artifactId>
232 <version>1.0.0</version>
233 <scope>test</scope>
234 </dependency>
235 <dependency>
236 <groupId>javax.inject</groupId>
237 <artifactId>javax.inject</artifactId>
238 <version>1</version>
239 <scope>test</scope>
240 </dependency>
241 <dependency>
242 <groupId>org.slf4j</groupId>
243 <artifactId>slf4j-simple</artifactId>
244 <version>1.6.0</version>
245 <scope>test</scope>
246 </dependency>
Chetan Mehrotraa1342842013-03-20 09:53:49 +0000247 <dependency>
248 <groupId>org.apache.felix</groupId>
249 <artifactId>org.apache.felix.configadmin</artifactId>
250 <version>1.6.0</version>
251 <scope>test</scope>
252 </dependency>
Felix Meschberger84c838b2012-10-18 10:10:08 +0000253 </dependencies>
254
255 <profiles>
256 <!--
257 copy the package such that IDEs may easily use it without
258 setting the system property
259 -->
260 <profile>
261 <id>ide</id>
262 <build>
263 <plugins>
264 <plugin>
265 <artifactId>maven-antrun-plugin</artifactId>
266 <executions>
267 <execution>
268 <id>scr-file-create</id>
269 <phase>package</phase>
270 <goals>
271 <goal>run</goal>
272 </goals>
273 <configuration>
274 <target>
275 <copy file="${project.build.directory}/${project.build.finalName}.jar"
276 tofile="${project.build.directory}/jaas.jar" />
277 <copy file="${project.build.directory}/${project.build.finalName}-boot.jar"
278 tofile="${project.build.directory}/jaas-boot.jar" />
279 </target>
280 </configuration>
281 </execution>
282 </executions>
283 </plugin>
284 </plugins>
285 </build>
286 </profile>
287
288 <profile>
289 <id>felix</id>
290 <activation>
291 <activeByDefault>true</activeByDefault>
292 </activation>
293 <dependencies>
294 <dependency>
295 <groupId>org.apache.felix</groupId>
296 <artifactId>org.apache.felix.framework</artifactId>
297 <version>4.0.2</version>
298 <scope>test</scope>
299 </dependency>
300 </dependencies>
301 </profile>
302 <profile>
303 <id>equinox</id>
304 <dependencies>
305 <dependency>
306 <groupId>org.eclipse</groupId>
307 <artifactId>osgi</artifactId>
308 <version>3.7.1.R37x_v20110808-1106</version>
309 <scope>test</scope>
310 </dependency>
311 </dependencies>
312 </profile>
313 </profiles>
314</project>