JAVA chaincode without resources
sgroh opened this issue · comments
jar files on peers do not contains resource files.
I have used a Maven project that is successfully compiled and packaged on a local environment and also on container hyperledger/fabric-tools:2.3.0 after doing:
minifab ccup -n <chaincodeName> -l java -v <chaincodeVersion>
. On this container, you can find the created jar file on this directory:
/go/src/github.com/chaincode/<chaincodeName>
, please note that is under the /go directory (not sure why). This jar file looks correct, it has the resources on it.
Issue: Resulting chaincode.jar
file that exists on different peers docker containers do not have the resources on it. It' s not clear how this jar file differs from the one existing on hyperledger/fabric-tools:2.3.0 container.
Notes:
- My properties files were added under /src/main/resources on my chaincode example.
- To see the content of different jar files on containers just unzip them on some
/tmp
directory.