# maven项目创建
### 1.创建maven项目
### 2.配置pom.xml
```java
<!--命名包名及版本-->
<groupId>com.wenshi.openapi</groupId>
<artifactId>openapi</artifactId>
<version>0.0.1-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>epii.base</groupId>
<artifactId>http</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<!--加载工具包@test类使用-->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
</dependency>
</dependencies>
<!--编译生成路径-->
<distributionManagement>
<repository>
<id>openapi_git</id>
<url>file://D:/myinstall/java/git/maven/</url>
</repository>
</distributionManagement>
```
### 3.项目编译(常用命令)
mvn clean
mvn compile
mvn deploy
mvn install