}
@Command("remove-parent")
public void removeParent(final PipeOut out)
{
MavenCoreFacet mvn = project.getFacet(MavenCoreFacet.class);
Model pom = mvn.getPOM();
Parent parent = pom.getParent();
if (parent != null)
{
String parentId = parent.getGroupId() + ":" + parent.getArtifactId() + ":"
+ parent.getVersion() + " ("
+ (parent.getRelativePath() == null ? " " : parent.getRelativePath() + ")");
if (shell.promptBoolean("Are you sure you want to remove all parent information from this project? [ "
+ parentId + "]", false))
{
out.println("Removed parent [ " + parentId + " ]");
pom.setParent(null);
mvn.setPOM(pom);
}
else
{
out.println("Aborted...");
}