<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor
   license agreements. See the NOTICE file distributed with this work for additional
   information regarding copyright ownership. The ASF licenses this file to
   you under the Apache License, Version 2.0 (the "License"); you may not use
   this file except in compliance with the License. You may obtain a copy of
   the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
   by applicable law or agreed to in writing, software distributed under the
   License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
   OF ANY KIND, either express or implied. See the License for the specific
   language governing permissions and limitations under the License. -->
<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">

   <modelVersion>4.0.0</modelVersion>
   <parent>
       <groupId>org.apache.felix</groupId>
       <artifactId>felix-parent</artifactId>
       <version>9</version>
       <relativePath>../../pom/pom.xml</relativePath>
   </parent>

   <name>Apache Felix Servlet API</name>
   <description>Provides the Servlet API for use by applications</description>
   <artifactId>org.apache.felix.http.servlet-api</artifactId>
   <version>6.1.0</version>
   <packaging>bundle</packaging>

   <scm>
       <connection>scm:git:https://github.com/apache/felix-dev.git</connection>
       <developerConnection>scm:git:https://github.com/apache/felix-dev.git</developerConnection>
       <url>https://gitbox.apache.org/repos/asf?p=felix-dev.git</url>
     <tag>org.apache.felix.http.servlet-api-6.1.0</tag>
 </scm>

   <properties>
       <baseline.skip>true</baseline.skip>
   </properties>

   <build>
       <plugins>
           <plugin>
               <artifactId>maven-dependency-plugin</artifactId>
               <version>3.8.1</version>
               <executions>
                   <execution>
                       <id>process-servlet-5</id>
                       <goals>
                           <goal>unpack</goal>
                       </goals>
                       <configuration>
                           <artifactItems>
                               <artifactItem>
                                   <groupId>jakarta.servlet</groupId>
                                   <artifactId>jakarta.servlet-api</artifactId>
                                   <version>5.0.0</version>
                                   <includes>**/HttpSessionContext.class,**/HttpUtils.class,**/SingleThreadModel.class</includes>
                               </artifactItem>
                           </artifactItems>
                           <outputDirectory>${project.build.directory}/classes</outputDirectory>
                       </configuration>
                   </execution>
               </executions>
           </plugin>
           <plugin>
               <groupId>org.apache.felix</groupId>
               <artifactId>maven-bundle-plugin</artifactId>
               <version>5.1.9</version>
               <extensions>true</extensions>
               <executions>
                   <execution>
                       <id>bundle</id>
                       <phase>package</phase>
                       <goals>
                           <goal>bundle</goal>
                       </goals>
                   </execution>
                   <execution>
                       <id>baseline</id>
                       <goals>
                         <goal>baseline</goal>
                       </goals>
                   </execution>
               </executions>
               <configuration>
                   <instructions>
                       <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
                       <Bundle-Version>${project.version}</Bundle-Version>
                       <Export-Package>
                           javax.servlet;version=2.6;uses:="javax.servlet.annotation,javax.servlet.descriptor",
                           javax.servlet.annotation;version=2.6;uses:="javax.servlet",
                           javax.servlet.descriptor;version=2.6,
                           javax.servlet.http;version=2.6;uses:="javax.servlet",
                           javax.servlet;version=3.0;uses:="javax.servlet.annotation,javax.servlet.descriptor",
                           javax.servlet.annotation;version=3.0;uses:="javax.servlet",
                           javax.servlet.descriptor;version=3.0,
                           javax.servlet.http;version=3.0;uses:="javax.servlet",
                           javax.servlet;version=3.1;uses:="javax.servlet.annotation,javax.servlet.descriptor",
                           javax.servlet.annotation;version=3.1;uses:="javax.servlet",
                           javax.servlet.descriptor;version=3.1,
                           javax.servlet.http;version=3.1;uses:="javax.servlet",
                           javax.servlet;version=4.0;uses:="javax.servlet.annotation,javax.servlet.descriptor",
                           javax.servlet.annotation;version=4.0;uses:="javax.servlet",
                           javax.servlet.descriptor;version=4.0,
                           javax.servlet.http;version=4.0;uses:="javax.servlet",
                           jakarta.servlet;version=5.0;uses:="jakarta.servlet.annotation,jakarta.servlet.descriptor",
                           jakarta.servlet.annotation;version=5.0;uses:="jakarta.servlet",
                           jakarta.servlet.descriptor;version=5.0,
                           jakarta.servlet.http;version=5.0;uses:="jakarta.servlet",
                           jakarta.servlet;version=6.1;uses:="jakarta.servlet.annotation,jakarta.servlet.descriptor",
                           jakarta.servlet.annotation;version=6.1;uses:="jakarta.servlet",
                           jakarta.servlet.descriptor;version=6.1,
                           jakarta.servlet.http;version=6.1;uses:="jakarta.servlet"
                       </Export-Package>
                       <Import-Package>!*</Import-Package>
                       <Provide-Capability>
                           osgi.contract;osgi.contract="JavaServlet";version:List&lt;Version&gt;="2.6,3.0,3.1,4.0";
                           uses:="javax.servlet,javax.servlet.http,javax.servlet.descriptor,javax.servlet.annotation",
                           osgi.contract;osgi.contract="JakartaServlet";version:List&lt;Version&gt;="5.0,6.0,6.1";
                           uses:="jakarta.servlet,jakarta.servlet.http,jakarta.servlet.descriptor,jakarta.servlet.annotation"
                       </Provide-Capability>
                       <Embed-Dependency>tomcat-servlet-api;inline=true,jakarta.servlet-api;inline=true</Embed-Dependency>
                   </instructions>
               </configuration>
           </plugin>
       </plugins>
   </build>

   <dependencies>
       <dependency>
           <groupId>org.apache.tomcat</groupId>
           <artifactId>tomcat-servlet-api</artifactId>
           <version>9.0.102</version>
       </dependency>
       <dependency>
           <groupId>jakarta.servlet</groupId>
           <artifactId>jakarta.servlet-api</artifactId>
           <version>6.1.0</version>
       </dependency>
   </dependencies>

</project>