Intellij-idea无法看到生成的源目录 [英] Intellij-idea cannot see generated sources directory
问题描述
我在IntelliJ中有一个maven项目我已经通过文件>项目结构
标记生成的源目录作为源,并标记为源。我也通过右键单击文件夹并将其标记为生成源来完成另一种方式。
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. I've also done it the other way by right clicking on the folder and marking as generated-sources.
我仍然收到错误消息说IntelliJ无法找到这些文件夹当我创建SOAP实现时无法解析符号'name_of_folder'
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
有谁知道我怎么做解决这个问题?从我所看到的我已经正确地做了一切来标记该文件夹和IntelliJ应该能够从那里读取
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
推荐答案
取消选中在首选项>构建,执行,部署> Gradle中创建每个源集的单独模块,然后重建/重新刷新
uncheck "Create Separate module per source set" in Preferences > Build, Execution, Deployment > Gradle and then rebuild / gradle refresh
这篇关于Intellij-idea无法看到生成的源目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!