Disable indexes if maven3 is used.

This commit is contained in:
Sergey Evdokimov
2012-10-07 23:08:02 +04:00
parent 21b4ae6c2f
commit 3897b39529
2 changed files with 5 additions and 0 deletions
@@ -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);