maven打包提示-Dmaven.multiModuleProjectDirectory system property is not set. Check $M2_HOME environme...

maven打包时提示-Dmaven.multiModuleProjectDirectory system property is not set. Check $M2_HOME environment variable  and mvn script match.    

解决办法:添加m2_home的环境变量

如下图操作,window-->preferences-->java-->installed jres-->选择一个jdk-->edit--> 

添加m2_home的环境变量:-Dmaven.multiModuleProjectDirectory=$M2_HOME


你可能感兴趣的:(maven打包提示-Dmaven.multiModuleProjectDirectory system property is not set. Check $M2_HOME environme...)