Skip to content

Commit 353ec6e

Browse files
RAMPART-454 Put servlet-api on the aggregator Javadoc classpath
mvn package (and mvn site / site-deploy) was failing in the apidocs module with: error: package jakarta.servlet.http does not exist import jakarta.servlet.http.HttpServletRequest; because rampart-core references HttpServletRequest (RampartUtil.java) and declares jakarta.servlet-api with <scope>provided</scope>. Provided scope is not transitive, so when apidocs aggregates rampart-core's sources for Javadoc, the servlet API is absent from the Javadoc classpath. Declare jakarta.servlet-api explicitly in apidocs/pom.xml so javadoc-no-fork (invoked at prepare-package for dist-javadoc and at site for site-javadoc) can resolve the import.
1 parent 50c80d3 commit 353ec6e

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

apidocs/pom.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,14 @@
5050
<artifactId>rampart-trust</artifactId>
5151
<version>${project.version}</version>
5252
</dependency>
53+
<!-- rampart-core references jakarta.servlet.http.HttpServletRequest.
54+
The servlet API is declared 'provided' in rampart-core so it is
55+
not transitively visible; make it available on the Javadoc
56+
classpath explicitly. -->
57+
<dependency>
58+
<groupId>jakarta.servlet</groupId>
59+
<artifactId>jakarta.servlet-api</artifactId>
60+
</dependency>
5361
</dependencies>
5462
<build>
5563
<plugins>

0 commit comments

Comments
 (0)