Thousand Squared

Posts match “ android ” tag:

OS X Mavericks maven安裝

| Comments

Mavericks 竟然免費安裝!!

但安裝完所有環境也都不見了....0rz

如果有在用 maven 管理android專案的話,也必須重新安裝 maven 啦

最簡單的方法就是用 Homebrew 安裝

brew update
brew install maven

但此時安裝的maven是3.1.1,有點buggy,在跑mvn eclips:eclips 會出現下面的Error

Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.6.0:generate-sources (default-generate-sources) on project appcompat-v7: Execution default-generate-sources of goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.6.0:generate-sources failed: A required class was missing while executing com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.6.0:generate-sources: Lorg/sonatype/aether/RepositorySystem;

這可不行呀!

只好安裝比較stable的 maven 啦

根據以 這篇 的解答

切換到別的repo,重新安裝舊版 maven 即可

brew tap homebrew/versions
brew uninstall maven
brew install maven30

此時安裝的 maven 為Apache Maven 3.0.5,應該就可以正常使用了