1 Reply Latest reply on Nov 17, 2009 4:18 PM by luxspes

    Compile time dependency to hibernate-validator

      Hi,


      Why is hibernate-validator marked as an optional dependency in the maven pom for Seam 2.0.2.SP1, when in fact there is a compile time dependency to this artifact when using SAF?


      I'm using seam application framework by extendeing EntityHome and EntityQuery(generated from seam-gen/JBossTools) but with no use of functionality from hibernate-validator in my code?


      When adding a dependency to hibernate-validator in my project pom it works fine, but without a dependency i get a compiler error:


      [INFO] Compilation failure
      Failure executing javac, but could not parse the error:
      An exception has occurred in the compiler (1.6.0_13). Please file a bug at the Java Developer Connection (http://java.su
      n.com/webapps/bugreport)  after checking the Bug Parade for duplicates. Include your program and the following diagnosti
      c in your report.  Thank you.
      com.sun.tools.javac.code.Symbol$CompletionFailure: class file for org.hibernate.validator.ClassValidator not found
      
      Failure executing javac, but could not parse the error:
      An exception has occurred in the compiler (1.6.0_13). Please file a bug at the Java Developer Connection (http://java.su
      n.com/webapps/bugreport)  after checking the Bug Parade for duplicates. Include your program and the following diagnosti
      c in your report.  Thank you.
      com.sun.tools.javac.code.Symbol$CompletionFailure: class file for org.hibernate.validator.ClassValidator not found
      



      Environment: Seam 2.0.2.SP1, JDK 1.6.0, Maven 2.0.9