I am new to maven and my main, recuring, issue is having dependencies to be resolved.
In my pom file:
<?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>groupId</groupId>
<artifactId>Toto</artifactId>
<version>1.0-SNAPSHOT</version>
<dependencies>
<!-- NOT FOUND -->
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
<version>8.1.1.jre8-preview</version>
<scope>test</scope>
</dependency>
<!-- FOUND -->
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
<version>8.1.1.jre13</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
The first one cannot be resolved, while the second can. They both come from the same place.
https://mvnrepository.com/artifact/com.microsoft.sqlserver/mssql-jdbc/8.1.1.jre13 https://mvnrepository.com/artifact/com.microsoft.sqlserver/mssql-jdbc/8.1.1.jre8
Obviously, I need the first one. What is the issue ? IDE is IntelliJ