First of all the java-sdk is not for writing chaincode, it's for user chaincode functions like deploy, invoke, query with fabric and certificate management like enroll, revoke, reenroll with fabric-ca. Your problem is that you want to write chaincode by Java. So you may try the sample chaincode from javasdk/test/fixture/sdkintegration/javacc.
the shim-client is not in maven repo now but you can build it