簡體   English   中英

在 eclipse 中找不到 mvn 命令,但在終端上有效

[英]mvn command not found in eclipse but works on terminal

在 eclipse 中找不到 mvn 命令,但可以在 mac 終端上使用。 我必須在哪里為 eclipse 設置 Maven 的路徑。 嘗試了谷歌的文章,但沒有運氣。

Eclipse 包括 maven 的嵌入式版本。 我建議不要使用它,而是參考你環境中安裝的版本。 From eclipse -> windows -> preferences -> Maven -> Installations -> add: insert the path of your installed maven. 標記它。 (not the embedded.).Then you can go to Maven -> User settings and enter the path to the settings.xml of your installed maven. 然后您可以右鍵單擊項目 -> maven -> 更新項目或運行為 -> maven.. 使用相同的 maven 安裝終端執行任務。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM