I’m trying to generate the archetype “jpa-maven-archetype” from console, but it only throws error messages about a non-existent archetype. I also consulted the list of the avaiable archetypes from mvn archetype:generate and it doesn’t exists any more.
I was trying to auto-generate all entity classes for JPA from a database…do any of you knows about alternatives?
Well, I doubt a Maven archetype would help you there anyway, archetypes are a bunch of predefined files and folders + Velocity templates. A software that can do it needs a database connection, a JDBC driver and advanced logic.
Tools like that exist, but are JPA-provider dependent, so it’s down to what you use. See example references: