final ComparableVersion version = new ComparableVersion(dropwizardDependency.get().getVersion());
log.info(String.format("Detected Dropwizard %s, attempting to validate configuration.", version));
final File configFile = new File(resourcesDir, "/files" + path.getConfigFile());
final ApplicationValidator validator = new ApplicationValidator(artifactFile, log);
validator.validateConfiguration(configFile);
}
catch (IOException | IllegalArgumentException | ClassNotFoundException e) {
throw new MojoExecutionException("Failed to validate configuration", e);
}
}