Let's clear up terminology a bit to make sure there is no misunderstanding.
"Maven Central" (http://search.maven.org/) is a global site where you only find releases. Central doesn't accept snapshots so deploying there should give you an error.
You probably mean your local/company wide maven proxy/cache. These can also be configured to reject snapshot versions. In case of Nexus, you can also define more complex rules. In my case, I had an issue there which gave no error during mvn deploy
but I could see an error in the server's logs.
Try to follow the data: Enable debug (mvn -X
) to see where Maven uploads the data. Then check the server to see whether the artifacts were really uploaded. Check the server's logs for errors.
Also note that snapshot dependencies are only refreshed once a day; so this won't work:
PC #1: mvn install
-> Error missing dependency
PC #2: mvn deploy
PC #1: mvn install
-> Dependency is still missing because of "update once per day" policy
Try mvn install -U
to force Maven to refresh its cached metadata.