mvn 构建失败:编译失败

时间:2021-07-02 16:35:36

标签: java spring eclipse maven maven-plugin

通过 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]

1 个答案:

答案 0 :(得分:0)

似乎问题出在虎纹上。需要添加一些插件依赖项。现已解决