How to upload artifacts to nexus with auto generating the version by using jenkins shell? I am using this script and I want to generate the version automatically when artifact uploading.
mvn deploy:deploy-file \
-DgroupId= \
-DartifactId= \
-Dversion= \
-DgeneratePom= \
-Dpackaging= \
-DrepositoryId= \
-Durl= \
-Dfile=