If it is a simple .jar file, try the following:
mvn deploy:deploy-file -Dpackaging=jar -DrepositoryId=snapshots -Durl=http://nexus.example.net/content/repositories/snapshots -DpomFile=Spigot/Spigot-Server/pom.xml -Dfile=$(find Spigot/Spigot-Server/target/ -name 'spigot-*.jar')
If it is several files, it is a little more complicated:
Parameters maven deploy-file files , classifiers and types are used when you want to deploy multiple artifacts under the same (groupId, artifactId, version) - for example .jar and -sources.jar
Even for this case, using the syntax is somewhat inconsistent - you should use file = file1.jar for the first artifact , and then files = file1 -sources.jar, file1-test-sources.zip, .. to relax using the classifier / classifiers (and packaging / types ) in the same way (positional) to indicate the classifier / type of each exhibit that you are loading.
If your use case downloads artifacts of different versions , you will need to do one maven deployment file for each version .
You can also consider some alternatives:
source share