解決-Dmaven.multiModuleProjectDirectory system property is not set. Check $M2_HOME environment...
解決-Dmaven.multiModuleProjectDirectory system property is not set. Check $M2_HOME environment variable and mvn script match的問題。
在MyEclipse中使用maven釋出jar版本時提示如下錯誤資訊:
-Dmaven.multiModuleProjectDirectory system property is not set. Check $M2_HOME environment variable and mvn script match
可以採用如下方法解決:
1、新建Maven環境變數
新建名稱為M2_HOME的環境變數,值為maven的安裝目錄(如D:\Program Files (x86)\apache-maven-3.3.9-bin\apache-maven-3.3.9),如圖
2、配置
點選MyEclipse的Windows----Preferences----Java----Installed JREs。選擇一個已經安裝的jar,並點選Edit。
在彈出的對話方塊中輸入如下資訊,之後點選Finish完成:
-Dmaven.multiModuleProjectDirectory=$M2_HOME
如圖:
相關文章
- contains a file system with errors, check forced解決方法AIError
- Linux 7.0 報錯: Check if the DISPLAY variable is set. FailedLinuxAI
- alter system check datafiles 命令
- Docker 容器中“TERM environment variable not set.”問題解決Docker
- Check_icmp check_host_alive報錯解決方法
- Undefined property: stdClass::$column_name 怎麼解決?Undefined
- [Jenkins]email-ext報No such property的解決方案JenkinsAI
- remount of /system failed: Read-only file system原因及解決REMAI
- Oracle Fusion Middleware Supported System check,jdk,java .etc requirementsOracleJDKJavaUIREM
- 找不到system.web.script解決Web
- Python @property 詳解Python
- WITH CHECK OPTION 詳解
- system表空間爆滿解決方法
- This system is not registered with RHN 解決方案(附表:配置yum)
- 【問題解決】property [elasticsearch.version] is missing for plugin [head]ElasticsearchPlugin
- AVADA提示red system status的解決方法
- wget 命令提示 “use ‘--no-check-certificate’” 臨時解決方法wget
- hive報system:java.io.tmpdir錯誤解決HiveJava
- ORACLE WITH CHECK OPTION子句詳解Oracle
- ORA-01552: cannot use system rollback segment for non-system tablespace 'USERS'錯誤解決
- 解決 Error: ENOSPC: System limit for number of file watchers reachedErrorMIT
- idea:如果String 跟System該怎麼解決Idea
- 解決 Provider 'System.Data.SqlServerCe.3.5' not installed.IDESQLServer
- Myeclipse:resource is out of sync with the file system的解決辦法Eclipse
- 完全解決!android studio更新 check for updates失敗的問題Android
- 轉載:System:System.arraycopy方法詳解
- 解決出現This system is not registered to Red Hat Subscription Management的問題
- 80埠被system(pid=4)佔用的解決方法
- /system/bin/sh: screenrecord: inaccessible or not found 報錯解決方案
- 呼叫System.gc沒有立即執行的解決方法GC
- ORA-00845: MEMORY_TARGET not supported on this system報錯解決
- ORA-00845 MEMORY_TARGET not supported on this system報錯解決
- 解決eclipse中出現Resource is out of sync with the file system問題Eclipse
- Tensorboard打不開(最新解決方案包含No dashboards are active for the current data set.問題)ORB
- 解決Error Initialization failed for ‘https://start.spring.io‘Please check URL, nErrorAIHTTPSpring
- SQL Server 合併複製遇到identity range check報錯的解決SQLServerIDE
- redhat系統伺服器重啟後提示An error occurred during the file system check.Redhat伺服器Error
- 安卓Property Animator動畫詳解(一)-官方文件安卓動畫