IntelliJ IDEA and Maven: M2_HOME trouble
转自:http://richardlog.com/post/12118330250/intellij-idea-and-maven-m2-home-trouble
There’s an annoying issue when using Maven from IntelliJ IDEA on OSX. You might encounter the following error when building a Maven project.
No valid Maven installation found. Either set the home directory in the configuration dialog or set the M2_HOME environment variable on your system.
The issue is well known and there are various solutions to the problem. The trouble with some is they apply to old versions of OSX, specifically Leopard. If your running Snow Leopard or higher you don’t need to alter your launchd configuration. The following will suffice:
1) Check you Maven home directory.
2) Create the following file in ~/.MacOSX/environment.plist.
{ "M2_HOME"="/usr/share/maven"; M2="/usr/share/maven/bin"; }
3) Make sure you enter the correct path as shown in the Maven version info.
4) Reboot your system (I know it’s annoying).
Now you should have no problem starting Maven builds from IDEA.
相关推荐
IntelliJ IDEA是java编程语言开发的集成环境,不过官方是英文版的,这是一个汉化包,下载后放至IntelliJ IDEA安装目录的lib目录下就行,重新启动程序就是中文了。
IntelliJIDEA_2019.1_r1汉化包。使用说明:将 resources_zh_CN_*.jar ,放到软件安装路径下的 lib 目录中,重启软件即可 注意是 lib 不是 bin
这是一个简单的 springboot+mybatis+mysql 的搭建项目,可以直接用,SpringbootdemoApplication 直接运行 运行环境 jdk8+mysql+IntelliJ IDEA+maven
resources_cn_IntelliJIDEA_2017.3.1_r2.jar resources_cn_IntelliJIDEA_2017.3.2_r1.jar resources_cn_IntelliJIDEA_2017.3.3_r2.jar resources_cn_IntelliJIDEA_2017.3.4_r1.jar resources_...
IntelliJ Idea下Maven插件使用技巧 标签:Idea Maven IntelliJ Idea下Maven插件使用技巧,对于开发人员快速上手,并可能有效提高开发效率,特将此整理分享给大家。
教你应用Intellij idea高效的建立java工程,并使用idea高效开发。
IntelliJ IDEA2019最新版可用中文汉化包. 使用非常简单. Windows系统使用方法 直接拖到软件安装目录的 Lib文件夹即可 是lib 不是bin 苹果电脑方法 打开应用程序,鼠标移动到软件图标上 右键显示包内容进入文件夹...
IntelliJ IDEA 使用教程 IntelliJ IDEA(简称 IDEA),是 Java 语言开发的集成环境,IDEA 在业界被公认为最好的 Java 开发工具之一,尤其在智能代码助手、代码自动提示、重构、J2EE 支持、各类版本工具(Git、SVN、...
JavaFX 13 与maven的结合教程,运行在Intellij Idea平台上
好用的IntelliJ IDEA ChatGPT插件:NexChatGPT.zip
右键打开文件位置,找到lib 目录, 直接将下载的 resources_cn.jar 复制到.\IntelliJ IDEA\lib 目录即可。
..
本文档使用图文方式讲解了使用IntelliJ IDEA 12创建Maven管理的JavaEE Web项目的过程。还讲解了Tomcat6服务器的配置方法
IntelliJ IDEA 2021Maven+SpringBoot项目基本框架
Intellij IDEA 与maven 版本不符 Unable to import maven project See logs for details: No implementation for org.apache.maven.model.path.PathTranslator was bound