javamavenreleasehotfix

Hot-fixing a bug in a third-party library dependency


I found a minor bug in a bigger application framework that I am using. Fixing requires only to change two lines in a single class. I fixed the issue and pushed the changes to the project's repository.

However, I need to release tomorrow. Therefore, I cannot wait until the library is releasing a new version. I am wondering what would be the best way to integrate the patched version into my project:

Thanks for any input on this.


Solution

  • I ended up building the project separately and moving this version to another namespace. This is apparently not so uncommon. For example Hibernate keeps cglib in its own namespace in order to avoid version conflicts due to API changes.

    Even it sounds painful: Moving out of the namespace and providing a seperate build is a must, even if you only change a few lines of code.