Xml files not copied for intellij target idea

I have some XML files in the source folder along with java files. Intellij Idea does not copy them to the destination folder. I want these xml files to be along with the classes in the target. Eclipse does it perfectly.

Can anyone tell me how to achieve this in Intellij Idea?

+4
source share
2 answers

If, like me, another answer did not solve your problem -

If IDEA believes that your project is a Maven module (or once was), but it is not, it will behave like this. You can fix this by closing the project by editing the .iml file to remove the isMavenModule property, reopening and restoring:

<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">

+9
source

IDEA xml , . . , , / IDEA. maven ( gradle), src/main/resources src/main/java, - .

IDEA , , . "" > ", , " > "". " " " ". , IDEA . :

    !?*.java
    !?*.form
    !?*.class
    !?*.groovy
    !?*.scala
    !?*.flex
    !?*.kt
    !?*.clj
    !?*.aj

, . XML . , - , xml.

+2

All Articles