The CP lines are maintenance branches for the platform, not the project. CP05 is designed to build jts against branch JBPAPP_5_1, which it does just fine. You should not need to be building it at all (there is a perfectly good binary already) and if you do, you should be building the jts as that is what the sever uses and replacing it with a jta build will cause you headaches.