Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maven Packages Repository: deploy:deploy-file #20666

Closed
init-rz opened this issue Aug 4, 2022 · 2 comments · Fixed by #20691
Closed

Maven Packages Repository: deploy:deploy-file #20666

init-rz opened this issue Aug 4, 2022 · 2 comments · Fixed by #20691
Labels
topic/packages type/docs This PR mainly updates/creates documentation

Comments

@init-rz
Copy link

init-rz commented 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

@init-rz init-rz added type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first. labels Aug 4, 2022
@KN4CK3R
Copy link
Member

KN4CK3R commented 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.

@init-rz
Copy link
Author

init-rz commented Aug 5, 2022

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

@lunny lunny added type/docs This PR mainly updates/creates documentation and removed type/proposal The new feature has not been accepted yet but needs to be discussed first. type/feature Completely new functionality. Can only be merged if feature freeze is not active. labels Aug 5, 2022
@lunny lunny modified the milestone: 1.17.1 Aug 7, 2022
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
topic/packages type/docs This PR mainly updates/creates documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants