Resolving an issue when git is preventing from downloading maven dependencies (IntelliJ) - yoss123/test-automation-repo GitHub Wiki
- File -> Settings -> Maven -> make sure that the settings.xml (usually under path C:\Users\yossid.m2\settings.xml) in the file set in "User settings file" field is configured properly. If not, check the "Override" option after updating this file with the proper configuration
Example for settings.xml file:
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>[company-name]-releases</id>
<username>admin</username>
<password>admin123</password>
</server>
<server>
<id>[company-name]-snapshots</id>
<username>admin</username>
<password>admin123</password>
</server>
</servers>
<profiles>
<profile>
<id>nexusRepo</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<repositories>
<repository>
<id>central</id>
<url>https://nexus-int.[company-name].info/repository/maven-central/</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
<repository>
<id>[company-name]-snapshots</id>
<url>https://nexus-int.[company-name]srv.info/repository/maven-snapshots/</url>
<releases><enabled>false</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
<repository>
<id>[company-name]-releases</id>
<url>https://nexus-int.[company-name]srv.info/repository/maven-releases/</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>false</enabled></snapshots>
</repository>
</repositories>
</profile>
</profiles>
</settings>-
File -> Invalidate caches...
-
Make sure you don't have any errors in the 'Indexed Maven Repositories" section under File->Settings->Build,Executio,Deployment->Build Tools->Maven->Repositories