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