|Declared package does not match expected package [message #873438]
||Fri, 18 May 2012 04:38
| Stefan Langenmaier
Registered: April 2012
I'm trying to use eclipse for a multi language project. The project structure already exists and is used in a build system. So it would only be possible to change the project structure with great pain. The current setup is similar to the following:
So there is one folder /com/example under which all products reside. The product1 and product2 folders not only have the mentioned sub-folders but also other folders for different source code and miscellaneous stuff. The developers only want to open their specific product where they work on and also the builds are specific to one product. So I created a project in the folder /com/example/product1 but when I specify the sub-folders in product1 as source folder the first line is marked red in eclipse with the error "Declared project does not match expected package". This seems logical as it does not see the root of the packages hierarchy. Is there some way to tell eclipse that it should look above the project? Can this check be ignored somehow?
I hope it is possible to understand my problem.
Thanks in advance
[Updated on: Fri, 18 May 2012 04:39]
Report message to a moderator
|Re: Declared project does not match expected package [message #882859 is a reply to message #874643]
||Thu, 07 June 2012 06:33
| Dani Megert
Registered: July 2009
On 21.05.2012 12:01, Stefan Langenmaier wrote:|
> I'm already experimenting with linked folders and noted the "problem"
> with overlapping into the project. But it looks like it brings me
> I will try to look into your suggestion with the exclusion of source
Note that you can also exclude whole resource trees via resource filters
on a folder. Also, if you have complex structures that you want to map
into an Eclipse project, then virtual folders might be handy.
> Thanks very much for your hints.
Powered by FUDForum
. Page generated in 0.04979 seconds