英文:
Cannot find class assert symbol during maven build of an existing java project
问题
我已将现有的Java项目转换为Maven。
我对Maven了解不多。有人可以帮我吗?
以下是我在pom.xml
文件中使用的依赖项:
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.6.0</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.6.0</version>
</dependency>
这是我遇到的错误:
[ERROR]/C:/Users/SS078451/eclipseworkspace/Employee_detailsdemo/src/Employee_detailsdemo/DataExtractionTest.java:[2,24] 找不到符号
[ERROR] 符号: 类 Assert
[ERROR] 位置: 包 org.junit
英文:
I have converted my existing Java project to Maven.
I don't know much about Maven. Can someone please help me out?
These are the dependencies I used in my pom.xml
file:
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.6.0</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.6.0</version>
</dependency>
This is the error I got:
[ERROR]/C:/Users/SS078451/eclipseworkspace/Employee_detailsdemo/src/Employee_detailsdemo/DataExtractionTest.java:[2,24] cannot find symbol
[ERROR] symbol: class Assert
[ERROR] location: package org.junit
专注分享java语言的经验与见解,让所有开发者获益!
评论