java.lang.TypeNotPresentException: Type org.sonarsource.scanner.maven.SonarQubeMojo not present

Stack Overflow | bluestring | 7 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to Rafael Fischer Viola and rafael . Or join the community to write better ones.
  1. 0
    samebug tip
    This might be caused by and outdated version of Java, SonarQube now uses Java 8 as default. You might upgrade java or use an older version of SonarQube.
  2. 0
    samebug tip
    If you're using intellij plugin of sonarqube, you might have to set the JAVA_HOME ambient variable manually.
  3. 1

    SonarQube Intellij Plugin error with SonarQubeMojo

    Stack Overflow | 7 months ago | bluestring
    java.lang.TypeNotPresentException: Type org.sonarsource.scanner.maven.SonarQubeMojo not present
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    UnsupportedClassVersionError: SonarQubeMojo : Unsupported major.minor version 52.0

    GitHub | 3 months ago | christianbalzer
    java.lang.TypeNotPresentException: Type org.sonarsource.scanner.maven.SonarQubeMojo not present
  6. 0

    Please support java <7 for executing the plugin

    GitHub | 2 years ago | victornoel
    java.lang.TypeNotPresentException: Type fr.inria.gforge.spoon.Spoon not present
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.UnsupportedClassVersionError

    org/sonarsource/scanner/maven/SonarQubeMojo : Unsupported major.minor version 51.0

    at java.lang.ClassLoader.defineClass1()
  2. Java RT
    URLClassLoader.findClass
    1. java.lang.ClassLoader.defineClass1(Native Method)
    2. java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
    3. java.lang.ClassLoader.defineClass(ClassLoader.java:615)
    4. java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    5. java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
    6. java.net.URLClassLoader.access$000(URLClassLoader.java:58)
    7. java.net.URLClassLoader$1.run(URLClassLoader.java:197)
    8. java.security.AccessController.doPrivileged(Native Method)
    9. java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    9 frames
  3. Plexus
    ClassRealm.loadClass
    1. org.codehaus.plexus.classworlds.realm.ClassRealm.loadClassFromSelf(ClassRealm.java:386)
    2. org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:42)
    3. org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
    4. org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
    4 frames
  4. Sisu-Inject-Bean : legacy wrapper
    AbstractDeferredClass.get
    1. org.sonatype.guice.bean.reflect.URLClassSpace.loadClass(URLClassSpace.java:101)
    2. org.sonatype.guice.bean.reflect.NamedClass.load(NamedClass.java:45)
    3. org.sonatype.guice.bean.reflect.AbstractDeferredClass.get(AbstractDeferredClass.java:45)
    3 frames
  5. Google Guice - Core Library
    ProvisionListenerStackCallback$Provision.provision
    1. com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:84)
    2. com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:52)
    3. com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:70)
    4. com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:100)
    4 frames
  6. org.sonatype.guice
    PlexusLifecycleManager.onProvision
    1. org.sonatype.guice.plexus.lifecycles.PlexusLifecycleManager.onProvision(PlexusLifecycleManager.java:138)
    1 frame
  7. Google Guice - Core Library
    Scopes$1$1.get
    1. com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:108)
    2. com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55)
    3. com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:68)
    4. com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:45)
    5. com.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:965)
    6. com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1011)
    7. com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:961)
    8. com.google.inject.Scopes$1$1.get(Scopes.java:59)
    8 frames
  8. Sisu-Inject-Bean : legacy wrapper
    LazyBeanEntry.getValue
    1. org.sonatype.guice.bean.locators.LazyBeanEntry.getValue(LazyBeanEntry.java:83)
    1 frame
  9. org.sonatype.guice
    LazyPlexusBean.getValue
    1. org.sonatype.guice.plexus.locators.LazyPlexusBean.getValue(LazyPlexusBean.java:49)
    1 frame
  10. Plexus
    DefaultPlexusContainer.lookup
    1. org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:253)
    2. org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:245)
    2 frames
  11. Maven Core
    DefaultMavenPluginManager.getConfiguredMojo
    1. org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:455)
    1 frame
  12. Maven Plugin
    DefaultBuildPluginManager.executeMojo
    1. org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:92)
    1 frame
  13. Maven Core
    DefaultMaven.execute
    1. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
    2. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    3. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    4. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
    5. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
    6. org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
    7. org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
    8. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
    9. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    9 frames
  14. M3 Interceptor
    MavenCli.main
    1. org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
    2. org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
    3. org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
    3 frames
  15. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  16. Plexus
    Launcher.main
    1. org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
    2. org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
    3. org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
    4. org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
    4 frames