Skip to content

Commit ee1fdf7

Browse files
committed
fix comment
1 parent 93f7534 commit ee1fdf7

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

impl/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
import java.util.stream.Collectors;
4545
import java.util.stream.Stream;
4646

47-
import org.apache.maven.ProjectCycleException;
4847
import org.apache.maven.RepositoryUtils;
4948
import org.apache.maven.api.ArtifactCoordinates;
5049
import org.apache.maven.api.Language;
@@ -493,19 +492,11 @@ List<ProjectBuildingResult> build(List<File> pomFiles, boolean recursive) throws
493492
.orElse(null);
494493
if (cycle != null) {
495494
final CycleDetectedException cde = (CycleDetectedException) cycle.getException();
496-
497-
final ProjectCycleException pce = new ProjectCycleException(
498-
"The projects in the reactor contain a cyclic reference: " + cycle.getMessage(), cde);
499-
500-
// If you can resolve these from the problem/result, set them; otherwise leave null.
501-
final String projectId = null;
502-
final File pomFile = null;
503-
504495
throw new ProjectBuildingException(
505-
projectId,
496+
null,
506497
"The projects in the reactor contain a cyclic reference: " + cycle.getMessage(),
507-
pomFile,
508-
pce);
498+
null,
499+
cde);
509500
}
510501

511502
throw new ProjectBuildingException(results);

0 commit comments

Comments
 (0)