Maven/Eclipse: Could not find any META-INF/persistence.xml file in the classpath

后端 未结 2 723
难免孤独
难免孤独 2020-12-20 12:52

I know there are other questions on SO about this issue, but none of the solutions have worked for me. I\'m using maven to build a java project in eclipse, and I have my per

2条回答
  •  天涯浪人
    2020-12-20 13:25

    I put a exclude and the maven stopped to put the persistence.xml. I had to use brutal force to fix:

        
            
            
                src/main/resources/CATALINA_HOME/conf
                
                    log4j.properties
                    jpa_stocks.properties
                
            
            
            
                src/main/resources/META-INF
                META-INF
                
                    persistence.xml
                
            
        
    

提交回复
热议问题