diff options
author | KN4CK3R <admin@oldschoolhack.me> | 2022-08-07 15:58:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-07 21:58:03 +0800 |
commit | 64c371a1679982cb3fb17e3b4b986dfcd38d8647 (patch) | |
tree | 950b0c3f8a74f06d01a2239db4fb9d0810a4c34e /docs | |
parent | f55af4675cbcb0170693caaeb5faa7707836de4c (diff) | |
download | gitea-64c371a1679982cb3fb17e3b4b986dfcd38d8647.tar.gz gitea-64c371a1679982cb3fb17e3b4b986dfcd38d8647.zip |
Update maven deploy docs (#20691)
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/content/doc/packages/maven.en-us.md | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/content/doc/packages/maven.en-us.md b/docs/content/doc/packages/maven.en-us.md index 04ee488e49..22da3c16d2 100644 --- a/docs/content/doc/packages/maven.en-us.md +++ b/docs/content/doc/packages/maven.en-us.md @@ -81,6 +81,16 @@ To publish a package simply run: mvn deploy ``` +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): + +```shell +mvn deploy:deploy-file -Durl=https://gitea.example.com/api/packages/{owner}/maven -DrepositoryId=gitea -Dfile=/path/to/package.jar +``` + +| Parameter | Description | +| -------------- | ----------- | +| `owner` | The owner of the package. | + You cannot publish a package if a package of the same name and version already exists. You must delete the existing package first. ## Install a package |