Intellij IDEA doesn't search for javax.annotation.Resource in java.annotation module

Answered

Hi everyone,

I've got the following issue: I'm migrating a Java 8 application to Java 10. The Maven module I've just migrated works fine: it is successfully built with Maven, tests are passing. I had to use java.annotation module adding javax.annotation:javax.annotation-api dependency in order not to use the deprecated platform java.xml.ws.annotation module. But Intellij highlights the javax.annotation.Resource import in red suggesting adding the deprecated java.xml.ws.annotation module. Please, see the screenshots (just in case; sorry for my paint skills:)):

The issue:

`requires` stuff I'm adding in the module descriptor

The new dependency in the pom.xml:

Maven version is 3.5.4, Java version is 10.0.1, Intellij IDEA version is 2018.1.6.

Thank you!

0
2 comments

Hi.

We have a related ticket, please follow: https://youtrack.jetbrains.com/issue/IDEA-192658

0
Avatar
Permanently deleted user

Hi Petr, got it. Thank you then!

0

Please sign in to leave a comment.