File update.patch of Package maven-shared
Index: maven-runtime/src/main/java/org/apache/maven/shared/runtime/XMLMavenRuntimeVisitor.java
===================================================================
--- maven-runtime/src/main/java/org/apache/maven/shared/runtime/XMLMavenRuntimeVisitor.java.orig
+++ maven-runtime/src/main/java/org/apache/maven/shared/runtime/XMLMavenRuntimeVisitor.java
@@ -109,7 +109,7 @@ class XMLMavenRuntimeVisitor implements
return genericList( projectSorter.getSortedProjects(), MavenProject.class );
}
- catch ( CycleDetectedException exception )
+ catch (CycleDetectedException exception )
{
throw new MavenRuntimeException( "Cannot sort projects", exception );
}
@@ -117,6 +117,10 @@ class XMLMavenRuntimeVisitor implements
{
throw new MavenRuntimeException( "Cannot sort projects", exception );
}
+ catch (Exception e)
+ {
+ return null;
+ }
}
// private methods --------------------------------------------------------