• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

No persistence provider for EntityManager for Hibernate in Maven

 
Josh Borg
Ranch Hand
Posts: 37
Chrome Eclipse IDE Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting this error:
Exception in thread "main" javax.persistence.PersistenceException: No Persistence provider for EntityManager named tarefas at
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:61)


My jars is okay, as you can seem in the pom.xml

My main class:



pom.xml

  
persistence.xml


It may be the position of the pom.xml file in the wrong location?

Image:


Thanks.
 
Josh Borg
Ranch Hand
Posts: 37
Chrome Eclipse IDE Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Image link: http://i.stack.imgur.com/H3M9L.png
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic