Failed to execute goal maven release:prepare

前端 未结 4 1041
滥情空心
滥情空心 2021-02-03 16:41

I\'m having problems when I run mvn release:prepare. I have the following message:

[ERROR] Failed to execute goal org.apache.maven.plugins: maven-release-plugin:         


        
相关标签:
4条回答
  • 2021-02-03 17:20

    I had the same problem too at using Maven 3.3.1 in Windows 8.1. I searched on it and found that mvn.bat moved to mvn.cmd. Still, I don't know how to solve it at the version. So, I downloaded Maven 3.2.5 and there was the mvn.bat file. And it worked for me.

    0 讨论(0)
  • 2021-02-03 17:21

    Fixed, i had same problem with maven 3.5.0 instalation, so just copy mvn.cmd and rename it to mvn.bat at C:\Program Files\apache-maven-3.5.0\bin.

    0 讨论(0)
  • 2021-02-03 17:24

    I just had same problem when running from eclipse, it resolved by making copy of mvn.cmd to mvn.bat

    And it worked for me.

    0 讨论(0)
  • 2021-02-03 17:34

    As of version 3.3.X, Maven renamed mvn.bat to mvn.cmd. This is fixed in the maven-release-plugin version 2.5.2: MRELEASE-902

    They suggest adding the following section in case the fixed plugin version is not picked up automatically:

      <build>
        <plugins>
            <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-release-plugin</artifactId>
              <version>2.5.1</version>
              <dependencies>
                <dependency>
                  <groupId>org.apache.maven.shared</groupId>
                  <artifactId>maven-invoker</artifactId>
                  <version>2.2</version>
                </dependency>
              </dependencies>
            </plugin>
        </plugins>
      </build>
    
    0 讨论(0)
提交回复
热议问题