Understand this is a near duplicate of other questions, but raising here as none of the suggested solutions work.
Problem:
On mac os (10.15) when I try to update the Maven repository indexes, Intellij downloads a 2.4 GB file (Background tasks indicator reaches 100%), then it starts to process indices – Background tasks indicator reads:
Updating [central] https://repo.maven.apache.org/maven2
Processing indices...
During this time, the 10GB of remaining disk space that I have, gets eaten up and the process eventually fails with a disk space error.
The pom file looks like the below:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>blah</groupId>
<artifactId>blah</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
</properties>
<!-- https://mvnrepository.com/artifact/org.telegram/Bots -->
<dependency>
<groupId>org.telegram</groupId>
<artifactId>Bots</artifactId>
<version>7.2.1</version>
<type>pom</type>
</dependency>
An error is flagged for the following lines:
http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd
“URI is not registered” and “Cannot resolve symbol”, respectively
Given this problem, I cannot import, e.g.:
import org.telegram.telegrambots.bots.TelegramLongPollingBot;
Have tried:
- Invalidating caches
- Deleting cache folder contents
- Disabling plugins
- Setting
idea.max.intellisense.filesize=50
None of which fixes the problem.
Any ideas? Hopefully it’s not that 10GB is actually insufficient…
Building a similar project, on the same version of Intellij, but on a Win 10 PC, had no such problem.