This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

I can make it compile by excluding javax.persistence:ejb, but I figure that it might not be a very good solution in the long run..

Also, our web application does not use Spring or Acegi (yet) and we would like to limit the number of libraries used.
E.g. there is no reason (at least not to my knowledge) why Hibernate and Persistence is needed for validation...
Is it possible to cut down on the dependencies even more?

Comment

the Persistence API dependency is a transitive one and in the IVY file seems to be disabled (even if this works only with IVY 1.4 or higher, if I'm not wrong).

I'll do the same with the POM file, hopefully tomorrow.

Cheers,

Sergio B.

Great. Thank you.

Is there actually an dependency on Hibernate as well? If not, I'd appreciate if that was excluded as well. Especially, since the Hibernate annotations causes some confusing as there are annotations for Hibernate and Valang and many of them with the same name (e.g. @Length).

Regards,
Jimisola

Comment

Is there actually an dependency on Hibernate as well? If not, I'd appreciate if that was excluded as well. Especially, since the Hibernate annotations causes some confusing as there are annotations for Hibernate and Valang and many of them with the same name (e.g. @Length).

I've set the Hibernate-Annotations dependency (and also OGNL and Joda-Time ones) as "provided": this means that if you want to use it, you have to manually copy it in your lib dir.

The Hibernate-Annotations was the one causing transitive dependency towards EJB3 API and Hibernate, so that should solve the problem.

Comment

What exactly do you mean by "update to the 0.7 Spring Modules version and use the POM file in the CVS"? Is 0.7 not deploy for usage by Maven? Perhaps not released at all?

The 0.7 version has been released (http://www.springframework.org/node/388), but it is not in Maven2 repositories, yet.
So I mean just that: download the latest release and install in your maven repo theValidation module jar with the new POM checked out from the CVS.

Comment

The 0.7 version has been released (http://www.springframework.org/node/388), but it is not in Maven2 repositories, yet.
So I mean just that: download the latest release and install in your maven repo theValidation module jar with the new POM checked out from the CVS.

Ok. I might wait for 0.7 to make it to the central repo then.
edit: How long do you think it will take for 0.7 to reach the central repo?

I've voted for it and also added minor comment. I'll add a new issue if it the original issue reporter or team developer feels that they're separate issues. I am very new to Spring and haven't gotten a clear view of it yet, but Spring and Spring Modules seem to hosted at different places. Who's responsible for the infrastructure of Spring Modules?