aaron-ai commented on issue #4879:
URL: https://github.com/apache/rocketmq/issues/4879#issuecomment-1225506303

   > What if one of the dependencies is of SNAPSHOT? Will the cache get updated 
complying with Maven practice?
   
   Nice question!
   
   Cache of java-setup aims to make caching to work out of box without manual 
configuration. The format of the used cache key is `setup-java-${{ platform 
}}-${{ packageManager }}-${{ fileHash }}`. So the default configuration could 
not make sure the latest snapshot jar is downloaded. java-setup makes is 
possible to define the cache key by ourselves, but it seems could not to 
satisfy the needs you mentioned above easily.
   
   On the other side, could we assume that there should not be snapshot in 
master/develop branch?
   
   More details:
   1. https://github.com/actions/setup-java#caching-packages-dependencies
   2. https://github.com/actions/setup-java/issues/255


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to