java.lang.RuntimeException: org.apache.maven.plugin.MojoExecutionException: Unable to execute mojo

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

This happens when you try to instantiate a class that can't be instantiated, either because the class object is abstract, an interface, an array class, a primitive type, void, or because the class has no nullary constructor.

Solutions on the web

via atlassian.com by Unknown author, 2 years ago
org.apache.maven.plugin.MojoExecutionException: Unable to execute mojo
via Atlassian JIRA by Benoit Goyette, 1 year ago
org.apache.maven.plugin.MojoExecutionException: Unable to execute mojo
via Atlassian JIRA by Benoit Goyette, 1 year ago
org.apache.maven.plugin.MojoExecutionException: Unable to execute mojo
via Stack Overflow by Revival
, 2 years ago
org.apache.maven.plugin.MojoExecutionException: Unab le to execute mojo
via Atlassian JIRA by Eduard Vlasov, 1 year ago
org.apache.maven.plugin.MojoExecutionException: Unable to execute mojo
via Atlassian JIRA by Eduard Vlasov, 1 year ago
org.apache.maven.plugin.MojoExecutionException: Unable to execute mojo
java.lang.InstantiationException: org.apache.maven.artifact.repository.ArtifactRepository
at java.lang.Class.newInstance0(Class.java:340)
at java.lang.Class.newInstance(Class.java:308)
at org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter.instantiateObject(AbstractConfigurationConverter.java:111)
at org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.fromConfiguration(ObjectWithFieldsConverter.java:88)
at org.codehaus.plexus.component.configurator.converters.ComponentValueSetter.configure(ComponentValueSetter.java:247)
at org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.processConfiguration(ObjectWithFieldsConverter.java:137)
at org.apache.maven.plugin.DefaultPluginManager.populatePluginFields(DefaultPluginManager.java:1350)
at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:717)
at org.shaded.mojoexecutor.MojoExecutor.executeMojo(MojoExecutor.java:98)
at org.twdata.maven.cli.MojoCall.run(MojoCall.java:31)
at org.twdata.maven.cli.commands.ExecuteGoalCommand.runMojo(ExecuteGoalCommand.java:125)
at org.twdata.maven.cli.commands.ExecuteGoalCommand.run(ExecuteGoalCommand.java:104)
at org.twdata.maven.cli.CliShell.interpretCommand(CliShell.java:42)
at org.twdata.maven.cli.CliShell.run(CliShell.java:27)
at org.twdata.maven.cli.AbstractCliMojo.displayShell(AbstractCliMojo.java:144)
at org.twdata.maven.cli.AbstractCliMojo.access$000(AbstractCliMojo.java:22)
at org.twdata.maven.cli.AbstractCliMojo$1.run(AbstractCliMojo.java:116)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.