Ok I just downloaded a fresh new copy of the newest STS (although I noticed this problem exists with older versions as well) and imported some sample code as an existing maven project into STS. The sample code is from the Spring Integration in Action book which I am reading right now (good book btw).
Anyways after importing the project and fixing a couple problems like duplicate dependencies and a missing version for the maven compiler plugin in the root POM the projects build OK, but one module (integration) is exhibiting these annoying red x's (warnings).
You see things like
Description Resource Path Location Type
cvc-complex-type.3.2.2: Attribute 'expression' is not allowed to appear in element 'header'. bookings.xml /integration/src/main/resources line 25 XML Problem
There are 32 such validation errors listed in my problems view.
I read the Sticky in this forum and none of that seems to apply to me being this is a new installation of STS and a new workspace. I did notice that under preferences->bean support -> namespaces I do not see any Spring integration namespaces listed is that a bug?
I do however see the namespaces listed when I open one of the config files using the Spring Config Editor.
To reproduce this just download STS and go and import the sample code as an existing maven project.
The sample code can be found here:
If anyone has any idea how to fix this, I am all ears. I know they are just warnings but all the red makes them look like errors and it drives me nuts. Also content assist obviously does not work for the things in question either which makes it seem like I am misusing them.