I faced a weired problem.

I create a new project with appfuse-basic-struts.

and after i executed

mvn appfuse:full-source
mvn clean
mvn eclipse:eclipse

and import the project into my eclipse, 
there is an compile error in line85 of class UserDaoHibernate: 

        Table table = AnnotationUtils.findAnnotation(User.class, Table.class);

the error message is :

The method findAnnotation(Method, Class<A>) in the type AnnotationUtils is not 
applicable for the arguments (Class<User>, Class<Table>) 

I found that the project was using spring-core-2.0.5.jar as it's dependency, 
and i think it
is the reason resulting in the error.

actually, when i skip 
mvn appfuse:full-source

the project works fine, and the version of the spring attached to the project 
is 2.5.

so , it seems that full-source goal makes the diffrence . 
but how ? 

and how to solve the problem ?


any suggestions will be great appreciated !!!


        chinofish
[EMAIL PROTECTED]
          2008-01-24

Reply via email to