mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
maven: try resolving plugins if there are unresolved even if no changes in pom file have been made
This commit is contained in:
+11
-9
@@ -343,18 +343,20 @@ public class MavenProjectsManager extends SimpleProjectComponent
|
||||
@Override
|
||||
public void projectResolved(Pair<MavenProject, MavenProjectChanges> projectWithChanges,
|
||||
@Nullable NativeMavenProjectHolder nativeMavenProject) {
|
||||
if (nativeMavenProject != null && shouldScheduleProject(projectWithChanges)) {
|
||||
scheduleForNextImport(projectWithChanges);
|
||||
if (nativeMavenProject != null) {
|
||||
if (shouldScheduleProject(projectWithChanges)) {
|
||||
scheduleForNextImport(projectWithChanges);
|
||||
|
||||
if (projectWithChanges.first.hasUnresolvedPlugins()) {
|
||||
schedulePluginsResolve(projectWithChanges.first, nativeMavenProject);
|
||||
scheduleArtifactsDownloading(Collections.singleton(projectWithChanges.first),
|
||||
null,
|
||||
getImportingSettings().isDownloadSourcesAutomatically(),
|
||||
getImportingSettings().isDownloadDocsAutomatically(),
|
||||
null);
|
||||
}
|
||||
|
||||
scheduleArtifactsDownloading(Collections.singleton(projectWithChanges.first),
|
||||
null,
|
||||
getImportingSettings().isDownloadSourcesAutomatically(),
|
||||
getImportingSettings().isDownloadDocsAutomatically(),
|
||||
null);
|
||||
if (!projectWithChanges.first.hasReadingProblems() && projectWithChanges.first.hasUnresolvedPlugins()) {
|
||||
schedulePluginsResolve(projectWithChanges.first, nativeMavenProject);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user