[ERROR] Some problems were encountered while processing the POMs: [ERROR] 'dependencies.dependency.v

java打包时javax.persistence报了个错误

在这里插入图片描述

[INFO] Scanning for projects…
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] ‘dependencies.dependency.version’ for javax.persistence:persistence-api:jar is missing. @ line 48, column 21
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com:webwork:0.0.1-SNAPSHOT (D:\学习软件\idea\IDEA项目库\Mysql\pom.xml) has 1 error
[ERROR] ‘dependencies.dependency.version’ for javax.persistence:persistence-api:jar is missing. @ line 48, column 21
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:

在这里插入图片描述

解决办法
在这里插入图片描述
加个 version

发布了12 篇原创文章 · 获赞 2 · 访问量 315

猜你喜欢

转载自blog.csdn.net/xiaojiakun/article/details/103695975