jenkins - Issue running cobertura with sonar -


while running cobertura sonar (plugins installed in jenkins), below error. snippet in pom, error , other details below. can please on ? in advance. maven version 3.0.4. after googling around got solution add dependency in pom . still did not work the goal used clean install -u cobertura:cobertura sonar:sonar

   java.lang.typenotpresentexception: type org.codehaus.mojo.cobertura.coberturareportmojo not present @ org.eclipse.sisu.space.urlclassspace.loadclass(urlclassspace.java:115) @ org.eclipse.sisu.space.namedclass.load(namedclass.java:46) @ org.eclipse.sisu.space.abstractdeferredclass.get(abstractdeferredclass.java:48) @ com.google.inject.internal.providerinternalfactory.provision(providerinternalfactory.java:86) @ com.google.inject.internal.internalfactorytoinitializableadapter.provision(internalfactorytoinitializableadapter.java:55) @ com.google.inject.internal.providerinternalfactory$1.call(providerinternalfactory.java:70) @ com.google.inject.internal.provisionlistenerstackcallback$provision.provision(provisionlistenerstackcallback.java:100) @ org.eclipse.sisu.plexus.plexuslifecyclemanager.onprovision(plexuslifecyclemanager.java:133) @ com.google.inject.internal.provisionlistenerstackcallback$provision.provision(provisionlistenerstackcallback.java:109) @ com.google.inject.internal.provisionlistenerstackcallback.provision(provisionlistenerstackcallback.java:55) @ com.google.inject.internal.providerinternalfactory.circularget(providerinternalfactory.java:68) @ com.google.inject.internal.internalfactorytoinitializableadapter.get(internalfactorytoinitializableadapter.java:47) @ com.google.inject.internal.injectorimpl$2$1.call(injectorimpl.java:997) @ com.google.inject.internal.injectorimpl.callincontext(injectorimpl.java:1047) @ com.google.inject.internal.injectorimpl$2.get(injectorimpl.java:993) @ com.google.inject.scopes$1$1.get(scopes.java:59) @ org.eclipse.sisu.inject.lazybeanentry.getvalue(lazybeanentry.java:82) @ org.eclipse.sisu.plexus.lazyplexusbean.getvalue(lazyplexusbean.java:51) @ org.codehaus.plexus.defaultplexuscontainer.lookup(defaultplexuscontainer.java:260) @ org.codehaus.plexus.defaultplexuscontainer.lookup(defaultplexuscontainer.java:252) @ org.apache.maven.plugin.internal.defaultmavenpluginmanager.getconfiguredmojo(defaultmavenpluginmanager.java:459) @ org.apache.maven.plugin.defaultbuildpluginmanager.executemojo(defaultbuildpluginmanager.java:97) @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor.java:208) @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor.java:153) @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor.java:145) @ org.apache.maven.lifecycle.internal.lifecyclemodulebuilder.buildproject(lifecyclemodulebuilder.java:84) @ org.apache.maven.lifecycle.internal.lifecyclemodulebuilder.buildproject(lifecyclemodulebuilder.java:59) @ org.apache.maven.lifecycle.internal.lifecyclestarter.singlethreadedbuild(lifecyclestarter.java:183) @ org.apache.maven.lifecycle.internal.lifecyclestarter.execute(lifecyclestarter.java:161) @ org.apache.maven.defaultmaven.doexecute(defaultmaven.java:317) @ org.apache.maven.defaultmaven.execute(defaultmaven.java:152) @ org.apache.maven.cli.mavencli.execute(mavencli.java:555) @ org.apache.maven.cli.mavencli.domain(mavencli.java:214) @ org.apache.maven.cli.mavencli.main(mavencli.java:158) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:606) @ org.codehaus.plexus.classworlds.launcher.launcher.launchenhanced(launcher.java:289) @ org.codehaus.plexus.classworlds.launcher.launcher.launch(launcher.java:229) @ org.codehaus.plexus.classworlds.launcher.launcher.mainwithexitcode(launcher.java:415) @ org.codehaus.plexus.classworlds.launcher.launcher.main(launcher.java:356)   caused by: java.lang.noclassdeffounderror: org/apache/maven/reporting/abstractmavenreport @ java.lang.classloader.defineclass1(native method) @ java.lang.classloader.defineclass(classloader.java:800) @ java.security.secureclassloader.defineclass(secureclassloader.java:142) @ java.net.urlclassloader.defineclass(urlclassloader.java:449) @ java.net.urlclassloader.access$100(urlclassloader.java:71) @ java.net.urlclassloader$1.run(urlclassloader.java:361) @ java.net.urlclassloader$1.run(urlclassloader.java:355) @ java.security.accesscontroller.doprivileged(native method) @ java.net.urlclassloader.findclass(urlclassloader.java:354) @      org.codehaus.plexus.classworlds.realm.classrealm.loadclassfromself(classrealm.java:389) @ org.codehaus.plexus.classworlds.strategy.selffirststrategy.loadclass(selffirststrategy.java:42) @ org.codehaus.plexus.classworlds.realm.classrealm.unsynchronizedloadclass(classrealm.java:259) @ org.codehaus.plexus.classworlds.realm.classrealm.loadclass(classrealm.java:235) @ org.codehaus.plexus.classworlds.realm.classrealm.loadclass(classrealm.java:227) @ org.eclipse.sisu.space.urlclassspace.loadclass(urlclassspace.java:107) ... 41 more   caused by: java.lang.classnotfoundexception: org.apache.maven.reporting.abstractmavenreport @ org.codehaus.plexus.classworlds.strategy.selffirststrategy.loadclass(selffirststrategy.java:50) @ org.codehaus.plexus.classworlds.realm.classrealm.unsynchronizedloadclass(classrealm.java:259) @ org.codehaus.plexus.classworlds.realm.classrealm.loadclass(classrealm.java:235) @ org.codehaus.plexus.classworlds.realm.classrealm.loadclass(classrealm.java:227) ... 56 more [info]                                                                          [info] ---------------------------------------------------------------------    --- [info] skipping -  list item   indexweb  [info] project has been banned build due previous failures.  [info] ------------------------------------------------------------------------  [info] ------------------------------------------------------------------------  [info] reactor summary:  [info]   [info] indexweb .................................... failure [1.325s]  [info] indexweb-webservices ........................ skipped  [info] indexweb-service ............................ skipped  [info] indexweb-web ................................ skipped  [info] ------------------------------------------------------------------------  [info] build failure  [info] ------------------------------------------------------------------------  [info] total time: 2.758s  [info] finished at: fri jun 19 06:39:11 utc 2015  [info] final memory: 12m/111m  [info] ------------------------------------------------------------------------  **[error] failed execute goal org.codehaus.mojo:cobertura-maven-plugin:2.6:cobertura (default-cli) on project indexweb: execution default-cli of goal org.codehaus.mojo:cobertura-maven-plugin:2.6:cobertura failed: unable load mojo 'cobertura' in plugin 'org.codehaus.mojo:cobertura-maven-plugin:2.6'. required class missing:   org/apache/maven/reporting/abstractmavenreport**   [error] -----------------------------------------------------   [error] realm =    plugin>org.codehaus.mojo:cobertura-maven-plugin:2.6   [error] strategy = org.codehaus.plexus.classworlds.strategy.selffirststrategy   [error] urls[0] =    file:/home/jboss/.m2/repository/org/codehaus/mojo/cobertura-maven-plugin/2.6/cobertura-maven-plugin-2.6.jar   [error] urls[1] = file:/home/jboss/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar   [error] number of foreign imports: 1   [error] import: entry[import  realm classrealm[maven.api, parent: null]]   [error]    [error] -----------------------------------------------------:      org.apache.maven.reporting.abstractmavenreport   [error] -> [help 1]   [error]     [error] see full stack trace of errors, re-run maven -e switch.   [error] re-run maven using -x switch enable full debug logging.   [error]    [error] more information errors , possible solutions, please read following articles:   [error] [help 1]   http://cwiki.apache.org/confluence/display/maven/plugincontainerexception    build step 'invoke top-level maven targets' marked build failure    archiving artifacts    skipping sonar analysis due bad build status failure       <-- snippet of pom below -->     <plugin>       <groupid>org.codehaus.mojo</groupid>       <artifactid>cobertura-maven-plugin</artifactid>        <version>2.6</version>        <dependencies>       <dependency>         <groupid>org.apache.maven.reporting</groupid>        <artifactid>maven-reporting-api</artifactid>        <version>2.0.9</version>        </dependency>        </dependencies>       </plugin> 


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -