IntelliJ-找不到模块:java.xml.ws.annotation [英] IntelliJ - module not found: java.xml.ws.annotation

查看:233
本文介绍了IntelliJ-找不到模块:java.xml.ws.annotation的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

该项目具有Gradle 5(gradle-5.0-milestone-1),Java 11(OpenJDK11)和最新的IntelliJ Professional。

Project has Gradle 5 (gradle-5.0-milestone-1), Java 11 (OpenJDK11) and latest IntelliJ Professional.

具有 sourceCompatibility = 10 在gradle.properties中,它可以构建/运行测试,但是在 sourceCompatibility = 11 的情况下,它显示
模块找不到:java.xml.ws.annotation

With sourceCompatibility = 10 in gradle.properties it builds/runs tests, but with sourceCompatibility = 11 it shows module not found: java.xml.ws.annotation

请注意,如果我运行 test Gradle中的任务可以成功运行所有内容,但是只有直接从IntelliJ中运行(指向方法,右键单击并运行)时,它才会失败。

Note that If I run test task from Gradle it runs everything successfully but it only fails when running directly from IntelliJ (pointing on method, right click and run).

有人知道什么是什么吗?

Does anyone have any idea what is going wrong here?

推荐答案

对于遇到类似问题的人。删除 .idea 文件夹并重新导入整个项目很有帮助。

For those who run into similar problem. Removing .idea folder and reimporting whole project helped.

这篇关于IntelliJ-找不到模块:java.xml.ws.annotation的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆