-
Notifications
You must be signed in to change notification settings - Fork 40.7k
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
layers.xsd is out of sync with the documentation and implementation for including and excluding module dependencies #31126
Conversation
Update `layer-*.xsd` files with following fixes: - Rename <includeProjectDependencies> to <includeModuleDependencies> - Rename <excludeProjectDependencies> to <excludeModuleDependencies> See gh-31126
Validate loaded `layer.xml` files against the XSD and additionally update `<layers>` sub elements to have a 'minOccurs' of 0. See gh-31126
Thanks very much @abel533 for your first Spring Boot contribution. I've applied this fix along with the @wilkinsona's suggestion of validating the XML files when it's loaded. |
I wonder if we should validate against the version of the XSD declared in the XML file rather than always using the XSD that matches the version of the Maven plugin? |
I've just noticed that this was merged into 2.5.x. Was that intentional, @philwebb? |
I found some inconsistencies between maven plugin documentation and code, which one should I use?
The contents of the document are as follows
Code
layers-2.6.xsd
Here is
includeProjectDependencies
andexcludeProjectDependencies
.CustomLayersProvider.java
Here is
includeModuleDependencies
andexcludeModuleDependencies
.