我正在尝试添加使用 Maven 的项目所需的与 Spring 框架相关的某些 JAR 文件。
项目名称:Spring
是否可以使用 Maven 来完成此操作?
依赖关系如下:
<!-- https://mvnrepository.com/artifact/org.springframework/spring-aspects -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aspects</artifactId>
<version>3.2.7.RELEASE</version>
</dependency>
最佳答案
您应该将项目导入为 Maven 项目。如果它不是 Maven 项目,您可以使用 Eclipse转换它。
然后您应该将您的依赖项作为项目的 pom.xml 中的依赖项
之一,如下所示:
<dependencies>
<!-- https://mvnrepository.com/artifact/org.springframework/spring-aspects -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aspects</artifactId>
<version>3.2.7.RELEASE</version>
</dependency>
</dependencies>
关于eclipse - 使用 Maven 将 JAR 文件添加到 Eclipse 中的项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50149927/