jakarta.servlet-api
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
<version>6.2.0-M2</version>
</dependency><?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 1997, 2026 Oracle and/or its affiliates and others.
All rights reserved.
This program and the accompanying materials are made available under the
terms of the Eclipse Public License v. 2.0, which is available at
http://www.eclipse.org/legal/epl-2.0.
This Source Code may also be made available under the following Secondary
Licenses when the conditions for such availability set forth in the
Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
version 2 with the GNU Classpath Exception, which is available at
https://www.gnu.org/software/classpath/license.html.
SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
-->
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.eclipse.ee4j</groupId>
<artifactId>project</artifactId>
<version>2.0.2</version>
<relativePath/>
</parent>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
<version>6.2.0-M2</version>
<packaging>jar</packaging>
<name>Jakarta Servlet API</name>
<description>
Jakarta Servlet defines a server-side API for handling HTTP requests and responses
</description>
<url>https://projects.eclipse.org/projects/ee4j.servlet</url>
<developers>
<developer>
<id>jakarta-ee4j-servlet</id>
<name>Jakarta Servlet Developers</name>
<organization>Eclipse Foundation</organization>
<email>servlet-dev@eclipse.org</email>
</developer>
</developers>
<contributors>
<contributor>
<name>Jakarta Servlet Contributors</name>
<email>servlet-dev@eclipse.org</email>
<url>https://github.com/jakartaee/servlet/graphs/contributors</url>
</contributor>
</contributors>
<mailingLists>
<mailingList>
<name>Servlet dev mailing list</name>
<post>servlet-dev@eclipse.org</post>
<subscribe>https://accounts.eclipse.org/mailing-list/servlet-dev</subscribe>
<unsubscribe>https://accounts.eclipse.org/mailing-list/servlet-dev</unsubscribe>
<archive>https://www.eclipse.org/lists/servlet-dev</archive>
</mailingList>
</mailingLists>
<scm>
<connection>scm:git:https://github.com/jakartaee/servlet.git</connection>
<developerConnection>scm:git:ssh://git@github.com/jakartaee/servlet.git</developerConnection>
<url>https://github.com/jakartaee/servlet</url>
<tag>HEAD</tag>
</scm>
<issueManagement>
<system>github</system>
<url>https://github.com/jakartaee/servlet/issues</url>
</issueManagement>
<properties>
<!-- Timestamp for repeatable builds (more recent than parent) -->
<project.build.outputTimestamp>2026-05-18T11:42:46Z</project.build.outputTimestamp>
<!-- OSGi properties -->
<!-- Make sure the two versions are in sync with the maven version -->
<spec.version>6.2</spec.version>
<bundle.version>${project.version}</bundle.version>
<extensionName>jakarta.servlet</extensionName>
<bundle.symbolicName>jakarta.servlet-api</bundle.symbolicName>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.junit</groupId>
<artifactId>junit-bom</artifactId>
<version>6.0.3</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
<version>3.0</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.html</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
</resource>
<resource>
<directory>${project.basedir}/..</directory>
<includes>
<include>LICENSE.md</include>
<include>NOTICE.md</include>
</includes>
<targetPath>META-INF</targetPath>
</resource>
</resources>
<pluginManagement>
<plugins>
<plugin>
<groupId>net.revelc.code.formatter</groupId>
<artifactId>formatter-maven-plugin</artifactId>
<version>2.29.0</version>
<configuration>
<configFile>${project.basedir}/etc/config/ee4j-eclipse-formatting.xml</configFile>
</configuration>
</plugin>
<plugin>
<groupId>net.revelc.code</groupId>
<artifactId>impsort-maven-plugin</artifactId>
<version>1.13.0</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<!-- Sets minimal Maven version -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>enforce-maven</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireMavenVersion>
<version>3.8.6</version>
</requireMavenVersion>
<!-- Plugins used to build spec require Java 21 so use 21 a minimum for all modules -->
<requireJavaVersion>
<version>21</version>
</requireJavaVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<!-- Minimum Java version in spec document is 17 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.15.0</version>
<configuration>
<release>17</release>
<compilerArgument>-Xlint:all</compilerArgument>
</configuration>
</plugin>
<!-- Execute unit tests -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.5.5</version>
</plugin>
<!-- Checks copyright / license headers -->
<plugin>
<groupId>org.glassfish.copyright</groupId>
<artifactId>glassfish-copyright-maven-plugin</artifactId>
<version>2.4</version>
<configuration>
<excludeFile>etc/config/copyright-exclude</excludeFile>
<!-- svn|mercurial|git - defaults to svn -->
<scm>git</scm>
<!-- turn on/off debugging -->
<debug>false</debug>
<!-- skip files not under SCM -->
<scmOnly>true</scmOnly>
<!-- turn off warnings -->
<warn>true</warn>
<!-- for use with repair -->
<update>false</update>
<!-- check that year is correct -->
<ignoreYear>false</ignoreYear>
<templateFile>etc/config/copyright-eclipse.txt</templateFile>
<alternateTemplateFile>etc/config/copyright-oracle.txt</alternateTemplateFile>
</configuration>
</plugin>
<!-- Creates the OSGi MANIFEST.MF file -->
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>6.0.2</version>
<configuration>
<supportedProjectTypes>
<supportedProjectType>jar</supportedProjectType>
</supportedProjectTypes>
<instructions>
<Bundle-SymbolicName>${bundle.symbolicName}</Bundle-SymbolicName>
<Bundle-Version>${bundle.version}</Bundle-Version>
<Bundle-Description>Jakarta Servlet ${spec.version}</Bundle-Description>
<Extension-Name>${extensionName}</Extension-Name>
<Specification-Version>${spec.version}</Specification-Version>
<Specification-Vendor>${vendorName}</Specification-Vendor>
<Implementation-Version>${project.version}</Implementation-Version>
<Implementation-Vendor>${project.organization.name}</Implementation-Vendor>
<Implementation-Vendor-Id>org.eclipse</Implementation-Vendor-Id>
<Export-Package>jakarta.servlet.*</Export-Package>
<_removeheaders>Bnd-LastModified</_removeheaders>
<_reproducible>true</_reproducible>
<_removeheaders>Include-Resource</_removeheaders>
</instructions>
</configuration>
<executions>
<execution>
<id>bundle-manifest</id>
<phase>process-classes</phase>
<goals>
<goal>manifest</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Adds the manifest file created by the org.apache.felix:maven-bundle-plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.5.0</version>
<configuration>
<archive>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</configuration>
</plugin>
<!-- Creates the source jar -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.4.0</version>
<configuration>
<includePom>true</includePom>
</configuration>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Create Javadoc for API jar -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.12.0</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<source>17</source>
<additionalJOption>-Xdoclint:none</additionalJOption>
<quiet>true</quiet>
<doctitle>Jakarta Servlet API documentation</doctitle>
<windowtitle>Jakarta Servlet API documentation</windowtitle>
<header><![CDATA[<br>Jakarta Servlet API v${project.version}]]></header>
<bottom><![CDATA[
Comments to: <a href="mailto:servlet-dev@eclipse.org">servlet-dev@eclipse.org</a>.<br>
Copyright © 2019, 2025 Eclipse Foundation. All rights reserved.<br>
Use is subject to <a href="{@docRoot}/doc-files/speclicense.html" target="_top">license terms</a>.]]>
</bottom>
<docfilessubdirs>true</docfilessubdirs>
<groups>
<group>
<title>Jakarta Servlet API Documentation</title>
<packages>
jakarta.servlet.*
</packages>
</group>
</groups>
<tags>
<tag>
<name>implSpec</name>
<placement>a</placement>
<head>Implementation Requirements:</head>
</tag>
</tags>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>format</id>
<activation>
<activeByDefault>true</activeByDefault>
<property>
<name>!validate-format</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>net.revelc.code.formatter</groupId>
<artifactId>formatter-maven-plugin</artifactId>
<executions>
<execution>
<phase>process-sources</phase>
<goals>
<goal>format</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>net.revelc.code</groupId>
<artifactId>impsort-maven-plugin</artifactId>
<configuration>
<removeUnused>true</removeUnused>
</configuration>
<executions>
<execution>
<id>sort-imports</id>
<goals>
<goal>sort</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>validate</id>
<activation>
<activeByDefault>true</activeByDefault>
<property>
<name>validate-format</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>net.revelc.code.formatter</groupId>
<artifactId>formatter-maven-plugin</artifactId>
<executions>
<execution>
<phase>process-sources</phase>
<goals>
<goal>validate</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>net.revelc.code</groupId>
<artifactId>impsort-maven-plugin</artifactId>
<configuration>
<removeUnused>true</removeUnused>
</configuration>
<executions>
<execution>
<id>check-imports</id>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>