【问题标题】:Jhipster with jdk-11Jhipster 与 jdk-11
【发布时间】:2019-04-06 02:42:30
【问题描述】:

我使用 JHipster 6.0.0-beta.0 和 java 版本“11.0.2”2019-01-15 LTS 创建了一个项目

我收到以下错误。

[错误] 无法执行目标 org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project mx: Fatal error compile: java.lang.NoClassDefFoundError: javax/ xml/bind/JAXBException: javax.xml.bind.JAXBException -> [帮助 1]

有什么解决方法的建议吗?

【问题讨论】:

  • 您应该将其添加为解决方案而不是评论。

标签: jhipster


【解决方案1】:
The solution is:

Add the following under <!-- For JPA static metamodel generation -->

<path>
    <groupId>org.glassfish.jaxb</groupId>
    <artifactId>jaxb-runtime</artifactId>
    <version>${jaxb-runtime.version}</version>
</path>

【讨论】:

    【解决方案2】:

    在您的 pom.xml 中,balise Java 的价值是什么。版本

    【讨论】:

      猜你喜欢
      • 2021-05-14
      • 1970-01-01
      • 1970-01-01
      • 2019-09-06
      • 2020-03-12
      • 1970-01-01
      • 1970-01-01
      • 2019-08-10
      相关资源
      最近更新 更多