Add groupId and artifactId to UI including validation (partly #274, #149, #150) #292
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Enhance UI with two input fields for group and artifact id (layouted in 1 line to save space).
Both values are validated to java package naming convention and jar naming convention, respectively.
Validation messages appear for both empty and illegal field values on top of the form, both when pressing the button or when leaving the field. Button works directly from field as well as when having selected something else before.
Version was explicitely not regarded, as this can easily changed by the user and is seldomly useful to set at the beginning after creating a project template to anything else. Plus, the validation here would be different as the there are conventions, but the user could use something else as this has no effects on the generated files.
The archetype is fed with the new values or defaults are used if unchanged.
Only with the defaults caching happens as with individual values this would not make much sense as it is very unlikely to hit the cache if the values are freely set.
Was tested alone and in combination with the other PR using the artifactId in all files.