Eclipse中的Maven项目报Unbound classpath variable错误
maven
Maven: Apache Maven是一个开源的项目管理和构建工具,主要用于Java项目。适合需要自动化项目构建和依赖管理的开发者。特点包括约定优于配置、易于使用和社区驱动。
项目地址:https://gitcode.com/gh_mirrors/ma/maven

·
今天更新了最新版的Eclipse luna 4.4版本,svn更新了项目后,系统一直报错,经查看在Problems窗口中发现一堆错误,提示如下:
Unbound classpath variable: 'M2_REPO/aopalliance/aopalliance/1.0/aopalliance‘ ...
经过查看是Eclipse不识别M2_REPO这个参数,其实这些jar包都下载到了本地repository中,只要在Eclipse->Windows->Preferences->java->Build Path->Classpath Variables 中添加参数“M2_REPO”,属性选择“folder”,指向“C:\Users\Administrator\.m2\repository”保存,ok,问题解决了╮(╯▽╰)╭




Maven: Apache Maven是一个开源的项目管理和构建工具,主要用于Java项目。适合需要自动化项目构建和依赖管理的开发者。特点包括约定优于配置、易于使用和社区驱动。
最近提交(Master分支:19 天前 )
1749a5f1
Initial step was not cached, so m-wrapper-p and Maven distro was always pulled from MC.
Changes:
* using Mimir 0.9.3
* centralized Mimir config
* using provided infusers
After this, ~there is only one thing not cached: Mimir extension itself~ not anymore :wink:
1 天前
1fc19723
* Build project by JDK 25
* Disable MavenIT0009GoalConfigurationTest on windows with JDK25
1 天前
更多推荐
所有评论(0)