[hibernate-issues] [Hibernate-JIRA] Commented: (HV-191) JPA 2 Dependency

Hardy Ferentschik (JIRA) noreply at atlassian.com
Mon Aug 17 09:56:15 EDT 2009


    [ http://opensource.atlassian.com/projects/hibernate/browse/HV-191?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=33780#action_33780 ] 

Hardy Ferentschik commented on HV-191:
--------------------------------------

The dependency to JPA is optional. The spec specifies the integration with JPA 2, hence the dependency. Due to licensing issues we have to use our own version of the persistence API. We have also done this for JPA 1.

Of course you can use Validator also with JPA 1. It seems your tests are actually working. Why 'mvn site' is not working I cannot say. It seems to be that this is a maven problem.

> JPA 2 Dependency
> ----------------
>
>                 Key: HV-191
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HV-191
>             Project: Hibernate Validator
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 4.0.0.Beta2
>            Reporter: Stephan Bublava
>
> Hibernate Validator 4 Beta 2 depends on JPA 2. It would be great, if it remained compatible with version 1.
> In addition the dependency is declared a using non-standard group and package name:
> <groupId>org.hibernate.java-persistence</groupId>
> <artifactId>jpa-api</artifactId>
> instead of:
> <groupId>javax.persistence</groupId>
> <artifactId>persistence-api</artifactId>
> Somehow this breaks my build  - "mvn test" works, but "mvn site" fails with java.lang.NoSuchMethodError: javax.persistence.Persistence.getPersistenceUtil()

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list