File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes Maven wont compile annotations? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Spring
Reply Bookmark "Maven wont compile annotations?" Watch "Maven wont compile annotations?" New topic
Author

Maven wont compile annotations?

Bo Branzell
Greenhorn

Joined: Jan 22, 2009
Posts: 3
Hi there!

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).

We have the compiler plugin as shown below:



Anyone have a clue as to what is missing?

Regards
Baue
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 16624

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.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
IntelliJ Java IDE
 
subject: Maven wont compile annotations?
 
Threads others viewed
Could not resolve dependencies for maven project
maven java:compile
emma-maven-plugin - filter excludes
Why is Maven using the wrong JDK?
Spring Major version '3' expected
IntelliJ Java IDE