亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

VS Code 上的 Java Azure Function,如何引用和使用外部 jar 庫

VS Code 上的 Java Azure Function,如何引用和使用外部 jar 庫

qq_花開花謝_0 2022-07-20 16:08:08
我在 Java 中創建了我的第一個 Azure 函數,因為我需要使用特定的外部 jar 文件。我在 VS Code 中工作,我在文檔中找到了關于使用外部庫的簡短參考。第三方庫。但是我沒有讓導入工作。如果有一個使用外部庫的 VS Code Java Azure Functions 項目的示例或更詳細的分步文檔,那就太好了。
查看完整描述

1 回答

?
GCT1015

TA貢獻1827條經驗 獲得超4個贊

在 maven 項目中,所有依賴項都由 pom.xml 處理。我們可以使用 maven 存儲庫來下載依賴項,也可以從本地目錄添加它。以下可以將 jar 安裝到本地 maven 存儲庫。


參考資料: http ://maven.apache.org/general.html#importing-jars https://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html


mvn install:install-file

  -Dfile=<path-to-file>

  -DgroupId=<group-id>

  -DartifactId=<artifact-id>

  -Dversion=<version>

  -Dpackaging=<packaging>

  -DgeneratePom=true


Where: <path-to-file>  the path to the file to load

       <group-id>      the group that the file should be registered under

       <artifact-id>   the artifact name for the file

       <version>       the version of the file

       <packaging>     the packaging of the file e.g. jar


查看完整回答
反對 回復 2022-07-20
  • 1 回答
  • 0 關注
  • 167 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號