软件版本
IntelliJ IDEA 2020.1.4 (Community Edition)
现象
每次执行main方法的时候总是先执行maven test
解决方法
File -> Settings -> Maven -> Importing -> "Automatically generate sources and update folders on import"
放弃选中 delategate IDE build/run action to Maven

参考资料
Why-does-IDEA-trigger-a-Maven-build-during-a-Maven-project-import
网友评论