1. 程式人生 > >The plugin net.alchim31.maven:scala-maven-plugin:3.1.6 requires Maven version 3.0.4

The plugin net.alchim31.maven:scala-maven-plugin:3.1.6 requires Maven version 3.0.4

eclipse build project的時候遇到的問題。

15-6-29 下午03時38分29秒: Build errors for algbase; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.1.6:add-source (compile-scala) on project AlgBase: The plugin net.alchim31.maven:scala-maven-plugin:3.1.6 requires Maven version 3.0.4

然後google了下:

https://www.gotosearch.info/?gws_rd=cr#safe=strict&q=maven+build+error+scala-maven-plugin:3.1.6+requires+Maven+version+3.0.4

http://stackoverflow.com/questions/21144287/what-version-of-maven-is-heroku-using

沒有發現解決的方法,於是用了老方法

命令列在專案根目錄下,mvn eclipse:eclipse

然後enable maven dependencies

ok,只是每次eclipse clean project的時候還是會報erro,不過run maven install 什麼的都沒有問題了。。。

ballache