Configurar o hibernate

Boa tarde Pessoal, estou configurar um projeto para utilizar o hibernate , porem estou tendo o seguinte problema

jul 19, 2019 5:39:55 PM org.hibernate.jpa.boot.internal.PersistenceXmlParser doResolve
INFO: HHH000318: Could not find any META-INF/persistence.xml file in the classpath
Exception in thread "main" javax.persistence.PersistenceException: No Persistence provider for EntityManager named meuPU
	at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:85)
	at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:54)
	at com.projeto.repository.Teste.main(Teste.java:14)

Dei uma procurada no forum mas nao localizei uma solucao…

Segue o link do repositorio : https://github.com/Igoralves12/WebErp

Seu projeto não está no padrão maven. O correto seria ter esse arquivo nesse local: src/main/resources/META-INF/persistence.xml

Dê uma lida nisso: Introduction to the Standard Directory Layout

1 curtida

Vc e o cara haha !