artifact = pluginProject.getFacet(PackagingFacet.class).getFinalArtifact();
}
// However, get only the necessary plugin artifact
if ((artifact != null) && artifact.exists())
{
MetadataFacet meta = rootProject.getFacet(MetadataFacet.class);
Dependency dep = meta.getOutputDependency();
ShellMessages.info(shell, "Installing plugin artifact.");
// TODO Figure out a better plugin versioning strategy than random numbers, also see if unloading is
// possible to avoid this entirely.