Unable to load mojo plugin, A required class is missing - java

While running the MVN install for a module getting the below mentioned exception.
In repository am having surefire 2.7.1, surefire-api 2.7.1 and surefire-booter 2.7.1.
.m2\repository\org\apache\maven\surefire\surefire\2.7.1
.m2\repository\org\apache\maven\surefire\surefire-api2.7.1
.m2\repository\org\apache\maven\surefire\surefire-booter\2.7.1
Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.7.1:test (default-test) on project RegistrationServices: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.7.1:test failed: Unable to load the mojo 'test' in the plugin 'org.apache.maven.plugins:maven-surefire-plugin:2.7.1'. A required class is missing: org/apache/maven/plugin/surefire/SurefireExecutionParameters
how to solve that issue?
Thanks in advance...

Related

Error Building Maven project when I do maven install

I'm trying to build a Maven Project using Spring Tool Suit from Eclipse and I'm having an error when I do the Maven Install.
First I do the Maven Clean and it works properly but when I do the maven install this error appears:
Failed to execute goal org.codehaus.mojo:build-helper-maven-plugin:1.9.1:regex-properties
(set-properties-with-regex) on project qad-webshell-pom:
Execution set-properties-with-regex of goal
org.codehaus.mojo:build-helper-maven-plugin:1.9.1:regex-properties failed:
Plugin org.codehaus.mojo:build-helper-maven-plugin:1.9.1 or
one of its dependencies could not be resolved:
Failed to collect dependencies at org.codehaus.mojo:build-helper-maven-plugin:jar:1.9.1 ->
org.beanshell:bsh:jar:2.0b4: Failed to read artifact descriptor
for org.beanshell:bsh:jar:2.0b4:
Could not transfer artifact org.beanshell:bsh:pom:2.0b4 from/to
central (http://repo1.maven.org/maven2):
Cannot access http://repo1.maven.org/maven2 with type default
using the available connector factories:
BasicRepositoryConnectorFactory:
Cannot access http://repo1.maven.org/maven2 using the registered transporter
factories: WagonTransporterFactory: java.util.NoSuchElementException
[ERROR] role: org.apache.maven.wagon.Wagon
[ERROR] roleHint: http'
I had the same issue.
I have restarted Eclipse, then go on the project specific maven module in which you have the error, right click > Maven > Update Project ...
After the Update on the specific module the Maven install worked without any error.

Maven: Failed to execute goal heroku:deploy-war

I am following this tutorial to create a sample project in IntelliJ Idea and deploy it in Heroku, but when I run the project
the Maven didn't built properly, giving me error:
Failed to execute goal com.heroku.sdk:heroku-maven-plugin:1.1.3:deploy-war (default-cli) on project helloworld: Failed to deploy application: Could not find app name: No 'heroku' remote found.
I solved it. The tutorial is missing one line. Before running this, we have to do
mvn clean install

Maven: Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.7.1:sonar

Getting error while executing sonar:sonar goal on maven project
Tried using sonar-maven-plugin version 2.7.1 and 5.0
Error :
Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.7.1:sonar (default-cli) on project XXX:
Execution default-cli of goal org.codehaus.mojo:sonar-maven-plugin:2.7.1:sonar failed: Unable to load the mojo 'sonar'
in the plugin 'org.codehaus.mojo:sonar-maven-plugin:2.7.1'.
A required class is missing: Lorg/apache/maven/rtinfo/RuntimeInformation;
The issue is resolved.
I used combination of Sonar 5.2, Eclipse Luna 4.4.2 (SR2) and Maven-eclipse-plugin 1.6 (download.eclipse.org/technology/m2e/releases/1.6).
recent version of eclipse allowed me to install m2e 1.6 and recent sonar version allowed me to execute sonar plugin without proxy error.

Failed to execute goal com.atlassian.maven.plugins:maven-amps-dispatcher-plugin

I try to set up helloworld plugin for jira and get the exception:
Failed to execute goal com.atlassian.maven.plugins:maven-amps-dispatcher-plugin:4.0:run (default-cli) on project helloworld: Unable to execute mojo: UnsupportedOperationException.....
My Environements:
JIRA - sdk-installer-4.0
java 1.6_0.32
maven 3.0.5(copy conf folder from sdk-installer-4.0 and paste into maven 3.0.5)
I clean .m2 local repository
Turn off Windows Defende
Try to set up project use this commands
atlas-clean
atlas-mvn eclipse:eclipse
atlas-compile
atlas-debug
But not result.
Have you any idea?
Thanks a lot

Maven missing class ValueSource

I'm trying to run the Vadiin addressbook tutorial but when i run this mvn jetty:run I get this error
Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.6:resources (default-resources) on project addressbook: Execution default-resources of goal org.apache.maven.plugins:maven-resources-plugin:2.6:resources failed: A required class was missing while executing org.apache.maven.plugins:maven-resources-plugin:2.6:resources: org/codehaus/plexus/interpolation/ValueSource
I'm using OS X Yosemite and i've installed maven using brew.
I solved removing the .m2 folder and running again mvn jetty:run!

Categories