Answer the question
In order to leave comments, you need to log in
Why doesn't IntellijIDEA see the Maven dependency?
I have a project in IntellijIDEA created with Maven.
pom.xml content:
<?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>by.tarasiuk</groupId>
<artifactId>task_01</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>2.13.3</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.13.3</version>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.10</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
Answer the question
In order to leave comments, you need to log in
It was decided like this:
1) Press Shift
+ Ctrl
+ Alt
+ S
, go to Libraries
and delete all libraries.
2) On the right side of the IntellijIDEA window, click on the `Maven` tab and select this:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question