blob: eb63a576aa2d403cba4f3c686cfbe1ce93c9715a [file] [log] [blame]
Felix Meschbergerae4262a2011-12-05 14:15:58 +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
23 <parent>
24 <groupId>org.apache.felix</groupId>
25 <artifactId>felix-parent</artifactId>
26 <version>2.1</version>
Jan Willem Janssen2a25d6e2013-09-13 16:02:35 +000027 <relativePath>../../pom/pom.xml</relativePath>
Felix Meschbergerae4262a2011-12-05 14:15:58 +000028 </parent>
29
30 <name>Apache Felix Http Parent POM</name>
31 <groupId>org.apache.felix</groupId>
32 <artifactId>org.apache.felix.http.parent</artifactId>
Jan Willem Janssen43fa9c72014-11-05 09:44:40 +000033 <version>5-SNAPSHOT</version>
Felix Meschbergerae4262a2011-12-05 14:15:58 +000034 <packaging>pom</packaging>
35
36 <prerequisites>
Jan Willem Janssenae0d7512014-11-04 12:04:37 +000037 <maven>2.2.1</maven>
Felix Meschbergerae4262a2011-12-05 14:15:58 +000038 </prerequisites>
39
40 <properties>
Carsten Ziegeler06ff4d22015-01-16 12:15:46 +000041 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Jan Willem Janssen54ed79f2015-01-15 10:09:19 +000042 <jetty.version>9.2.6.v20141205</jetty.version>
Jan Willem Janssen13d88542014-02-12 13:32:48 +000043 <cometd.version>2.8.0</cometd.version>
Carsten Ziegeler3056da22014-08-06 06:00:49 +000044 <http.service.version>1.2.1</http.service.version>
Jan Willem Janssen54ed79f2015-01-15 10:09:19 +000045 <servlet.version>3.1.0</servlet.version>
Carsten Ziegeler06ff4d22015-01-16 12:15:46 +000046 <!--
47 Java API and class file compliance. This property supports
48 one of three values:
49 - 6: Java 6 (default)
50 - 7: Java 7
51 Using anything else causes the set-bundle-required-execution-environment
52 to fail the build with an exception
53 -->
54 <http.java.version>6</http.java.version>
Felix Meschbergerae4262a2011-12-05 14:15:58 +000055 </properties>
56
Jan Willem Janssen7d9f9fe2013-09-17 13:46:15 +000057 <scm>
Jan Willem Janssen43fa9c72014-11-05 09:44:40 +000058 <connection>scm:svn:http://svn.apache.org/repos/asf/felix/trunk/http/parent</connection>
59 <developerConnection>scm:svn:https://svn.apache.org/repos/asf/felix/trunk/http/parent</developerConnection>
60 <url>http://svn.apache.org/viewvc/felix/trunk/http/parent/</url>
Jan Willem Janssen7d9f9fe2013-09-17 13:46:15 +000061 </scm>
62
Felix Meschbergerae4262a2011-12-05 14:15:58 +000063 <build>
64 <plugins>
65 <plugin>
Carsten Ziegeler06ff4d22015-01-16 12:15:46 +000066 <groupId>org.apache.maven.plugins</groupId>
67 <artifactId>maven-antrun-plugin</artifactId>
68 <executions>
69 <execution>
70 <id>set-bundle-required-execution-environment</id>
71 <goals>
72 <goal>run</goal>
73 </goals>
74 <phase>initialize</phase>
75 <configuration>
76 <exportAntProperties>true</exportAntProperties>
77 <target>
78 <script language="javascript"> <![CDATA[
79 var System = java.lang.System;
80 var bree = "J2SE-1.6";
81 var httpJavaVersion = System.getProperty("http.java.version");
82 if (!httpJavaVersion) {
83 httpJavaVersion = project.getProperty("http.java.version");
84 }
85 if (httpJavaVersion == "7") {
86 bree = "JavaSE-1.7";
87 System.out.println("Setting Bundle-RequiredExecutionEnvironment=" + bree + " from http.java.version=" + httpJavaVersion);
88 } else if (httpJavaVersion != "6") {
89 System.out.println("Unsupported http.java.version=" + httpJavaVersion + "; must be 6 or 7.");
90 throw "http.java.version must be 6 or 7";
91 }
92 project.setProperty("http.bree", bree);
93 ]]></script>
94 </target>
95 </configuration>
96 </execution>
97 </executions>
98 </plugin>
99 <plugin>
Felix Meschbergerae4262a2011-12-05 14:15:58 +0000100 <artifactId>maven-compiler-plugin</artifactId>
101 <configuration>
Carsten Ziegeler06ff4d22015-01-16 12:15:46 +0000102 <source>1.${http.java.version}</source>
103 <target>1.${http.java.version}</target>
104 <compilerVersion>1.${http.java.version}</compilerVersion>
Felix Meschbergerae4262a2011-12-05 14:15:58 +0000105 </configuration>
106 </plugin>
107 </plugins>
108 <pluginManagement>
109 <plugins>
110 <plugin>
111 <groupId>org.apache.felix</groupId>
112 <artifactId>maven-bundle-plugin</artifactId>
Jan Willem Janssen16fd98c2015-01-15 15:39:00 +0000113 <version>2.5.3</version>
Felix Meschbergerae4262a2011-12-05 14:15:58 +0000114 <executions>
115 <execution>
116 <id>bundle</id>
117 <phase>package</phase>
118 <goals>
119 <goal>bundle</goal>
120 </goals>
121 </execution>
Carsten Ziegeler06ff4d22015-01-16 12:15:46 +0000122 <execution>
123 <id>baseline</id>
124 <goals>
125 <goal>baseline</goal>
126 </goals>
127 </execution>
Felix Meschbergerae4262a2011-12-05 14:15:58 +0000128 </executions>
129 <configuration>
130 <instructions>
131 <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
132 <Bundle-Version>${project.version}</Bundle-Version>
Carsten Ziegeler06ff4d22015-01-16 12:15:46 +0000133 <Bundle-RequiredExecutionEnvironment>${http.bree}</Bundle-RequiredExecutionEnvironment>
Felix Meschbergerae4262a2011-12-05 14:15:58 +0000134 </instructions>
135 </configuration>
Carsten Ziegeler06ff4d22015-01-16 12:15:46 +0000136 </plugin>
Felix Meschbergerae4262a2011-12-05 14:15:58 +0000137 </plugins>
138 </pluginManagement>
139 </build>
140
141 <dependencies>
142 <dependency>
Carsten Ziegeler06ff4d22015-01-16 12:15:46 +0000143 <groupId>biz.aQute</groupId>
144 <artifactId>bndlib</artifactId>
145 <version>1.50.0</version>
146 <scope>provided</scope>
147 </dependency>
148 <dependency>
Felix Meschbergerae4262a2011-12-05 14:15:58 +0000149 <groupId>junit</groupId>
150 <artifactId>junit</artifactId>
151 <version>4.8.2</version>
152 <scope>test</scope>
153 </dependency>
154 <dependency>
155 <groupId>org.mockito</groupId>
156 <artifactId>mockito-all</artifactId>
157 <version>1.8.2</version>
158 <scope>test</scope>
159 </dependency>
160 </dependencies>
161
162 <dependencyManagement>
163 <dependencies>
164 <dependency>
165 <groupId>javax.servlet</groupId>
Jan Willem Janssen0a3f86a2014-02-07 16:03:21 +0000166 <artifactId>javax.servlet-api</artifactId>
Jan Willem Janssen926e71c2013-11-10 14:41:39 +0000167 <version>${servlet.version}</version>
Felix Meschbergerae4262a2011-12-05 14:15:58 +0000168 <scope>provided</scope>
169 </dependency>
170 <dependency>
171 <groupId>org.osgi</groupId>
172 <artifactId>org.osgi.core</artifactId>
Jan Willem Janssen926e71c2013-11-10 14:41:39 +0000173 <version>4.2.0</version>
Felix Meschbergerae4262a2011-12-05 14:15:58 +0000174 <scope>provided</scope>
175 </dependency>
176 <dependency>
177 <groupId>org.osgi</groupId>
178 <artifactId>org.osgi.compendium</artifactId>
Jan Willem Janssen926e71c2013-11-10 14:41:39 +0000179 <version>4.2.0</version>
Felix Meschbergerae4262a2011-12-05 14:15:58 +0000180 <scope>provided</scope>
181 </dependency>
182 </dependencies>
183 </dependencyManagement>
Felix Meschbergerae4262a2011-12-05 14:15:58 +0000184</project>