XCode mvn: No such file or directory

◇◆丶佛笑我妖孽 提交于 2019-12-12 01:55:37

问题


I have installed Maven on my Mac OSX Yosemite, maven -version on terminal displays the version. Initially I tried with brew even that was successful but it did not resolve the issue in XCode. I am new to Mac OSX as well as XCode, so please step by step guide is much appreciated. I am not sure if any plugin is required to build the project

Building j2objc annotations
mvn generate-resources dependency:sources
make[1]: mvn: No such file or directory
make[1]: *** [/Users/salmansiddiqui/Documents/xcode/j2objc-0.9.4/java_deps/build_result/.maven_generate] Error 1
make: *** [java_deps_dist] Error 2
make: *** Waiting for unfinished jobs....

回答1:


Wherever brew put the mvn executable, that path needs to be added to your PATH environment variable. Here is a StackOverflow answer that should help: How to modify PATH for Homebrew?. You'll probably need to log out and back in for the new path to be included. To verify your paths are set up correctly, in a Terminal window run "mvn -v", which displays the version and installation information. The j2objc build should work once "mvn -v" works.



来源:https://stackoverflow.com/questions/27436437/xcode-mvn-no-such-file-or-directory

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!