# 仓库

## 安装到私有仓库

```
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>
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://book.rizon.top/maven/maven-cang-ku.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
