I have the maven quickstart project, there is no meta-inf folder or properties in it. How to add persistance.xml file to it?

Closed due to the fact that the essence of the question is incomprehensible by the participants Roman C , LFC , 0xdb , Andrew Goroshko , freim on 8 Mar at 7:51 .

Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • What is the first stage? - Roman C
  • So how to throw? - Maybe Programmer
  • I would not bother with it at all. - Roman C

1 answer 1

Use the maven archetype of the webapp project.

You can use this command to create:

 mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-webapp -DarchetypeVersion=1.4 

The quickstart archetype by default does not provide for a project structure in which there will be META-INF folders and others for building a web application.

You can also familiarize yourself with a similar problem in an already existing question .