I am trying to implement azure devops on a scala project which is built in maven tool.
I have to use release management in the project so that i am using below scm connection and maven-release plugin as shown below in the pom.xml file.
...
...
<groupId>com.group.id</groupId>
<artifactId>engineering-parsers</artifactId>
<packaging>pom</packaging>
<version>1.0.0-SNAPSHOT</version>
....
....
....
<scm>
<connection>scm:git:[email protected]:data-layer/engineering-parser.git</connection>
<developerConnection>scm:git:[email protected]:data-layer/engineering-parser.git</developerConnection>
<url>https://git.org.com/data-layer/engineering-parser</url>
<tag>v1.0.0</tag>
</scm>
...
...
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>3.0.0-M1</version>
<configuration>
<tagNameFormat>v@{project.version}</tagNameFormat>
<checkModificationExcludes>
<checkModificationExclude>pom.xml</checkModificationExclude>
</checkModificationExcludes>
</configuration>
</plugin>
</plugins>
</build>
...
...
I have added a maven task in the azure build pipeline as shown below and provided command release:prepare and tried with --batch-mode release:clean release:prepare -Dtag=2.0.0 -DreleaseVersion=2.0.0 -DdevelopmentVersion=2.0.1-SNAPSHOT -Dusername=Personal%20Access%20Token -Dpassword=xxxxxGIT PATxxxxx
While running the build pipeline, maven build is failing by throwing below error.
It seems like that using the provided commands i am not able to connect to git repository and push the changes into repo.
Is there anything else I have to add while using maven release plugin with devops?
Any leads appreciated!