final Map<String, Artifact> dependencyArtifactMap = this.pluginDescriptor.getArtifactMap();
// We should always have FitNesse itself on the FitNesse classpath!
artifacts.addAll(resolveDependencyKey(FitNesse.artifactKey, dependencyArtifactMap));
// We check plugin for null to allow use in standalone mode
final Plugin fitnessePlugin = this.project.getPlugin(this.pluginDescriptor.getPluginLookupKey());
if(fitnessePlugin == null) {
getLog().info("Running standalone - launching vanilla FitNesse");
} else {
final List<Dependency> dependecies = fitnessePlugin.getDependencies();
if(dependecies != null && !dependecies.isEmpty()) {
getLog().info("Using dependencies specified in plugin config");
for(Dependency dependency : dependecies) {
final String key = dependency.getGroupId() + ":" + dependency.getArtifactId();
artifacts.addAll(resolveDependencyKey(key, dependencyArtifactMap));