[英]Eclipse considers “src” to be a part of the package name after importing existing project
I have imported an Eclipse (Mars) project on another Computer with the latest version of Eclipse. 我已经在另一台装有最新版本Eclipse的计算机上导入了一个Eclipse(火星)项目。 Now Eclipse considers the
/src/
folder as a part of the package name. 现在,Eclipse将
/src/
文件夹视为软件包名称的一部分。 Eg src.org.domain.subdomain
instead of org.domain.subdomain
. 例如
src.org.domain.subdomain
而不是org.domain.subdomain
。
I can rename the package, removing src
but then Eclipse will actually move the folder to the root folder, but I want the source to stay in src
. 我可以重命名该软件包,删除
src
但是Eclipse实际上会将文件夹移动到根文件夹,但是我希望源代码保留在src
。
Is there a way to fix this? 有没有办法解决这个问题? How does Eclipse determine what the root folder of the source is, is it possible to set this manually?
Eclipse如何确定源的根文件夹是什么,是否可以手动设置? Has this behavior changed from Mars to the latest version?
此行为是否已从火星更改为最新版本?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.