我使用 JHipster 6.0.0-beta.0 和 java 版本“11.0.2”2019-01-15 LTS 创建了一个项目
我收到以下错误。
[错误] 无法在项目 mx 上执行目标 org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile): 编译 fatal error : java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException: javax.xml.bind.JAXBException -> [帮助 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>
关于Jhipster 与 jdk-11,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55545384/