每次从SVN更新代码后,尽管在eclipse中refresh过了,在看代码的过程中,用open declaration的时候,总是提示out of build path。不能正确的找到代码之间的关系了。删除project后,重新导入恢复正常。
解决方法是:
1,Install Subclipse see here: http://subclipse.tigris.org/servlets/ProjectProcess?pageID=p4wYuA
2,Then install, m2eclipse and m2eclipse extras as mentioned here: http://m2eclipse.sonatype.org/installing-m2eclipse.html
3,After, 删除自己已有的项目后:
- Open Eclipse go to
Window > Open Perspective > Other... > SVN Repository Exploring
- Add URL to SVN repository/code base.
- Select a project. Right Click and select
Checkout as Maven Project
. You're done.
Now, update, commit, delete, build all from inside Eclipse.
所以就不存在从外部更新代码,然后eclipse build时有问题了。
不明白哪写的过于简单了。。。