mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Disable indexes if maven3 is used.
This commit is contained in:
@@ -50,6 +50,9 @@ public class MavenIndices {
|
||||
File[] indices = myIndicesDir.listFiles();
|
||||
if (indices == null) return;
|
||||
Arrays.sort(indices);
|
||||
|
||||
if (Boolean.getBoolean("idea.use.maven3")) return;
|
||||
|
||||
for (File each : indices) {
|
||||
if (!each.isDirectory()) continue;
|
||||
|
||||
|
||||
@@ -171,6 +171,8 @@ public class MavenIndicesManager {
|
||||
|
||||
MavenIndices indicesObjectCache = getIndicesObject();
|
||||
|
||||
if (Boolean.getBoolean("idea.use.maven3")) return new ArrayList<MavenIndex>(result);
|
||||
|
||||
try {
|
||||
MavenIndex localIndex = indicesObjectCache.add(LOCAL_REPOSITORY_ID, localRepository.getPath(), MavenIndex.Kind.LOCAL);
|
||||
result.add(localIndex);
|
||||
|
||||
Reference in New Issue
Block a user