You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Starting from Wrapper Plugin 3.0 only-script is default distributionType for generate the mvnw/mvnw.cmd script, which no longer uses WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain, and it replaced by org.codehaus.plexus.classworlds.launcher.Launcher.
Version 1.21.0 of this plugin uses org.apache.maven.wrapper.MavenWrapperMain to determine whether it is in wrapper mode, here:
Caused by: org.apache.maven.plugin.MojoFailureException: Failed cmd [mvn] with args [[-DgenerateBackupPoms=false, -DnewVersion=0.0.1-test-SNAPSHOT, org.codehaus.mojo:versions-maven-plugin:2.16.0:set]], bad exit code [1]. Out: ['mvn' is not recognized as an internal or external command, operable program or batch file.]
at com.amashchenko.maven.plugin.gitflow.AbstractGitFlowMojo.executeCommand (AbstractGitFlowMojo.java:1373)
at com.amashchenko.maven.plugin.gitflow.AbstractGitFlowMojo.executeMvnCommand (AbstractGitFlowMojo.java:1318)
at com.amashchenko.maven.plugin.gitflow.AbstractGitFlowMojo.mvnSetVersions (AbstractGitFlowMojo.java:1187)
at com.amashchenko.maven.plugin.gitflow.GitFlowFeatureStartMojo.execute (GitFlowFeatureStartMojo.java:124)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:301)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:211)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:165)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:157)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:121)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:127)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:294)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:960)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:568)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
The text was updated successfully, but these errors were encountered:
Starting from Wrapper Plugin 3.0
only-script
is default distributionType for generate the mvnw/mvnw.cmd script, which no longer usesWRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
, and it replaced byorg.codehaus.plexus.classworlds.launcher.Launcher
.Version 1.21.0 of this plugin uses
org.apache.maven.wrapper.MavenWrapperMain
to determine whether it is in wrapper mode, here:gitflow-maven-plugin/src/main/java/com/amashchenko/maven/plugin/gitflow/AbstractGitFlowMojo.java
Lines 281 to 285 in b6c391f
This will cause the automatic usage of the wrapper to fail.
The text was updated successfully, but these errors were encountered: