【问题标题】:mvn build failures : Compilation failuremvn build failures:编译失败
【发布时间】: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


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-03-26
    • 1970-01-01
    • 2021-09-10
    • 2014-02-02
    • 2015-11-13
    • 2014-12-08
    相关资源
    最近更新 更多