Skip to content

Eclipse plugin can't resolve FINDBUGS_ANNOTATIONS and JSR305_LIBRARY. #2470

Description

@WhiteNoise0000

Problem

Project -> Properties -> Java Build Path -> Libraries -> Add Variable does not show neither JSR305_ANNOTATIONS nor FINDBUGS_ANNOTATIONS variables.
Similar issue: #379

Version

SpotBugs 4.7.3

Error Log

!ENTRY com.github.spotbugs.plugin.eclipse 4 0 2023-07-14 22:01:48.754
!MESSAGE Library not found in plugin: /lib/spotbugs-annotations-4.7.3.jar

!ENTRY com.github.spotbugs.plugin.eclipse 4 0 2023-07-14 22:01:48.756
!MESSAGE Unable to find path for variable: FINDBUGS_ANNOTATIONS

!ENTRY com.github.spotbugs.plugin.eclipse 4 0 2023-07-14 22:01:48.759
!MESSAGE Library not found in plugin: /lib/jsr305-3.0.1.jar

!ENTRY com.github.spotbugs.plugin.eclipse 4 0 2023-07-14 22:01:48.761
!MESSAGE Unable to find path for variable: JSR305_ANNOTATIONS

Expected jar filename

com.github.spotbugs.plugin.eclipse_4.7.3.r202210170504-fa9e53a.jar

  • /lib/spotbugs-annotations.jar
  • /lib/jsr305-3.0.2.jar

Actual jar filename

private static final String FINDBUGS_LIBRARY = "/lib/spotbugs-annotations-" + Version.VERSION_STRING + ".jar";
private static final String JSR305_LIBRARY = "/lib/jsr305-3.0.1.jar";

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions