Skip to content

Instantly share code, notes, and snippets.

@wpik
Created May 25, 2020 11:14
Show Gist options
  • Save wpik/3e5a2af83e3040dfab62505330f1cf69 to your computer and use it in GitHub Desktop.
Save wpik/3e5a2af83e3040dfab62505330f1cf69 to your computer and use it in GitHub Desktop.
Solve problem with NoSuchMethodError: 'java.lang.String javax.annotation.Resource.lookup()'
<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