简体   繁体   English

无法从SVN储存库运行项目

[英]Cannot run project from SVN repository

I've never worked with SVN-repositories before. 我以前从未使用过SVN存储库。
My co-worker gave me access to his repository, I downloaded the SVN plugin for eclipse, established a connection and checked out the java project. 我的同事让我可以访问他的存储库,我下载了Eclipse的SVN插件,建立了连接并签出了Java项目。 It's now locally available, but unfortunately it's not possible to run it. 现在可以在本地使用,但是不幸的是无法运行它。
I have the feeling, that Eclipse doesn't recognize this project. 我觉得Eclipse无法识别这个项目。 My other Java project are of course executable. 我的其他Java项目当然是可执行的。

These are the project properties of my random test Java project: 这些是我的随机测试Java项目的项目属性:
在此处输入图片说明

And these are the project properties of the checked out project. 这些是已签出项目的项目属性。 As you can see, some attributes (eg Java) are missing: 如您所见,缺少某些属性(例如Java):
在此处输入图片说明

Also the project name has a strange additional character: 此外,项目名称还有一个奇怪的附加字符:

"> software" “>软件”

When I try to add a run configuration, I only can choose my random test project: 当我尝试添加运行配置时,只能选择随机测试项目: 在此处输入图片说明

PS: The SVN project works with Maven dependencies. PS:SVN项目可与Maven依赖项一起使用。 I've installed Apache Maven 3.2.1 and the m2e plugin and linked the directory with Eclipse: 我已经安装了Apache Maven 3.2.1和m2e插件,并将目录与Eclipse链接在一起: 在此处输入图片说明

Could Maven be the problem? Maven可能是问题吗?
Thank you! 谢谢!

Try to check the .project file and the .classpath file... 尝试检查.project文件和.classpath文件...

Those file tells to Eclipse the kind and the structure of the project... 这些文件告诉Eclipse项目的类型和结构。

So if they are missing this could cause a lot of problems... 因此,如果他们错过了,可能会导致很多问题...

Those file will be also generated if you do something like Configure > Convert to Java (like azurefrog tells in comments) 如果您执行“配置”>“转换为Java”之类的操作(例如azurefrog在注释中告知),也会生成这些文件。

Right click on your project> team> disconnect. 右键单击您的项目>团队>断开连接。 Hope so this will help. 希望如此会有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM