Search code examples
javaintellij-ideamaven-resources-plugin

Does some Java specification require `resources` content to be copied into `target`?


Or is it just my IntelliJ IDEA's voluntary behavior? I have 8 files, each 3.5 GiB in size and IDEA copies them from src/main/resources into target/classes/resources during the make task. Is it possible to avoid such a behaviour?


Solution

  • The resources directory is for files that get built into the .jar output.

    For large files, you should probably store them outside the resources directory and outside the .jar file.