how to output a resource file automatically in intellij idea

There is a maven project like: projectDir/src/main/resources/, after

mvn package
, the files will be copied to projectDir/target/classes. If the project is actived from eclipse, any modified resource will be copied to target/classes automatically while the project is running, how can I do this inIntellij Idea?
4 comments
Comment actions Permalink

The same works in IntelliJ IDEA out of the box, just import the project from Maven.

IntelliJ IDEA build system should produce the same output as Maven.

0
Comment actions Permalink

the mvn package command will output the resource just fine. My question is, how to output a modified resource(in src/main/resources) to target/classes while the project is running

0
Comment actions Permalink

It works, thank you

0

Please sign in to leave a comment.