【发布时间】:2017-12-14 20:44:21
【问题描述】:
在我的 pom.xml 文件中,我只有一个依赖项:
<dependencies>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>5.2.12.Final</version>
</dependency>
</dependencies>
还有一个module-info.java
module testmodule {
requires hibernate.jpa;
requires hibernate.core;
}
但是当我尝试运行我的应用程序时出现错误:Caused by: java.lang.IllegalArgumentException: jboss.transaction.api.1.2.spec: Invalid module name: '1' is not a Java 标识符。有什么想法如何处理它?
【问题讨论】:
-
requires hibernate.jpa;的依赖关系是什么?问题详细信息似乎不完整,您是否在依赖项和模块信息中也有jboss.transaction.api.1.2.spec? -
@nullpointer jboss.transaction.api.1.2.spec 是来自 hibernate-core 的传递依赖...
标签: java hibernate jta java-9 java-platform-module-system