在eclipse 空白处点击鼠标右键选择新建 project
选择maven project:
选择Create a simple project
Group ID:
Artifact ID:创建项目的名称
Packaging:选择jar
生成的MAVEN 工程
编辑POM文件添加依赖的Jar包
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com</groupId>
<artifactId>MyProject</artifactId>
<version>0.0.1-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aop</artifactId>
<version>4.0.2.RELEASE</version>
</dependency>
</dependencies>
</project>
时间: 2024-10-19 21:05:31