Skip to content

Commit 64c371a

Browse files
KN4CK3Rlunny
andauthored
Update maven deploy docs (#20691)
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
1 parent f55af46 commit 64c371a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Diff for: docs/content/doc/packages/maven.en-us.md

+10
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,16 @@ To publish a package simply run:
8181
mvn deploy
8282
```
8383

84+
If you want to publish a prebuild package to the registry, you can use [`mvn deploy:deploy-file`](https://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html):
85+
86+
```shell
87+
mvn deploy:deploy-file -Durl=https://gitea.example.com/api/packages/{owner}/maven -DrepositoryId=gitea -Dfile=/path/to/package.jar
88+
```
89+
90+
| Parameter | Description |
91+
| -------------- | ----------- |
92+
| `owner` | The owner of the package. |
93+
8494
You cannot publish a package if a package of the same name and version already exists. You must delete the existing package first.
8595

8696
## Install a package

0 commit comments

Comments
 (0)