[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&gt;
<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>

Ref : http://docs.jboss.org/hibernate/validator/4.2/reference/en-US/html_single/#validator-gettingstarted-createproject

BR
Frederic😉

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: