2017-04-26 98 views
1

当我使用命令mvn release时:准备会显示以下错误。Maven发布插件版本2.5.3

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare (default-cli) on project MR-1: Unable to commit files 
[ERROR] Provider message: 
[ERROR] The git-push command failed. 
[ERROR] Command output: 
[ERROR] fatal: 'C:\Program Files\Git\https;\\github.com\Nivedha18-V\Maven-Release.git' does not appear to be a git repository 
[ERROR] fatal: Could not read from remote repository. 
[ERROR] 
[ERROR] Please make sure you have the correct access rights 
[ERROR] and the repository exists. 
[ERROR] -> [Help 1] 

请帮我解决这个问题。

+0

你可以发布在你的git项目目录中执行的git remote -v命令的输出吗? –

+2

请显示您的pom文件... – khmarbaise

+0

不,我没有使用git remote -v命令@Martin –

回答

0

在这里,我附上我的pom.xml

如果需要在这个文件中的任何改变,请通知我。

<groupId>org.MavenRelease1</groupId> 
    <artifactId>MR-1</artifactId> 
    <version>0.0.1-SNAPSHOT</version> 
    <packaging>jar</packaging> 

    <name>MR-1</name> 
    <url>http://maven.apache.org</url> 

    <properties> 
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 
    </properties> 

    <scm> 
    <connection>scm:git:file:///https://github.com/Nivedha18-V/Maven-Release.git</connection> 
    <url>scm:git:file:///https://github.com/Nivedha18-V/Maven-Release.git</url> 
    <tag>MR-1-0.0.1</tag> 
    </scm> 

    <distributionManagement> 
    <repository> 
     <id>Maven-Release</id> 
     <url>https://github.com/Nivedha18-V/Maven-Release.git</url> 
    </repository> 
    </distributionManagement> 

    <dependencies> 
    <dependency> 
     <groupId>junit</groupId> 
     <artifactId>junit</artifactId> 
     <version>3.8.1</version> 
     <scope>test</scope> 
    </dependency> 

    </dependencies> 
    <build> 
    <plugins> 
    <plugin> 
     <artifactId>maven-release-plugin</artifactId> 
     <version>2.5.3</version> 
     <configuration> 
      <goals>release</goals> 
     </configuration></plugin></plugins></build>