[英]how to publishing local .m2 repository all artifacts to jfrog repository
我將JFrog Artifactory升級到最新版本,升級后我看到一些工件丟失,還有pom文件,我仍然將它們放在本地.m2目錄中。 有沒有辦法可以立即將所有這些工件重新發布/部署到遠程Artifactory存儲庫?
使用mvn deploy將工件重新發布/部署到遠程存儲庫。
確保將deploy目錄指向主pom中的遠程存儲庫。
如果要專門上載文件,請使用以下命令
mvn deploy:deploy-file -DpomFile=your pom -Dfile=the jar you want to upload
-Durl=Url of the repository where the artifact need to be uploaded
-DrepositoryId=repository ID
參考文獻:
https://maven.apache.org/plugins/maven-deploy-plugin/usage.html
https://maven.apache.org/guides/mini/guide-3rd-party-jars-remote.html
http://maven.apache.org/plugins/maven-deploy-plugin/examples/deploy-ssh-external.html
https://docs.oracle.com/middleware/1212/core/MAVEN/config_maven.htm#MAVEN314
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.