Just after a creating a project, a create a new entity without setting up the persistence (jpa-setup) :
This hasn't created a persistence.xml file. But on the other hand, if I want to add a constraint on the entity, I need to explicitelly setup Bean Validation :
if most of the information is giving at project creation, do we still need to explicitly setup Java EE components ? At the moment we have the following :
Most of these commands do not have parameters (except for persistence, rest, validation). So why not activate them by default (or only if export ACCEPT_DEFAULTS=true ) ? Something like : "if the command constraint-add is entered, Forge would go if constraint is not setup, then I invoke constraint-setup", "if the command ejb-new is entered, Forge would go if ejb is not setup, then I invoke ejb-setup"
That would save some bugs (developers forgetting to setup things), less typing and shorter scripts.