ManyDesigns / Portofino

Portofino 5 is the next generation of the open-source low-code web framework Portofino. Its purpose is to help developers create modern, responsive enterprise applications with REST APIs and an Angular UI.
http://portofino.manydesigns.com
Other
180 stars 55 forks source link

.gitignore not included in archetypes #514

Open alessiostalla opened 2 years ago

alessiostalla commented 2 years ago

This is a known Maven bug. The only solution as of now seems to be to manually copy the .gitignore file with a Groovy script.

See https://issues.apache.org/jira/projects/ARCHETYPE/issues/ARCHETYPE-505?filter=allopenissues and https://github.com/itemis/fluffyj-archetype/blob/develop/src/main/resources/META-INF/archetype-post-generate.groovy

alessiostalla commented 2 years ago

Unfortunately, the solution detailed above suffers from limitations on Java >= 16 and the default archetype plugin version, forcing users to adopt a more verbose command. See https://github.com/itemis/fluffyj-archetype#note-on-usage-with-java-16

For the time being, it's more acceptable to have a missing .gitignore than have users potentially fail to create a new project with a cryptic message and no pointers to the solution.