I have a Spring3.1/Hibernate3 project where the app-context is built by annotating classes + component scanning. Everything works fine when I build it with eclipse, but having built it with maven it seems the annotations are overlooked (nothing is injected, services are null, etc).
If Annotations didn't compile, then you would get a compile time error when building, nothing related to runtime about it.
So that isn't your issue, it is something different. But we can't tell because you haven't posted any exceptions or any configuration or code to start up Spring for us to see why you might not be getting injection done at runtime.