The Liberty buildpack has DB2 drivers preinstalled, but what if I want to deploy a Spring Boot/Play!/... application that uses an embedded container?
1) I can get the DB2 jars in a private repository, but I'd like to avoid this scenario this time 2) Try to create a custom buildpack that also include the DB2 jars already? 3) As far as I know there is no public maven repository for DB2 drivers? 4) Any other options?
Answer by Ram Vennam (2928) | Jan 05, 2015 at 04:00 PM
If you want to package your own DB2 drivers, I recommend you download them from: http://www-01.ibm.com/support/docview.wss?uid=swg21363866
Sorry, not available in a maven repo :(
Next, you can tell Liberty buildpack to not provide these DB2 jars for you (avoid conflicts) by opting out of the auto-configuration feature: https://www.ng.bluemix.net/docs/#starters/liberty/index.html#automaticconfigurationofboundservices
Read the section: Opting out of service auto-configuration
I'm not using Liberty buildpack though, I want to use plain old java build pack like https://github.com/cloudfoundry/java-buildpack.
Are there any plans in the future to get these jars in a public (IBM?) maven repo? If that's not the case it would be nice to have a custom java-db2-buildpack to encourage users to start with DB2 on Bluemix. Just like there is for other languages: https://github.com/ibmdb
Hi Driss, I thought Ram's first para was suggesting to bundle the jcc jars with your app in the cf push. Any particular reason u can't do that.
i myself contributed many of the buildpacks on https://github.com/ibmdb, but a buildpack is overkill when you can push a 4 MB jcc.jar along with the app. And btw i too dont like no maven support