I created a new Project from scratch in IntelliJ by using a Maven Module. I didn\'t select any specific archetypes and I clicked on finish. The project gets created
Maven Module
Had similar issue. Solution that worked for me:
ClassLoader classLoader = getClass().getClassLoader(); File file = new File(classLoader.getResource("path").getFile());