private void initResourceLoader() throws MojoExecutionException {
try {
if (isIddAsResource()) {
// we need this classLoader because it's the only way to get to the project dependencies
resourceLoader = new ResourceLoader(getRuntimeClassPath());
}
else {
resourceLoader = new ResourceLoader();
}
}
catch (Exception e) {
throw new MojoExecutionException("Error initialising classloader: " + e, e);
}