简体   繁体   中英

Using maven-release-plugin wit Git

I have created a java project with maven. I am trying to make releases of my project using maven-release plugin.

when i execute following commands in the order shown in the image below, maven release plugin stuck where it tries to push the changes to git repository

Could anybody help me to figure out the issue here.

在此输入图像描述

I have added SCM section into the project object model of my application. I also have set the passphrase using ssh-add. but still no luck :(

this is the new error i am getting after applying the change to the scm section

在此输入图像描述

Your log shows that Maven is trying to push using HTTPS. You may have not configured HTTP(S) authentication, that's why pushing to remote repository fails.

Since you want to use SSH, you must change your <developerConnection> tag to scm:git:ssh://git@github.com:kitis/sample-multimodule-project.git .

If you want to use HTTP(S) for pushing, you may try to use a .netrc file.

Issue for first image, it may be caused due to missing scm credentials. I used maven 3.0.5, m2releaseplugin 2.3.2 and git as scm. This problem can be solved by providing scm parameters "username" and "password" on project's pom.xml. Check scm plugin parameters from maven help. If you are using Jenkins CI and m2 release plugin, you can specify username/password parameters from web gui. This is due to scm plugin dependency of release plugin. Hope this helps

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM