Community
Participate
Working Groups
I had a stock XText project in my workspace and in a runtime workbench I tried to experiment with an xtend generator, so I copied the example generator into the runtime workspace. The XYZGenerator.xtend then showed the error: The declared package 'x.y.z' does not match the expected package First, it would be very nice if the message shows *what* package was actually expected. In my case however, the class was in the correct package in a valid source folder. So the message actually gave no clue to what was wrong. It turns out the *only* way to get rid of the error: rename the class. It *seems* that the tool was trying to tell me that this is a duplicate class (because the version from the first workspace is in scope, too). After all, why can't a local xtend class have the same qualified name as one visible via a plug-in dependency?
Thanks for your description. Even if I call maven without clean the error appears. Perhaps because the class is inside the xtend-gen and inside the temporary folder.
I cannot reproduce this one. Please reopen if it still happens and provide the steps needed to reproduce.
Requested via bug 522520. -M.