Created
May 25, 2020 11:14
-
-
Save wpik/3e5a2af83e3040dfab62505330f1cf69 to your computer and use it in GitHub Desktop.
Solve problem with NoSuchMethodError: 'java.lang.String javax.annotation.Resource.lookup()'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<extensions> | |
<!-- Adding these extensions prevents the error below, with JDK 9 and | |
higher: --> | |
<!-- NoSuchMethodError: 'java.lang.String javax.annotation.Resource.lookup()' --> | |
<extension> | |
<groupId>javax.annotation</groupId> | |
<artifactId>javax.annotation-api</artifactId> | |
<version>1.3.2</version> | |
</extension> | |
<extension> | |
<groupId>javax.annotation</groupId> | |
<artifactId>jsr250-api</artifactId> | |
<version>1.0</version> | |
</extension> | |
</extensions> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment