[JBoss AS7 ] Hibernate Vallidator Using Meaven
July 18, 2011

Dear *,
Well, in the case like me you would like to use Hybernate validator in you JBoss AS 7 with Maven.
Then open you pom.xml and add the following stanzas in corresponding parent tags :
<pluginRepositories>
……………………..
<pluginRepository>
<id>jboss-public-repository-group</id>
<name>JBoss Group Repository</name>
<url>http://repository.jboss.org/nexus/content/groups/public-jboss/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
AND
<dependencyManagement>
<dependencies>
…………………………..
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.2</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>2.1.12</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>4.2.0.Final</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>
BR
Frederic