Run smartcontract using maven

Normal execution:
mvn exec:java -Dexec.mainClass=”path.to.chaincode” -Dexec.args=”-a pearIp:port-i chaincodeName:version
Debug mode:
  • On CommandLine:
    • mvnDebug.cmd exec:java -Dexec.mainClass=”path.to.chaincode” -Dexec.args=”-a pearIp:port-i chaincodeName:version
    • Set and edit options if defaults are not ok:
      MAVEN_DEBUG_OPTS=”-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000″
  • On intellij: new Remote connection.