artifactId "oracle" 的 Maven 依赖项是什么?
What is the maven dependency with artifactId "oracle"?
我加入了一个多年稳定的项目,并且在过去 4 或 5 年左右的时间里没有(或几乎 none)额外的发展。
我在构建依赖项时遇到问题。
我无法弄清楚以下依赖项的用途。
这是写在多个pom.xml的。
<dependency>
<groupId>com.oracle</groupId>
<artifactId>oracle</artifactId>
</dependency>
还有一个父pom。
<dependency>
<groupId>com.oracle</groupId>
<artifactId>oracle</artifactId>
<version>10.2.0.2.0</version>
</dependency>
这个依赖指的是什么,有什么作用?
我试图查找此依赖项,但实际上所有结果都指向 jdbc。
这和JDBC一样吗?
这是当前不再使用的旧名称吗?
和这个ojdbc14依赖一样吗?
<!-- https://mvnrepository.com/artifact/com.oracle/ojdbc14 -->
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc14</artifactId>
<version>10.2.0.2.0</version>
</dependency>
假设您的旧编码器遵循正确的标准,第一个在 dependencyManagement
下定义。假设您有一个父模块和一些子模块,并且这些子模块共享一些依赖项。因此,您在父 pom 中定义这些公共依赖项,以便您可以确保在项目中保持一致性。版本、java 版本和其他配置可以在父 pom.xml 中定义。
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.oracle</groupId>
<artifactId>oracle</artifactId>
<version>10.2.0.2.0</version>
</dependency>
<dependencies>
<dependencyManagement>
既然您已经在父pom 中定义了配置,那么每当您想在子模块中使用它时,只需指定groupId
和artifactId
。关键是,仅仅因为你在 dependencyManagement
下的父 pom 中定义,并不意味着它将在子模块中可用,除非你手动指定要使用该依赖项。
<dependency>
<groupId>com.oracle</groupId>
<artifactId>oracle</artifactId>
</dependency>
此处省略版本信息。子模块将查找该信息的父模块并使用它。措辞本身表明,在 parent 中,您使用 dependencyManagement
。即它只是管理依赖关系。在子模块中,您在 dependencies
.
下使用它们
我加入了一个多年稳定的项目,并且在过去 4 或 5 年左右的时间里没有(或几乎 none)额外的发展。 我在构建依赖项时遇到问题。 我无法弄清楚以下依赖项的用途。 这是写在多个pom.xml的。
<dependency>
<groupId>com.oracle</groupId>
<artifactId>oracle</artifactId>
</dependency>
还有一个父pom。
<dependency>
<groupId>com.oracle</groupId>
<artifactId>oracle</artifactId>
<version>10.2.0.2.0</version>
</dependency>
这个依赖指的是什么,有什么作用?
我试图查找此依赖项,但实际上所有结果都指向 jdbc。 这和JDBC一样吗? 这是当前不再使用的旧名称吗?
和这个ojdbc14依赖一样吗?
<!-- https://mvnrepository.com/artifact/com.oracle/ojdbc14 -->
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc14</artifactId>
<version>10.2.0.2.0</version>
</dependency>
假设您的旧编码器遵循正确的标准,第一个在 dependencyManagement
下定义。假设您有一个父模块和一些子模块,并且这些子模块共享一些依赖项。因此,您在父 pom 中定义这些公共依赖项,以便您可以确保在项目中保持一致性。版本、java 版本和其他配置可以在父 pom.xml 中定义。
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.oracle</groupId>
<artifactId>oracle</artifactId>
<version>10.2.0.2.0</version>
</dependency>
<dependencies>
<dependencyManagement>
既然您已经在父pom 中定义了配置,那么每当您想在子模块中使用它时,只需指定groupId
和artifactId
。关键是,仅仅因为你在 dependencyManagement
下的父 pom 中定义,并不意味着它将在子模块中可用,除非你手动指定要使用该依赖项。
<dependency>
<groupId>com.oracle</groupId>
<artifactId>oracle</artifactId>
</dependency>
此处省略版本信息。子模块将查找该信息的父模块并使用它。措辞本身表明,在 parent 中,您使用 dependencyManagement
。即它只是管理依赖关系。在子模块中,您在 dependencies
.