if (cmd.hasOption(repositoryLocationOption.getOpt())) {
artifactRepository = new ChainedMaven2StyleArtifactRepository(cmd.getOptionValue(repositoryLocationOption.getOpt()));
} else {
File maven2Repository = findLocalMavenRepository();
infolog.info("Using local Maven repository at " + maven2Repository.getAbsolutePath());
artifactRepository = new Maven2StyleArtifactRepository(maven2Repository);
}
Set<String> disabledModuleIds = getDisabledModuleIds(cmd.getOptionValue(disabledModulesOption.getOpt()));