java.lang.TypeNotPresentException: Type org.apache.maven.plugin.war.WarMojo not present

Stack Overflow | Vaibhav Kamble | 2 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0

    [WARNING] Error injecting: org.springframework.build.aws.maven.SimpleStorageServiceWagon

    GitHub | 3 years ago | daviswalker
    java.lang.TypeNotPresentException: Type org.springframework.build.aws.maven.SimpleStorageServiceWagon not present
  2. 0

    Cannot run jetty-maven-plugin in windows 7

    Stack Overflow | 2 years ago | Itachi Uchiha
    java.lang.TypeNotPresentException: Type org.eclipse.jetty.maven.plugin.JettyRunM ojo not present
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    issue in running mvn clean install / mvn install

    GitHub | 8 months ago | Harshaec021
    java.lang.TypeNotPresentException: Type org.codehaus.gmaven.plugin.compile.TestC ompileMojo not present
  5. 0
    samebug tip
    If you're using intellij plugin of sonarqube, you might have to set the JAVA_HOME ambient variable manually.
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.ClassNotFoundException

    org.apache.maven.plugin.war.WarMojo

    at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass()
  2. Plexus
    ClassRealm.loadClass
    1. org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
    2. org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
    3. org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
    4. org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
    4 frames
  3. org.eclipse.sisu
    AbstractDeferredClass.get
    1. org.eclipse.sisu.space.URLClassSpace.loadClass(URLClassSpace.java:139)
    2. org.eclipse.sisu.space.NamedClass.load(NamedClass.java:46)
    3. org.eclipse.sisu.space.AbstractDeferredClass.get(AbstractDeferredClass.java:48)
    3 frames
  4. Google Guice - Core Library
    ProvisionListenerStackCallback$Provision.provision
    1. com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:81)
    2. com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:53)
    3. com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:65)
    4. com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:115)
    4 frames
  5. org.eclipse.sisu
    BeanScheduler$Activator.onProvision
    1. org.eclipse.sisu.bean.BeanScheduler$Activator.onProvision(BeanScheduler.java:176)
    1 frame
  6. Google Guice - Core Library
    InjectorImpl$2.get
    1. com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:126)
    2. com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:68)
    3. com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:63)
    4. com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:45)
    5. com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1016)
    6. com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092)
    7. com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1012)
    7 frames
  7. org.eclipse.sisu
    LazyPlexusBean.getValue
    1. org.eclipse.sisu.inject.Guice4$1.get(Guice4.java:162)
    2. org.eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.java:81)
    3. org.eclipse.sisu.plexus.LazyPlexusBean.getValue(LazyPlexusBean.java:51)
    3 frames
  8. Plexus
    DefaultPlexusContainer.lookup
    1. org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:263)
    2. org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:255)
    2 frames
  9. Maven Core
    DefaultMavenPluginManager.getConfiguredMojo
    1. org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:517)
    1 frame
  10. Maven Plugin
    DefaultBuildPluginManager.executeMojo
    1. org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:121)
    1 frame
  11. Maven Core
    DefaultMaven.execute
    1. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
    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:116)
    5. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
    6. org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
    7. org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
    8. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
    9. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
    10. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
    10 frames
  12. M3 Interceptor
    MavenCli.main
    1. org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
    2. org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
    3. org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
    3 frames
  13. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  14. Plexus
    Launcher.main
    1. org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
    2. org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    3. org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
    4. org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
    4 frames