You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by David Bernard <Da...@intact.net> on 2011/12/01 23:32:11 UTC

BUILD FAILURE : FactoryBean does not take parameters


Hi,

Someone have an idea why maven is not able to compile the code using
generic java 1.5.

ValueDomainServiceFactory is the class that contains the generic code.

see below the commands for the compilation:

In order:

mvn version
mvn help:effective-pom
mvn clean
mvn compile

The file -ValueDomainServiceFactory.java- contain the code where maven
gives an error:
ValueDomainServiceFactory.java:[24,61] type
org.springframework.beans.factory.FactoryBean does not take parameters


(See attached file: effective-pom.txt)(See attached file: mvn version.txt)
(See attached file: mvn-clean.txt)(See attached file: mvn-compile.txt)(See
attached file: ValueDomainServiceFactory.java)

--------------------------------------------------
David Bernard
Intact Corporation Financi�re
Int�grateur / integrator
T: 514-495-6370, poste 60699
F: 514-493-9636
C: david.bernard@intact.net

Ce messsage et toutes les pi�ces jointes qu'il contient sont confidentiels
et �tablis � l'intention exclusive des ses destinataires. Si vous recevez
ce message par erreur, veuillez en avertir imm�diatement l'exp�diteur et le
supprimer. Toute autre utilisation , divulgation, diffusion ou reproduction
de ce message est strictement interdite.

Pensez � l'environnement avant d'imprimer ce message.

Re: BUILD FAILURE : FactoryBean does not take parameters

Posted by Wayne Fay <wa...@gmail.com>.
> The file -ValueDomainServiceFactory.java- contain the code where maven
> gives an error:
> ValueDomainServiceFactory.java:[24,61] type
> org.springframework.beans.factory.FactoryBean does not take parameters

The Maven compiler plugin simply reaches out to javac and uses it
directly to compile your code. So this is an error message coming from
javac, not Maven. You need to adjust your code so the compiler does
not give this error.

> (See attached file: effective-pom.txt)(See attached file: mvn version.txt)
> (See attached file: mvn-clean.txt)(See attached file: mvn-compile.txt)(See
> attached file: ValueDomainServiceFactory.java)

This mail list strips attachments. Please post your code at
www.pastebin.com or a similar site if you want to share something.

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org