-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Writers don't sort members from super to this #71
Comments
@rfscholte Have a look at. |
It took a while to discover what's happening here, but now I know: there is a property that controls the order of fields: https://codehaus-plexus.github.io/modello/modello.html#class_field |
Ah ok, that would be helpful for 2.0.0. Is this one safe to be changed for Maven before 4.0.0? |
For now I suggest to |
The field is a string, I consider the documentation mediocre:
|
This field should be part of a class with a superclass. The xml.insertParentFieldsUpTo refers to a field name of that superclass. |
can we close this ? |
Not really because I don't consider the docs of this field https://codehaus-plexus.github.io/modello/modello.html really helpful unless I am missing something. |
Have a model which references a superclass:
https://github.com/apache/maven/blob/72688805c4f95f8ab4ca9ab2ac2cd114667790c9/maven-settings/src/main/mdo/settings.mdo#L506-L508
The generated
SettingsXpp3Writer
sorts:All members from the super class at the end which makes the output look awkward. Super elements come last while the should be first.
Here is a sample output:
Expected output is:
super
super
..
super
this.
The text was updated successfully, but these errors were encountered: