I followed this "tutorial" to build a jar from a project in intellj. The project includes a small spring application, that works running from intellij itself.