简体   繁体   English

Intellij-idea无法看到生成的源目录

[英]Intellij-idea cannot see generated sources directory

I have a maven project in IntelliJ I have marked the generated sources directory as the source by doing Files>Project Structure and marking as source. 我在IntelliJ中有一个maven项目,通过执行“ Files>Project Structure并将其标记为源,已将生成的源目录标记为源。 I've also done it the other way by right clicking on the folder and marking as generated-sources. 通过右键单击该文件夹并将其标记为生成源,我还采用了另一种方法。

I'm still getting errors saying the IntelliJ cannot find things in these folders Cannot resolve symbol 'name_of_folder' when I'm creating a SOAP implementation 我仍然收到错误消息,说我在创建SOAP实现时IntelliJ无法在这些文件夹中找到东西Cannot resolve symbol 'name_of_folder'

Does anyone know how I can fix this issue? 有谁知道我该如何解决这个问题? From what I can see I have done everything correctly to mark that folder and IntelliJ Should be able to read from there 据我所知,我已经正确地完成了所有操作以标记该文件夹,并且IntelliJ应该可以从那里读取

在“首选项”>“构建,执行,部署”>“ Gradle”中取消选中“为每个源集创建单独的模块”,然后重新构建/ gradle刷新

Fixed this error.... 修复了此错误。

IntelliJ was marking all subdir of my generated-sources/cxf folder as source roots... So a simple highlight of all folders and un-mark as sources fixes the issue. 的IntelliJ是标志认证的所有subdir我的generated-sources/cxf文件夹作为源根......所以所有文件夹和未标记为源的简单亮点修复该问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM