I have a project with the following parent:
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.3.1.RELEASE</version>
</parent>
and the following plugins:
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
<releaseProfiles>release</releaseProfiles>
<tagNameFormat>@{project.version}</tagNameFormat>
</configuration>
<dependencies>
<dependency>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-plugin</artifactId>
<version>1.8.1</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
When I try to make mvn -DpreparationGoals=clean release:prepare it fails with this message:
[INFO] Executing: /bin/sh -c cd /root/.jenkins/workspace/Eureka-Client_Pipeline_develop && git push ssh://will:*******@github.com/spring-projects/spring-boot.git/PGXperts-Eureka-Client develop:develop
[INFO] Working directory: /root/.jenkins/workspace/Eureka-Client_Pipeline_develop
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.459s
[INFO] Finished at: Tue Jul 07 14:34:14 CEST 2020
[INFO] Final Memory: 16M/536M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare (default-cli) on project PGXperts-Eureka-Client: Unable to commit files
[ERROR] Provider message:
[ERROR] The git-push command failed.
[ERROR] Command output:
[ERROR] ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory
[ERROR] Host key verification failed.
[ERROR] fatal: Could not read from remote repository.
For the first line of the Error message I can notice that it is trying to make a push to github and not to my git repository, this step was working without problems when I was working with spring-boot-starter-parent 2.2.7.RELEASE. I think maybe the problem can be solved updating the version of the plugins, but I tested with versions 3.0.0-M1 for maven-release-plugin and 1.11.2 for maven-scm-plugin and I get the same error. Is this error because of this versions? If yes, which versions should I choose? It is maybe a bug from spring-boot-starter-parent?