Registry / utility / annotations-api

annotations-api

JSON →
library6.0.53javamavenunverified

Apache Tomcat's implementation of Java EE annotation APIs.

<dependency> <groupId>org.apache.tomcat</groupId> <artifactId>annotations-api</artifactId> <version>6.0.53</version> </dependency>
INSTALL
IMPORT
SIG · ANNOTATIONS-API
A
annotations-api
utilityjavav6.0.53
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Resource
javax.annotation.Resource

Uses the @Resource annotation for dependency injection.

import javax.annotation.Resource; public class Example { @Resource private String myResource; public void useResource() { System.out.println("Resource: " + myResource); } }
Debug
Known issues
gotchaThis package is part of Tomcat; use javax.annotation API from Java EE/ Jakarta EE for broader compatibility.
fix
Prefer jakarta.annotation-api for Jakarta EE 9+ or javax.annotation-api for older versions.
affects: all
Upgrade
Version history
6.0.53latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
23 hits · last 30 days
node
20
OpenAI (training)
2
Resources
annotations-api — mvn dependency:get annotations-api · libregistry