Skip to content

Commit

Permalink
Just return all
Browse files Browse the repository at this point in the history
  • Loading branch information
cstamas committed Mar 4, 2024
1 parent 2add8c9 commit f44cc91
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ private List<Version> discoverVersions() throws VersionRangeResolutionException
return rangeResult.getVersions();
}

private MavenProject buildMavenProject(String version) throws ProjectBuildingException {
private ProjectBuildingResult buildMavenProject(String version) throws ProjectBuildingException {
MavenProject currentProject = mavenSession.getCurrentProject();
ProjectBuildingRequest buildRequest = new DefaultProjectBuildingRequest();
buildRequest.setLocalRepository(mavenSession.getLocalRepository());
Expand All @@ -280,10 +280,9 @@ private MavenProject buildMavenProject(String version) throws ProjectBuildingExc
buildRequest.setSystemProperties(mavenSession.getSystemProperties());
buildRequest.setUserProperties(mavenSession.getUserProperties());
buildRequest.setRepositorySession(mavenSession.getRepositorySession());
ProjectBuildingResult buildResult = projectBuilder.build(
return projectBuilder.build(
RepositoryUtils.toArtifact(new DefaultArtifact(
currentProject.getGroupId() + ":" + currentProject.getArtifactId() + ":pom:" + version)),
buildRequest);
return buildResult.getProject();
}
}

0 comments on commit f44cc91

Please sign in to comment.