For versions of Infinispan >= 9.x, please use the store-archetype.
Run the command mvn archetype:update-local-catalog install
cd
into empty folder
Run the command mvn archetype:generate -DarchetypeGroupId=org.infinispan -DarchetypeArtifactId=custom-cache-store-archetype