eclipse-platform / eclipse-platform/eclipse.platform

Build failure correlates with new javax-annotation warning

Open
#840 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
165
Forks
174
Avg merge
2d 8h
Merged PRs (30d)
22

Description

Tycho builds now report

WARNING: Annotation classes from the 'javax.inject' or 'javax.annotation' package found.
It is recommended to migrate to the corresponding replacements in the jakarta namespace.
The Eclipse E4 Platform will remove support for those javax-annotations in a future release.
To suppress this warning, set the VM property: -Declipse.e4.inject.javax.warning=false
To disable processing of 'javax' annotations entirely, set the VM property: -Declipse.e4.inject.javax.disabled=true

The QVTo build (https://ci.eclipse.org/qvt-oml/job/qvto-master/546/console) that does not use javax.annotation fails with the apparently unrelated

org.apache.maven.surefire.util.SurefireReflectionException: java.lang.ClassNotFoundException: org.apache.maven.surefire.junit4.JUnit4Provider
at org.apache.maven.surefire.util.ReflectionUtils.loadClass(ReflectionUtils.java:249)

However adding a requirement dependency for javax.annotation fixes the build.

It would appear that the warning that javax.annotation is going obsolete malfunctions when javax.annotation is not actually in use.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.