blob: 8e5072e94aade28a266fbedeb66b64452e268127 [file] [log] [blame]
Felix Meschberger8ba4ade2012-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>
90 <_removeheaders>
91 Embed-Dependency,Private-Package,Include-Resource
92 </_removeheaders>
93 </instructions>
94 </configuration>
95 </plugin>
96 <!-- Create jar which can be put in boot classpath to enable use of
97 ProxyLoginModule in normal JAAS mode of authentication -->
98 <plugin>
99 <artifactId>maven-jar-plugin</artifactId>
100 <executions>
101 <execution>
102 <id>boot-library</id>
103 <goals><goal>jar</goal></goals>
104 <phase>package</phase>
105 <configuration>
106 <classifier>boot</classifier>
107 <includes>
108 <include>org/apache/felix/jaas/boot/*.class</include>
109 <include>META-INF/NOTICE</include>
110 <include>META-INF/DEPENDENCIES</include>
111 <include>META-INF/LICENSE</include>
112 </includes>
113 </configuration>
114 </execution>
115 </executions>
116 </plugin>
117
118 <!-- Required for pax exam-->
119 <plugin>
120 <groupId>org.apache.servicemix.tooling</groupId>
121 <artifactId>depends-maven-plugin</artifactId>
122 <version>1.2</version>
123 <executions>
124 <execution>
125 <id>generate-depends-file</id>
126 <goals>
127 <goal>generate-depends-file</goal>
128 </goals>
129 </execution>
130 </executions>
131 </plugin>
132 </plugins>
133 </build>
134
135 <dependencies>
136 <dependency>
137 <groupId>org.osgi</groupId>
138 <artifactId>org.osgi.compendium</artifactId>
139 <version>4.2.0</version>
140 </dependency>
141 <dependency>
142 <groupId>org.osgi</groupId>
143 <artifactId>org.osgi.core</artifactId>
144 <version>4.2.0</version>
145 </dependency>
146 <dependency>
147 <groupId>biz.aQute</groupId>
148 <artifactId>bndlib</artifactId>
149 <version>1.50.0</version>
150 </dependency>
151 <dependency>
152 <groupId>org.apache.felix</groupId>
153 <artifactId>org.apache.felix.scr.annotations</artifactId>
154 <version>1.6.0</version>
155 </dependency>
156 <dependency>
157 <groupId>javax.servlet</groupId>
158 <artifactId>servlet-api</artifactId>
159 <version>2.3</version>
160 </dependency>
161
162 <!-- testing -->
163 <dependency>
164 <groupId>junit</groupId>
165 <artifactId>junit</artifactId>
166 <scope>test</scope>
167 <version>4.10</version>
168 </dependency>
169 </dependencies>
170
171 <profiles>
172 <!--
173 copy the package such that IDEs may easily use it without
174 setting the system property
175 -->
176 <profile>
177 <id>ide</id>
178 <build>
179 <plugins>
180 <plugin>
181 <artifactId>maven-antrun-plugin</artifactId>
182 <executions>
183 <execution>
184 <id>scr-file-create</id>
185 <phase>package</phase>
186 <goals>
187 <goal>run</goal>
188 </goals>
189 <configuration>
190 <target>
191 <copy file="${project.build.directory}/${project.build.finalName}.jar"
192 tofile="${project.build.directory}/jaas.jar" />
193 <copy file="${project.build.directory}/${project.build.finalName}-boot.jar"
194 tofile="${project.build.directory}/jaas-boot.jar" />
195 </target>
196 </configuration>
197 </execution>
198 </executions>
199 </plugin>
200 </plugins>
201 </build>
202 </profile>
203
204 <profile>
205 <id>felix</id>
206 <activation>
207 <activeByDefault>true</activeByDefault>
208 </activation>
209 <dependencies>
210 <dependency>
211 <groupId>org.apache.felix</groupId>
212 <artifactId>org.apache.felix.framework</artifactId>
213 <version>4.0.2</version>
214 <scope>test</scope>
215 </dependency>
216 </dependencies>
217 </profile>
218 <profile>
219 <id>equinox</id>
220 <dependencies>
221 <dependency>
222 <groupId>org.eclipse</groupId>
223 <artifactId>osgi</artifactId>
224 <version>3.7.1.R37x_v20110808-1106</version>
225 <scope>test</scope>
226 </dependency>
227 </dependencies>
228 </profile>
229 </profiles>
230</project>