mavenModuleRoot

open fun mavenModuleRoot(c: Class<out Any>): Path(source)

Useful for locating source code in your Maven project. Finds the classpath for class c, then backs up out of "target/(test-)classes", giving the directory containing the pom.xml.