xml文件不会复制到目标intellij的想法 [英] xml files are not copied to target intellij idea
问题描述
我在源文件夹中有一些xml文件和java文件。
Intellij Idea未将它们复制到目标文件夹。
我希望这些xml文件与目标中的类一起使用。
Eclipse做得很好。
I have some xml files within the source folder along with the java files. Intellij Idea is not copying them to the target folder. I want those xml files to be along with the classes in the target. Eclipse does this fine.
有人可以告诉我们如何在Intellij Idea中实现这个目标吗?
Can anyone please tell how to achieve this in Intellij Idea?
推荐答案
如果像我一样,另一个答案没有解决你的问题 -
If, like me, the other answer didn't solve your problem -
如果IDEA认为你的项目是Maven模块(或曾经是),它不是,它会表现得像这样。您可以通过关闭项目,编辑.iml文件以删除isMavenModule属性,重新打开和重建来解决此问题:
If IDEA thinks your project is a Maven module (or once was), and it isn't, it'll behave like this. You can fix this by closing the project, editing the .iml file to remove the isMavenModule property, reopening, and rebuilding:
< module
org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule=\"true\"
type =JAVA_MODULEversion =4>
这篇关于xml文件不会复制到目标intellij的想法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!