gitea
gitea copied to clipboard
Maven Packages Repository: deploy:deploy-file
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
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.
thanks for the fast response. i confirm, it works, -DrepositoryId was missing. suggestion: add above as example to the documentation.