maven-archetype icon indicating copy to clipboard operation
maven-archetype copied to clipboard

[ARCHETYPE-612] Fixes to required property sort approach

Open dhutchison opened this issue 4 years ago • 3 comments

Fix for ARCHETYPE-612.

This implementation will now respect the required property order defined by the archetype author, unless they have interdependencies which are not ordered correctly. If properties are detected to be in the wrong order, it will use a (slightly simplistic) graph traversal approach to find a working sort order.

This removes the previous behaviour where it would try to sort based on dependencies, while aiming for alphabetic property order with fixed core property order.

dhutchison avatar Dec 29 '20 01:12 dhutchison

Is there a way to work around this issue in the meantime?

jaredculp avatar Jan 22 '21 21:01 jaredculp

The only way I could find was to get people to specify properties on the command line instead of using the interactive prompts.

dhutchison avatar Jan 23 '21 11:01 dhutchison

Yeah we basically decided to write a shell script as a wrapper which does all the parsing and then passes the values to the archetype in batch mode.

jaredculp avatar Jan 25 '21 16:01 jaredculp

Closing this as #64 says it supersedes this.

dhutchison avatar Oct 08 '23 15:10 dhutchison