nielsbasjes commented on pull request #12846: URL: https://github.com/apache/flink/pull/12846#issuecomment-661778583
I have been struggling with this BOM mechanism. Apparently this mechanism allows importing the dependency management parts from other dependencies (that must be `<packaging>pom</packaging>`). - https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Importing_Dependencies - https://stackoverflow.com/a/11779302/114196 - https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM The way Google uses this system is that the dependencies you include from Google have no versions anymore at all. The actual versions that are to be used are pulled from the specified libraries-bom. Note that this libraries-bom imports the bom from various other parts like the google-cloud-bom. And the google-cloud-bom imports the google-cloud-core-bom. etc. ... I tried several things. When I simply add the libraries-bom as a dependency then it will not find the versions specified in the 'sub-included' boms (like the google-cloud-bom I mentioned). When my project does not have the libraries-bom then it fails not knowing the desired dependency versions. I have not been able to improve this setup. So I agree this should be part of the documentation. P.S. What should I do regarding the Chinese version of this? Should I simply insert the English variant and let someone else translate it? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
