Maven Packages Repository: deploy:deploy-file #9344

Closed
opened 2025-11-02 08:36:00 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @init-rz on GitHub (Aug 4, 2022).

Feature Description

mvn deploy works as expected.
however trying to execute "mvn deploy:deploy-file xxxx"
returns an error: "authentication failed for http://xxx"

since the docs state that deploy is implemented, i assume that deploy: deploy-file is not supported

it would be very helpful if we were able to deploy third party packages to the repo.

Screenshots

No response

Originally created by @init-rz on GitHub (Aug 4, 2022). ### Feature Description mvn deploy works as expected. however trying to execute "mvn deploy:deploy-file xxxx" returns an error: "authentication failed for http://xxx" since the docs state that deploy is implemented, i assume that deploy: deploy-file is not supported it would be very helpful if we were able to deploy third party packages to the repo. ### Screenshots _No response_
GiteaMirror added the topic/packagestype/docs labels 2025-11-02 08:36:00 -06:00
Author
Owner

@KN4CK3R commented on GitHub (Aug 4, 2022):

Works already:

mvn deploy:deploy-file -Durl=http://localhost:3000/api/packages/KN4CK3R/maven -DrepositoryId=gitea -Dfile=/csv-0.2.2.jar -DpomFile=/csv-0.2.2.pom
[INFO] Scanning for projects...
[INFO] 
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] 
[INFO] --- maven-deploy-plugin:2.7:deploy-file (default-cli) @ standalone-pom ---
Uploading to remote-repository: http://localhost:3000/api/packages/KN4CK3R/maven/com/test/csv/0.2.2/csv-0.2.2.jar
Uploaded to remote-repository: http://localhost:3000/api/packages/KN4CK3R/maven/com/test/csv/0.2.2/csv-0.2.2.jar (5.4 kB at 12 kB/s)
Uploading to remote-repository: http://localhost:3000/api/packages/KN4CK3R/maven/com/test/csv/0.2.2/csv-0.2.2.pom
Uploaded to remote-repository: http://localhost:3000/api/packages/KN4CK3R/maven/com/test/csv/0.2.2/csv-0.2.2.pom (1.9 kB at 19 kB/s)
Downloading from remote-repository: http://localhost:3000/api/packages/KN4CK3R/maven/com/test/csv/maven-metadata.xml
Downloaded from remote-repository: http://localhost:3000/api/packages/KN4CK3R/maven/com/test/csv/maven-metadata.xml (264 B at 4.9 kB/s)
Uploading to remote-repository: http://localhost:3000/api/packages/KN4CK3R/maven/com/test/csv/maven-metadata.xml
Uploaded to remote-repository: http://localhost:3000/api/packages/KN4CK3R/maven/com/test/csv/maven-metadata.xml (0 B at 0 B/s)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.585 s
[INFO] Finished at: 2022-08-04T20:44:33Z
[INFO] ------------------------------------------------------------------------

I think you forgot -DrepositoryId=gitea or how you named the repository in your settings.xml.

@KN4CK3R commented on GitHub (Aug 4, 2022): Works already: ``` mvn deploy:deploy-file -Durl=http://localhost:3000/api/packages/KN4CK3R/maven -DrepositoryId=gitea -Dfile=/csv-0.2.2.jar -DpomFile=/csv-0.2.2.pom [INFO] Scanning for projects... [INFO] [INFO] ------------------< org.apache.maven:standalone-pom >------------------- [INFO] Building Maven Stub Project (No POM) 1 [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- maven-deploy-plugin:2.7:deploy-file (default-cli) @ standalone-pom --- Uploading to remote-repository: http://localhost:3000/api/packages/KN4CK3R/maven/com/test/csv/0.2.2/csv-0.2.2.jar Uploaded to remote-repository: http://localhost:3000/api/packages/KN4CK3R/maven/com/test/csv/0.2.2/csv-0.2.2.jar (5.4 kB at 12 kB/s) Uploading to remote-repository: http://localhost:3000/api/packages/KN4CK3R/maven/com/test/csv/0.2.2/csv-0.2.2.pom Uploaded to remote-repository: http://localhost:3000/api/packages/KN4CK3R/maven/com/test/csv/0.2.2/csv-0.2.2.pom (1.9 kB at 19 kB/s) Downloading from remote-repository: http://localhost:3000/api/packages/KN4CK3R/maven/com/test/csv/maven-metadata.xml Downloaded from remote-repository: http://localhost:3000/api/packages/KN4CK3R/maven/com/test/csv/maven-metadata.xml (264 B at 4.9 kB/s) Uploading to remote-repository: http://localhost:3000/api/packages/KN4CK3R/maven/com/test/csv/maven-metadata.xml Uploaded to remote-repository: http://localhost:3000/api/packages/KN4CK3R/maven/com/test/csv/maven-metadata.xml (0 B at 0 B/s) [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.585 s [INFO] Finished at: 2022-08-04T20:44:33Z [INFO] ------------------------------------------------------------------------ ``` I think you forgot `-DrepositoryId=gitea` or how you named the repository in your settings.xml.
Author
Owner

@init-rz commented on GitHub (Aug 5, 2022):

thanks for the fast response.
i confirm, it works, -DrepositoryId was missing.
suggestion: add above as example to the documentation.

@init-rz commented on GitHub (Aug 5, 2022): thanks for the fast response. i confirm, it works, -DrepositoryId was missing. suggestion: add above as example to the documentation.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#9344