blob: 167b41e64d5fc1dcf16d882a4be60921c04b7fd1 [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>
43 </properties>
44
45 <build>
46 <plugins>
47 <!--
48 We do not use DS but the SCR plugin is used to generate the
49 metatype.xml from the SCR annotations
50 -->
51 <plugin>
52 <groupId>org.apache.felix</groupId>
53 <artifactId>maven-scr-plugin</artifactId>
54 <version>1.7.4</version>
55 <executions>
56 <execution>
57 <id>generate-scr-scrdescriptor</id>
58 <goals>
59 <goal>scr</goal>
60 </goals>
61 </execution>
62 </executions>
63 </plugin>
64 <plugin>
65 <groupId>org.apache.maven.plugins</groupId>
66 <artifactId>maven-compiler-plugin</artifactId>
67 <version>2.5.1</version>
68 <!-- We use the new JDK 1.6 ConfigurationSpi API so can set the version to 1.6-->
69 <configuration>
70 <source>1.6</source>
71 <target>1.6</target>
72 </configuration>
73 </plugin>
74 <plugin>
75 <groupId>org.apache.felix</groupId>
76 <artifactId>maven-bundle-plugin</artifactId>
77 <version>2.3.7</version>
78 <extensions>true</extensions>
79 <configuration>
80 <instructions>
81 <Bundle-SymbolicName>
82 ${project.artifactId}
83 </Bundle-SymbolicName>
84 <Bundle-Vendor>
85 The Apache Software Foundation
86 </Bundle-Vendor>
87 <Bundle-Activator>
88 org.apache.felix.jaas.internal.Activator
89 </Bundle-Activator>
Chetan Mehrotra3b3ac592013-03-06 11:25:01 +000090 <Import-Package>
91 javax.servlet.*;resolution:=optional,
92 *
93 </Import-Package>
Felix Meschberger84c838b2012-10-18 10:10:08 +000094 <_removeheaders>
95 Embed-Dependency,Private-Package,Include-Resource
96 </_removeheaders>
97 </instructions>
98 </configuration>
99 </plugin>
100 <!-- Create jar which can be put in boot classpath to enable use of
101 ProxyLoginModule in normal JAAS mode of authentication -->
102 <plugin>
103 <artifactId>maven-jar-plugin</artifactId>
104 <executions>
105 <execution>
106 <id>boot-library</id>
107 <goals><goal>jar</goal></goals>
108 <phase>package</phase>
109 <configuration>
110 <classifier>boot</classifier>
111 <includes>
112 <include>org/apache/felix/jaas/boot/*.class</include>
113 <include>META-INF/NOTICE</include>
114 <include>META-INF/DEPENDENCIES</include>
115 <include>META-INF/LICENSE</include>
116 </includes>
117 </configuration>
118 </execution>
119 </executions>
120 </plugin>
121
122 <!-- Required for pax exam-->
123 <plugin>
124 <groupId>org.apache.servicemix.tooling</groupId>
125 <artifactId>depends-maven-plugin</artifactId>
126 <version>1.2</version>
127 <executions>
128 <execution>
129 <id>generate-depends-file</id>
130 <goals>
131 <goal>generate-depends-file</goal>
132 </goals>
133 </execution>
134 </executions>
135 </plugin>
136 </plugins>
137 </build>
138
139 <dependencies>
140 <dependency>
141 <groupId>org.osgi</groupId>
142 <artifactId>org.osgi.compendium</artifactId>
143 <version>4.2.0</version>
144 </dependency>
145 <dependency>
146 <groupId>org.osgi</groupId>
147 <artifactId>org.osgi.core</artifactId>
148 <version>4.2.0</version>
149 </dependency>
150 <dependency>
151 <groupId>biz.aQute</groupId>
152 <artifactId>bndlib</artifactId>
153 <version>1.50.0</version>
154 </dependency>
155 <dependency>
156 <groupId>org.apache.felix</groupId>
157 <artifactId>org.apache.felix.scr.annotations</artifactId>
158 <version>1.6.0</version>
159 </dependency>
160 <dependency>
161 <groupId>javax.servlet</groupId>
162 <artifactId>servlet-api</artifactId>
163 <version>2.3</version>
164 </dependency>
165
166 <!-- testing -->
167 <dependency>
168 <groupId>junit</groupId>
169 <artifactId>junit</artifactId>
170 <scope>test</scope>
171 <version>4.10</version>
172 </dependency>
173 </dependencies>
174
175 <profiles>
176 <!--
177 copy the package such that IDEs may easily use it without
178 setting the system property
179 -->
180 <profile>
181 <id>ide</id>
182 <build>
183 <plugins>
184 <plugin>
185 <artifactId>maven-antrun-plugin</artifactId>
186 <executions>
187 <execution>
188 <id>scr-file-create</id>
189 <phase>package</phase>
190 <goals>
191 <goal>run</goal>
192 </goals>
193 <configuration>
194 <target>
195 <copy file="${project.build.directory}/${project.build.finalName}.jar"
196 tofile="${project.build.directory}/jaas.jar" />
197 <copy file="${project.build.directory}/${project.build.finalName}-boot.jar"
198 tofile="${project.build.directory}/jaas-boot.jar" />
199 </target>
200 </configuration>
201 </execution>
202 </executions>
203 </plugin>
204 </plugins>
205 </build>
206 </profile>
207
208 <profile>
209 <id>felix</id>
210 <activation>
211 <activeByDefault>true</activeByDefault>
212 </activation>
213 <dependencies>
214 <dependency>
215 <groupId>org.apache.felix</groupId>
216 <artifactId>org.apache.felix.framework</artifactId>
217 <version>4.0.2</version>
218 <scope>test</scope>
219 </dependency>
220 </dependencies>
221 </profile>
222 <profile>
223 <id>equinox</id>
224 <dependencies>
225 <dependency>
226 <groupId>org.eclipse</groupId>
227 <artifactId>osgi</artifactId>
228 <version>3.7.1.R37x_v20110808-1106</version>
229 <scope>test</scope>
230 </dependency>
231 </dependencies>
232 </profile>
233 </profiles>
234</project>