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.
Can anyone please tell how to achieve this in Intellij Idea?
Last modified: 08 March 2021. IntelliJ IDEA lets you create a meta target for your Ant build file. A meta target can contain several different targets of your choosing. Those targets will be executed in the specified order. In this case, you don't need to change the Ant build script itself.
You can use ⇧⌘N (macOS), or Ctrl+Alt+Shift+Insert (Windows/Linux) to create a new scratch file. If you have content selected then the new scratch file will contain that content.
If, like me, the other answer didn't solve your problem -
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_MODULE" version="4">
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With