行家不会在运行时包含所有ojdbc模块

问题描述 投票:0回答:1

[尝试在maven中运行javafx:时出现以下错误。

[WARNING] Can't extract module name from oraclepki-19.3.0.0.jar: CertificateTest.class found in top-level directory (unnamed package not allowed in module)
[WARNING] Some dependencies encountered issues while attempting to be resolved as modules and will not be included in the classpath; you can change this behavior via the  'includePathExceptionsInClasspath' configuration parameter.

oraclepki是ojdbc的一部分,它是通过以下依赖项导入的:

   <dependency>
      <groupId>com.oracle.ojdbc</groupId>
      <artifactId>ojdbc10</artifactId>
      <version>19.3.0.0</version>
    </dependency>

我将如何解决此问题?警告说我可以通过'includePathExceptionsInClasspath'配置参数更改行为,但是我不知道该在哪里设置,并且在对其进行谷歌搜索时找不到任何解释。我正在使用的IDE是eclipse。

maven ojdbc
1个回答
0
投票

您可以包括以下依赖项吗?如果查看POM,将得到oraclepki.jar,osdt_core.jar和osdt_cert.jar等。请查看blog了解更多详细信息。

<dependency>
      <groupId>com.oracle.jdbc.database</groupId>
      <artifactId>ojdbc10</artifactId>
      <version>19.3.0.0</version>
    </dependency>
© www.soinside.com 2019 - 2024. All rights reserved.