Felix Meschberger | ae4262a | 2011-12-05 14:15:58 +0000 | [diff] [blame] | 1 | <!-- |
| 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 Janssen | 2a25d6e | 2013-09-13 16:02:35 +0000 | [diff] [blame] | 27 | <relativePath>../../pom/pom.xml</relativePath> |
Felix Meschberger | ae4262a | 2011-12-05 14:15:58 +0000 | [diff] [blame] | 28 | </parent> |
| 29 | |
| 30 | <name>Apache Felix Http Parent POM</name> |
| 31 | <groupId>org.apache.felix</groupId> |
| 32 | <artifactId>org.apache.felix.http.parent</artifactId> |
Carsten Ziegeler | 667b96b | 2015-03-01 14:15:04 +0000 | [diff] [blame] | 33 | <version>7-SNAPSHOT</version> |
Felix Meschberger | ae4262a | 2011-12-05 14:15:58 +0000 | [diff] [blame] | 34 | <packaging>pom</packaging> |
| 35 | |
| 36 | <prerequisites> |
Jan Willem Janssen | ae0d751 | 2014-11-04 12:04:37 +0000 | [diff] [blame] | 37 | <maven>2.2.1</maven> |
Felix Meschberger | ae4262a | 2011-12-05 14:15:58 +0000 | [diff] [blame] | 38 | </prerequisites> |
| 39 | |
| 40 | <properties> |
Carsten Ziegeler | 06ff4d2 | 2015-01-16 12:15:46 +0000 | [diff] [blame] | 41 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
Carsten Ziegeler | 61c2c7e | 2015-02-28 04:40:33 +0000 | [diff] [blame] | 42 | <jetty.version>9.2.9.v20150224</jetty.version> |
Jan Willem Janssen | 13d8854 | 2014-02-12 13:32:48 +0000 | [diff] [blame] | 43 | <cometd.version>2.8.0</cometd.version> |
Jan Willem Janssen | 54ed79f | 2015-01-15 10:09:19 +0000 | [diff] [blame] | 44 | <servlet.version>3.1.0</servlet.version> |
Carsten Ziegeler | 06ff4d2 | 2015-01-16 12:15:46 +0000 | [diff] [blame] | 45 | <!-- |
| 46 | Java API and class file compliance. This property supports |
| 47 | one of three values: |
| 48 | - 6: Java 6 (default) |
| 49 | - 7: Java 7 |
| 50 | Using anything else causes the set-bundle-required-execution-environment |
| 51 | to fail the build with an exception |
| 52 | --> |
| 53 | <http.java.version>6</http.java.version> |
Felix Meschberger | ae4262a | 2011-12-05 14:15:58 +0000 | [diff] [blame] | 54 | </properties> |
| 55 | |
Jan Willem Janssen | 7d9f9fe | 2013-09-17 13:46:15 +0000 | [diff] [blame] | 56 | <scm> |
Carsten Ziegeler | 667b96b | 2015-03-01 14:15:04 +0000 | [diff] [blame] | 57 | <connection>scm:svn:http://svn.apache.org/repos/asf/felix/trunk/http/parent</connection> |
| 58 | <developerConnection>scm:svn:https://svn.apache.org/repos/asf/felix/trunk/http/parent</developerConnection> |
| 59 | <url>http://svn.apache.org/viewvc/felix/trunk/http/parent/</url> |
Jan Willem Janssen | 7d9f9fe | 2013-09-17 13:46:15 +0000 | [diff] [blame] | 60 | </scm> |
| 61 | |
Felix Meschberger | ae4262a | 2011-12-05 14:15:58 +0000 | [diff] [blame] | 62 | <build> |
| 63 | <plugins> |
| 64 | <plugin> |
Carsten Ziegeler | 06ff4d2 | 2015-01-16 12:15:46 +0000 | [diff] [blame] | 65 | <groupId>org.apache.maven.plugins</groupId> |
| 66 | <artifactId>maven-antrun-plugin</artifactId> |
| 67 | <executions> |
| 68 | <execution> |
| 69 | <id>set-bundle-required-execution-environment</id> |
| 70 | <goals> |
| 71 | <goal>run</goal> |
| 72 | </goals> |
| 73 | <phase>initialize</phase> |
| 74 | <configuration> |
| 75 | <exportAntProperties>true</exportAntProperties> |
| 76 | <target> |
| 77 | <script language="javascript"> <![CDATA[ |
| 78 | var System = java.lang.System; |
| 79 | var bree = "J2SE-1.6"; |
| 80 | var httpJavaVersion = System.getProperty("http.java.version"); |
| 81 | if (!httpJavaVersion) { |
| 82 | httpJavaVersion = project.getProperty("http.java.version"); |
| 83 | } |
| 84 | if (httpJavaVersion == "7") { |
| 85 | bree = "JavaSE-1.7"; |
| 86 | System.out.println("Setting Bundle-RequiredExecutionEnvironment=" + bree + " from http.java.version=" + httpJavaVersion); |
| 87 | } else if (httpJavaVersion != "6") { |
| 88 | System.out.println("Unsupported http.java.version=" + httpJavaVersion + "; must be 6 or 7."); |
| 89 | throw "http.java.version must be 6 or 7"; |
| 90 | } |
| 91 | project.setProperty("http.bree", bree); |
| 92 | ]]></script> |
| 93 | </target> |
| 94 | </configuration> |
| 95 | </execution> |
| 96 | </executions> |
| 97 | </plugin> |
| 98 | <plugin> |
Felix Meschberger | ae4262a | 2011-12-05 14:15:58 +0000 | [diff] [blame] | 99 | <artifactId>maven-compiler-plugin</artifactId> |
| 100 | <configuration> |
Carsten Ziegeler | 06ff4d2 | 2015-01-16 12:15:46 +0000 | [diff] [blame] | 101 | <source>1.${http.java.version}</source> |
| 102 | <target>1.${http.java.version}</target> |
| 103 | <compilerVersion>1.${http.java.version}</compilerVersion> |
Felix Meschberger | ae4262a | 2011-12-05 14:15:58 +0000 | [diff] [blame] | 104 | </configuration> |
| 105 | </plugin> |
Carsten Ziegeler | 423e1bc | 2015-06-12 07:22:19 +0000 | [diff] [blame] | 106 | <plugin> |
| 107 | <groupId>org.codehaus.mojo</groupId> |
| 108 | <artifactId>animal-sniffer-maven-plugin</artifactId> |
| 109 | <configuration> |
| 110 | <signature> |
| 111 | <groupId>org.codehaus.mojo.signature</groupId> |
| 112 | <artifactId>java1${http.java.version}</artifactId> |
| 113 | <version>1.0</version> |
| 114 | </signature> |
| 115 | </configuration> |
| 116 | <executions> |
| 117 | <execution> |
| 118 | <phase>test</phase> |
| 119 | <goals> |
| 120 | <goal>check</goal> |
| 121 | </goals> |
| 122 | </execution> |
| 123 | </executions> |
| 124 | </plugin> |
Felix Meschberger | ae4262a | 2011-12-05 14:15:58 +0000 | [diff] [blame] | 125 | </plugins> |
| 126 | <pluginManagement> |
| 127 | <plugins> |
| 128 | <plugin> |
| 129 | <groupId>org.apache.felix</groupId> |
| 130 | <artifactId>maven-bundle-plugin</artifactId> |
Jan Willem Janssen | 16fd98c | 2015-01-15 15:39:00 +0000 | [diff] [blame] | 131 | <version>2.5.3</version> |
Felix Meschberger | ae4262a | 2011-12-05 14:15:58 +0000 | [diff] [blame] | 132 | <executions> |
| 133 | <execution> |
| 134 | <id>bundle</id> |
| 135 | <phase>package</phase> |
| 136 | <goals> |
| 137 | <goal>bundle</goal> |
| 138 | </goals> |
| 139 | </execution> |
Carsten Ziegeler | 06ff4d2 | 2015-01-16 12:15:46 +0000 | [diff] [blame] | 140 | <execution> |
| 141 | <id>baseline</id> |
| 142 | <goals> |
| 143 | <goal>baseline</goal> |
| 144 | </goals> |
| 145 | </execution> |
Felix Meschberger | ae4262a | 2011-12-05 14:15:58 +0000 | [diff] [blame] | 146 | </executions> |
| 147 | <configuration> |
| 148 | <instructions> |
| 149 | <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName> |
| 150 | <Bundle-Version>${project.version}</Bundle-Version> |
Carsten Ziegeler | 06ff4d2 | 2015-01-16 12:15:46 +0000 | [diff] [blame] | 151 | <Bundle-RequiredExecutionEnvironment>${http.bree}</Bundle-RequiredExecutionEnvironment> |
Felix Meschberger | ae4262a | 2011-12-05 14:15:58 +0000 | [diff] [blame] | 152 | </instructions> |
| 153 | </configuration> |
Carsten Ziegeler | 423e1bc | 2015-06-12 07:22:19 +0000 | [diff] [blame] | 154 | </plugin> |
| 155 | <plugin> |
| 156 | <groupId>org.codehaus.mojo</groupId> |
| 157 | <artifactId>animal-sniffer-maven-plugin</artifactId> |
| 158 | <version>1.14</version> |
| 159 | </plugin> |
Felix Meschberger | ae4262a | 2011-12-05 14:15:58 +0000 | [diff] [blame] | 160 | </plugins> |
| 161 | </pluginManagement> |
| 162 | </build> |
| 163 | |
| 164 | <dependencies> |
| 165 | <dependency> |
Carsten Ziegeler | 06ff4d2 | 2015-01-16 12:15:46 +0000 | [diff] [blame] | 166 | <groupId>biz.aQute</groupId> |
| 167 | <artifactId>bndlib</artifactId> |
| 168 | <version>1.50.0</version> |
| 169 | <scope>provided</scope> |
| 170 | </dependency> |
| 171 | <dependency> |
Felix Meschberger | ae4262a | 2011-12-05 14:15:58 +0000 | [diff] [blame] | 172 | <groupId>junit</groupId> |
| 173 | <artifactId>junit</artifactId> |
| 174 | <version>4.8.2</version> |
| 175 | <scope>test</scope> |
| 176 | </dependency> |
| 177 | <dependency> |
| 178 | <groupId>org.mockito</groupId> |
| 179 | <artifactId>mockito-all</artifactId> |
| 180 | <version>1.8.2</version> |
| 181 | <scope>test</scope> |
| 182 | </dependency> |
| 183 | </dependencies> |
| 184 | |
| 185 | <dependencyManagement> |
| 186 | <dependencies> |
| 187 | <dependency> |
| 188 | <groupId>javax.servlet</groupId> |
Jan Willem Janssen | 0a3f86a | 2014-02-07 16:03:21 +0000 | [diff] [blame] | 189 | <artifactId>javax.servlet-api</artifactId> |
Jan Willem Janssen | 926e71c | 2013-11-10 14:41:39 +0000 | [diff] [blame] | 190 | <version>${servlet.version}</version> |
Felix Meschberger | ae4262a | 2011-12-05 14:15:58 +0000 | [diff] [blame] | 191 | <scope>provided</scope> |
| 192 | </dependency> |
| 193 | <dependency> |
| 194 | <groupId>org.osgi</groupId> |
| 195 | <artifactId>org.osgi.core</artifactId> |
Jan Willem Janssen | 926e71c | 2013-11-10 14:41:39 +0000 | [diff] [blame] | 196 | <version>4.2.0</version> |
Felix Meschberger | ae4262a | 2011-12-05 14:15:58 +0000 | [diff] [blame] | 197 | <scope>provided</scope> |
| 198 | </dependency> |
| 199 | <dependency> |
| 200 | <groupId>org.osgi</groupId> |
| 201 | <artifactId>org.osgi.compendium</artifactId> |
Jan Willem Janssen | 926e71c | 2013-11-10 14:41:39 +0000 | [diff] [blame] | 202 | <version>4.2.0</version> |
Felix Meschberger | ae4262a | 2011-12-05 14:15:58 +0000 | [diff] [blame] | 203 | <scope>provided</scope> |
| 204 | </dependency> |
| 205 | </dependencies> |
| 206 | </dependencyManagement> |
Felix Meschberger | ae4262a | 2011-12-05 14:15:58 +0000 | [diff] [blame] | 207 | </project> |