When we write POM file for a Maven project, it contains all the things needed to build including all kinds of dependencies, plugins etc.
But when we put a library into a Maven repository, say Maven Central, the most important thing needed is dependencies.
So we can use same or different POM files for this library to build and to distribute on Maven Repository.
However, in some cases, the POM file used to build cannot be used as the POM file on Maven Central.
For example, if you have system dependencies (it's a bad practice though), or if the build POM file relies on a parent POM in source tree to run. In this scenario, we should always different POM files.
Is this understanding correct?