I want to push my custom artifact/package (*.jar) to the Azure artifact using maven with the help of Azure DevOps pipeline. I am using java & building the package using maven.
I can do it by the below script/command in the Azure pipeline.
mvn deploy:deploy-file -DgroupId="com.mypkg" `
-DartifactId="my.artifact" `
-Dversion="1.0.0-SNAPSHOT" `
-Dpackaging=jar `
-Dfile="my.artifact-1.0.0-SNAPSHOT.jar" `
-DgeneratePom="true" `
-DrepositoryId="$AZURE_FEED_ID" `
-Durl="$AZURE_FEED_URL";
I want to know if this can be done by any Azure pipeline task like "- task: Maven@3" Because Azure DevOps provides the publish tasks for npm, Gradel, Python etc but not for maven.