Some teams in an organization use existing core automation frameworks(made in Java). In my case, I converted it to a jar file artifact and then used it in their Selenium project as a local library/dependency. That framework consists of all utilities like TestBase.java class, excel reader, Database helper, reporting, and logging classes. The wrapper of PageObjects, customized click, send keys method with logging statements, etc...
While I made my own Cucumber framework in Selenium/Java, Maven for dependencies, etc, I did not use the existing core automation framework and made my own few utils package which has a few classes that I need.
Is that fine? Should we use the core automation framework(as a jar file) in our scripting project? What framework approach do you use?