Uploaded image for project: 'Maven Archetype'
  1. Maven Archetype
  2. ARCHETYPE-516

archetype:create-from-project fails on Windows since Maven-3.3.x

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.4
    • None
    • Creator
    • Windows
    • Important

    Description

      When I execute the following command on my maven multi-module project it fails and I get the following error:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.4:create-from-project (default-cli) on project com.foo.project: Error configuring command-line. Reason: Maven executable not found at: C:\Program Files\Maven-3.3\bin\mvn.bat

      Reason:
      As of version 3.3.X, Maven renamed mvn.bat to mvn.cmd. This has been already fixed in other plugins like the maven-release-plugin (version 2.5.2) which suffered from the same error:

      https://issues.apache.org/jira/browse/MRELEASE-902

      Attachments

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              TeeWeTee Lonzak
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: