Skip to content

Commit

Permalink
Merge pull request #28463 from Noonchi1004/go-offline-project
Browse files Browse the repository at this point in the history
go-offline: initialize Maven artifact resolver with the current project dir
  • Loading branch information
aloubyansky authored Oct 12, 2022
2 parents d411e19 + 1fd35f9 commit 51fe1b3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ private void resolveAppModel(final MavenArtifactResolver resolver, final Artifac
private MavenArtifactResolver getResolver() throws MojoExecutionException {
try {
return MavenArtifactResolver.builder()
.setCurrentProject(project.getBasedir().toString())
.setRemoteRepositoryManager(remoteRepositoryManager)
.setRemoteRepositories(repos)
.setPreferPomsFromWorkspace(true)
Expand Down

0 comments on commit 51fe1b3

Please sign in to comment.