From 76237967d691b6eb75460c80741aa15db4d93cd3 Mon Sep 17 00:00:00 2001
From: Marek Goldmann <mgoldman@redhat.com>
Date: Wed, 22 Aug 2012 11:23:43 +0200
Subject: [PATCH] [fedora] Add jtype dependency to hibernate-validator to fix
the java.lang.NoClassDefFoundError: com/googlecode/jtype/TypeUtils exception
---
build/build.xml | 4 +++
build/pom.xml | 5 ++++
.../modules/com/googlecode/jtype/main/module.xml | 32 ++++++++++++++++++++++
.../org/hibernate/validator/main/module.xml | 1 +
pom.xml | 7 +++++
5 files changed, 49 insertions(+)
create mode 100644 build/src/main/resources/modules/com/googlecode/jtype/main/module.xml
diff --git a/build/build.xml b/build/build.xml
index 844e4d0..78cb0ec 100644
--- a/build/build.xml
+++ b/build/build.xml
@@ -309,6 +309,10 @@
<maven-resource group="com.google.guava" artifact="guava" />
</module-def>
+ <module-def name="com.googlecode.jtype">
+ <maven-resource group="com.googlecode.jtype" artifact="jtype" />
+ </module-def>
+
<module-def name="com.h2database.h2">
<maven-resource group="com.h2database" artifact="h2"/>
</module-def>
diff --git a/build/pom.xml b/build/pom.xml
index a3af398..2ccc648 100644
--- a/build/pom.xml
+++ b/build/pom.xml
@@ -223,6 +223,11 @@
</dependency>
<dependency>
+ <groupId>com.googlecode.jtype</groupId>
+ <artifactId>jtype</artifactId>
+ </dependency>
+
+ <dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-impl</artifactId>
</dependency>
diff --git a/build/src/main/resources/modules/com/googlecode/jtype/main/module.xml b/build/src/main/resources/modules/com/googlecode/jtype/main/module.xml
new file mode 100644
index 0000000..4807d1d
--- /dev/null
+++ b/build/src/main/resources/modules/com/googlecode/jtype/main/module.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ ~ JBoss, Home of Professional Open Source.
+ ~ Copyright 2010, Red Hat, Inc., and individual contributors
+ ~ as indicated by the @author tags. See the copyright.txt file in the
+ ~ distribution for a full listing of individual contributors.
+ ~
+ ~ This is free software; you can redistribute it and/or modify it
+ ~ under the terms of the GNU Lesser General Public License as
+ ~ published by the Free Software Foundation; either version 2.1 of
+ ~ the License, or (at your option) any later version.
+ ~
+ ~ This software is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ ~ Lesser General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU Lesser General Public
+ ~ License along with this software; if not, write to the Free
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ -->
+
+<module xmlns="urn:jboss:module:1.1" name="com.googlecode.jtype">
+ <resources>
+ <!-- Insert resources here -->
+ </resources>
+
+ <dependencies>
+ </dependencies>
+</module>
diff --git a/build/src/main/resources/modules/org/hibernate/validator/main/module.xml b/build/src/main/resources/modules/org/hibernate/validator/main/module.xml
index 744d153..77b8c99 100644
--- a/build/src/main/resources/modules/org/hibernate/validator/main/module.xml
+++ b/build/src/main/resources/modules/org/hibernate/validator/main/module.xml
@@ -28,6 +28,7 @@
</resources>
<dependencies>
+ <module name="com.googlecode.jtype"/>
<module name="javax.api"/>
<module name="javax.persistence.api"/>
<module name="javax.validation.api"/>
diff --git a/pom.xml b/pom.xml
index b131778..c3d3169 100644
--- a/pom.xml
+++ b/pom.xml
@@ -86,6 +86,7 @@
<version.commons-lang>2.6</version.commons-lang>
<version.commons-pool>1.5.6</version.commons-pool>
<version.com.google.guava>11.0.2</version.com.google.guava>
+ <version.com.googlecode.jtype>0.1.1</version.com.googlecode.jtype>
<version.com.h2database>1.3.161</version.com.h2database>
<version.dom4j>1.6.1</version.dom4j>
<version.gnu.getopt>1.0.13</version.gnu.getopt>
@@ -1173,6 +1174,12 @@
</dependency>
<dependency>
+ <groupId>com.googlecode.jtype</groupId>
+ <artifactId>jtype</artifactId>
+ <version>${version.com.googlecode.jtype}</version>
+ </dependency>
+
+ <dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-impl</artifactId>
<version>${version.javax.faces.jsf-impl}</version>