Config developing enviroment with Intellij Idea

I thought that IDEs are to help write code mostly. Being able to run a project from IDE directly is a nice to have feature. It works for some things. Say i run Spark project from IDEA by running startup.java. I guess there should be a way or some plugin to better integrate with Maven. Most developers are so used to Linux/command line that they find it easier and more convenient to just run it via command than from the IDE itself.