简体   繁体   中英

Compile time error even after adding maven dependency

Even after adding maven dependency in pom file, the mvn clean package gives below error:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.
2:compile (default-compile) on project: Compilation failure: Compilation failure:
[ERROR] /D:/my-project/core/src/main/java/com/integration/test/core/Myjavaclass.java:[18,37] package does not exist

check if this file is there in the path

D:/my-project/core/src/main/java/com/integration/test/core/Myjavaclass.java

Probably this file is missing so maven is not able to compile.

Got it resolved now. There was problem with the version of dependency.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM