I am trying to configure my project. Has a root project and two modules.
problem is with configLocation a file has to exist in each submodule, I am trying to avoid duplication
My configuration is
<configLocation>${project.basedir}/src/main/resources/scalastyle_config.xml</configLocation>
With checkstyle this is posible
<configLocation>scalastyle_config.xml</configLocation>
because tries to use a resource, but ScalastyleViolationCheckMojo only relies on files
if (!new File(configLocation).exists()) {
throw new MojoFailureException("configLocation " + configLocation + " does not exist");
}
are there any workarounds?