aleksandr-m / gitflow-maven-plugin

The Git-Flow Maven Plugin supports various Git workflows, including GitFlow and GitHub Flow. This plugin runs Git and Maven commands from the command line.
https://aleksandr-m.github.io/gitflow-maven-plugin/
Apache License 2.0
488 stars 180 forks source link

Getting Maven Error: No plugin found for prefix 'X' #338

Closed hypery2k closed 2 years ago

hypery2k commented 2 years ago

When trying to release I'm getting this error:

[ERROR] [ERROR] No plugin found for prefix 'X' in the current project and in the plugin groups [org.jenkins-ci.tools, org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/Users/mreinhardt/.m2/repository), repo.jenkins-ci.org (https://repo.jenkins-ci.org/public/), central (https://repo.maven.apache.org/maven2)] -> [Help 1]
[ERROR] org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException: No plugin found for prefix 'X' in the current project and in the plugin groups [org.jenkins-ci.tools, org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/Users/mreinhardt/.m2/repository), repo.jenkins-ci.org (https://repo.jenkins-ci.org/public/), central (https://repo.maven.apache.org/maven2)]
[ERROR]     at org.apache.maven.plugin.prefix.internal.DefaultPluginPrefixResolver.resolve (DefaultPluginPrefixResolver.java:95)
[ERROR]     at org.apache.maven.lifecycle.internal.MojoDescriptorCreator.findPluginForPrefix (MojoDescriptorCreator.java:266)
[ERROR]     at org.apache.maven.lifecycle.internal.MojoDescriptorCreator.getMojoDescriptor (MojoDescriptorCreator.java:220)
[ERROR]     at org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments (DefaultLifecycleTaskSegmentCalculator.java:104)
[ERROR]     at org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments (DefaultLifecycleTaskSegmentCalculator.java:83)
[ERROR]     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:89)
[ERROR]     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
[ERROR]     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
[ERROR]     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
[ERROR]     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:972)
[ERROR]     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
[ERROR]     at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
[ERROR]     at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
[ERROR]     at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
[ERROR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
[ERROR]     at java.lang.reflect.Method.invoke (Method.java:498)
[ERROR]     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
[ERROR]     at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
[ERROR]     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
[ERROR]     at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)

The project is available here. Just run .bin/release.sh

aleksandr-m commented 2 years ago

It is a general problem with calling maven plugin not with this plugin. How do you execute maven goals?