> For the complete documentation index, see [llms.txt](https://book.rizon.top/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://book.rizon.top/maven/maven-cang-ku.md).

# 仓库

## 安装到私有仓库

```
mvn deploy:deploy-file\
 -DgroupId=com.example.example -DartifactId=common-utils -Dversion=1.0-SNAPSHOT\
 -Dpackaging=jar -Dfile=common-utils.jar\
 -DrepositoryId=snapshots\
 -Durl=http://127.0.0.1/nexus/content/repositories/snapshots/
```

### 标准的mvn deploy 到仓库

[pom配置之：\<distributionManagement>snapshot快照库和release发布库 - CSDN博客](http://blog.csdn.net/aitangyong/article/details/53332091)

```markup
<distributionManagement>
    <snapshotRepository>
        <id>snapshots</id>
        <name>snapshots</name>
        <url>http://127.0.0.1:8888/nexus/content/repositories/snapshots/</url>
    </snapshotRepository>
</distributionManagement>
```
