Need to compile code that imports JSR-303 javax.validation.*? Blog
One
of my side-jobs at Sun is shepherding JSR-303 into Glassfish. Because
JSR-303 spec lead does such a fantastic job leading the spec, and
JSR-303 RI lead Hardy Ferentschik does such a fantastic job implementing
it, it's pretty easy. My boss requested I write up a Wiki page
describing the integration work, which can be seen here. The most useful part, of course, is the fact that Glassfish V3 Preview has full support for version 1.0.CR2 of Bean Validation. If are using Glassfish V3 Preview, and you have code that depends on javax.validation
classes, you can use this maven repository information to satisfy your compile time dependencies.
- Repository http://download.java.net/maven/2/
- Put this in your <dependencies> section
<dependency> <groupId>org.glassfish</groupId> <artifactId>bean-validator</artifactId> <version>3.0-JBoss-4.0.0.Beta1-b01</version> <scope>provided</scope> </dependency>
JSR-314 EG Member Dan Allen contributed a simple demo to the Mojarra project, the source code for which can be checked out from svn url <https://mojarra.dev.java.net/svn/mojarra/trunk/jsf-demo/bean-validator>. This demo depends on the version of JSF included with GlassfishV3 preview.
Technorati Tags: edburns