【发布时间】:2021-07-02 16:35:36
【问题描述】:
通过 maven 构建项目时出现以下错误。尝试使用 mvn clean install 命令。
项目是最新克隆的,没有进行任何更改,本地仍然出现错误。
项目似乎是远程传递的,因此是我的问题。
File BlockMetadata.java 没有编译问题
试过了:
->maven 更新但没有运气。
->参考了关于 XmlRootElement 问题的其他文章,这些文章指出添加 javax.xml.bind 依赖,但如果项目正在传递远程构建问题似乎到了我的尽头
任何指针将不胜感激
[ERROR] Failed to execute goal org.eclipse.tigerstripe:tigerstripe-maven-plugin:3.2.2:compile-artifacts (default-compile-artifacts) on project test_model: Compilation failure: Compilation failure: [ERROR] /Users/amit/project/models/external-models/test_model/target/tigerstripe.gen/src/main/java/com/Scheduler/test/model/metadata/BlockMetadata.java: [ERROR] // [ERROR] ^ [ERROR] The type javax.xml.bind.annotation.XmlRootElement cannot be resolved. It is indirectly referenced from required .class files [ERROR] 1 problem (1 error) [ERROR] -> [Help 1]
【问题讨论】:
-
您需要显示项目和 pom.xml 文件的更多详细信息。
标签: java spring eclipse maven maven-plugin