apache / apache/maven-dependency-analyzer
[MSHARED-1299] Used and Unused javax.annotation-api dependency
- Dominant language
- Java
- Stars
- 43
- Forks
- 54
- Avg merge
- 10h 49m
- Merged PRs (30d)
- 1
Description
**[Elliotte Rusty Harold](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=elharo)** opened **[MSHARED-1299](https://issues.apache.org/jira/browse/MSHARED-1299?redirect=false)** and commented
See https://github.com/apache/maven-enforcer/pull/289 where this bug occurred.
A dependency on javax.annotation-api is indeed used by enforcer-rules/pom.xml. However, the dependency analyzer reports it as unused.
Might involve annotations with source only retention, except that if we remove the declaration then the dependency analyzer reports it as used but undeclared.
---
No further details from [MSHARED-1299](https://issues.apache.org/jira/browse/MSHARED-1299?redirect=false)
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with enforcer-rules/pom.xml and the behavior described in maven-enforcer pull request 289. Investigate why javax.annotation-api is reported as unused when declared, especially in relation to source-retention annotations; done means the analyzer consistently distinguishes the dependency's actual use from its declaration status.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100