【问题标题】:Maven release plugin version 2.5.3Maven 发布插件版本 2.5.3
【发布时间】:2017-04-26 12:51:19
【问题描述】:

当我使用命令 mvn release:prepare 时,它​​会显示以下错误。

[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]

请帮我解决这个问题。

【问题讨论】:

  • 你能发布在你的 git 项目目录中执行的 git remote -v 命令的输出吗?
  • 请出示您的 pom 文件...
  • 不,我没有使用 git remote -v 命令@Martin

标签: maven


【解决方案1】:

我在这里附上我的 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>

【讨论】:

    猜你喜欢
    • 2013-01-16
    • 2015-04-21
    • 2011-06-18
    • 1970-01-01
    • 2018-01-31
    • 1970-01-01
    • 2017-10-17
    • 2011-04-07
    • 1970-01-01
    相关资源
    最近更新 更多