我正在引用一个现有的 Spring 项目,该项目对 Spring 框架的不同组件有许多 Maven 依赖项。
我喜欢 Spring 以这种方式公开其模块的事实,因此您可以使用所需的并丢弃不需要的。
到目前为止,我已经在我的 pom.xml 文件中看到了这种东西:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-oxm</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${spring.version}</version>
</dependency>
我还查看了 Spring 网站,发现这些模块很好地组织到不同的项目中。但是,我在这里没有看到确切的 1:1 关系。例如,正如您在这个 pom.xml 文件中看到的那样,我依赖于 spring-core。好吧,如果我想将其映射回文档以便我可以进一步阅读,我将如何在此处进行操作:http ://projects.spring.io ?看起来项目的组织方式是:它们列出了一个项目,以及一个可以添加到项目中的快速入门 Maven 依赖项。那么,弹簧芯在哪里?
与网站上的特定项目似乎没有确切的关系。我在这里列出的依赖项是独立的依赖项吗?或者是一些实际上传递依赖,例如:spring-context实际上是spring-core的依赖?
是否有任何文档可以轻松地将 maven 依赖模块映射回 Spring 网站上的确切项目文档?