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?
0

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

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

请先登录再写评论。