Maven 3.0.0 deploy files at a server with timestamp attached to it. I need to wget the latest version artifact from the server without refering the maven-metadata.xml. Is there any way to create the symlink using maven deploy.
Command used to deploy file to server-
mvn -B deploy:deploy-file -DpomFile=pom.xml -Dpackaging=zip -Dfile=my_file.zip -Durl="https://some_server" -DrepositoryId="some_id"
e.g. I uploaded a zip at loc https://some_server/
Now my uploaded zip name became my_file_20211102.062936-9.zip
I want a common name e.x my_file_latest.zip to refer to the latest uploaded zip, so that I can use
wget https://some_server/my_file_latest.zip
to download the latest version.
Resolved the issue using mvn:get dependency. It will always download latest version.