# 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