saden1 / testability-explorer

Automatically exported from code.google.com/p/testability-explorer
Apache License 2.0
0 stars 0 forks source link

Issues when using maven-testability-plugin for my project #45

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I built the maven testability from 1.3.2 tag from
http://testability-explorer.googlecode.com/svn/tags/testability-explorer-1.3.2

Then I am trying to use the plugin for my project as follow,

 <reporting>
   <plugins>
     <plugin>
       <groupId>com.google.testability-explorer</groupId>
       <artifactId>maven-testability-plugin</artifactId>
       <version>1.3.2</version>
     </plugin>
   </plugins>
 </reporting>

It fails with the following error, can someone help solve this issue?
Also it will be great if you can post all the steps about the
installation of this tool

D:\ebox06-19-09\ebox\WS100509\EboxDsf>mvn site
[INFO] Scanning for projects...
WAGON_VERSION: 1.0-beta-2
[INFO]
------------------------------------------------------------------------
[INFO] Building EboxDsf
[INFO]    task-segment: [site]
[INFO]
------------------------------------------------------------------------
[INFO] Setting property: classpath.resource.loader.class =>
'org.codehaus.plexus
.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] **************************************************************
[INFO] Starting Jakarta Velocity v1.4
[INFO] RuntimeInstance initializing.
[INFO] Default Properties File: org\apache\velocity\runtime\defaults
\velocity.pr
operties
[INFO] Default ResourceManager initializing. (class
org.apache.velocity.runtime.
resource.ResourceManagerImpl)
[INFO] Resource Loader Instantiated:
org.codehaus.plexus.velocity.ContextClassLo
aderResourceLoader
[INFO] ClasspathResourceLoader : initialization starting.
[INFO] ClasspathResourceLoader : initialization complete.
[INFO] ResourceCache : initialized. (class
org.apache.velocity.runtime.resource.
ResourceCacheImpl)
[INFO] Default ResourceManager initialization complete.
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Literal
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Macro
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Parse
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Include
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Foreach
[INFO] Created: 20 parsers.
[INFO] Velocimacro : initialization starting.
[INFO] Velocimacro : adding VMs from VM library template :
VM_global_library.vm
[ERROR] ResourceManager : unable to find resource
'VM_global_library.vm' in any
resource loader.
[INFO] Velocimacro : error using  VM library template
VM_global_library.vm : org
.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource 'V
M_global_library.vm'
[INFO] Velocimacro :  VM library template macro registration complete.
[INFO] Velocimacro : allowInline = true : VMs can be defined inline in
templates

[INFO] Velocimacro : allowInlineToOverride = false : VMs defined
inline may NOT
replace previous VM definitions
[INFO] Velocimacro : allowInlineLocal = false : VMs defined inline
will be  glob
al in scope if allowed.
[INFO] Velocimacro : initialization complete.
[INFO] Velocity successfully started.
[INFO] Setting property: classpath.resource.loader.class =>
'org.codehaus.plexus
.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] Preparing testability:testability
[INFO] [enforcer:enforce {execution: default}]
[INFO] Preparing v4:prebuild
[WARNING] Removing: prebuild from forked lifecycle, to prevent
recursive invocat
ion.
[INFO] [enforcer:enforce {execution: default}]
[INFO] Preparing v4:process-css
[WARNING] Removing: prebuild from forked lifecycle, to prevent
recursive invocat
ion.
[INFO] [enforcer:enforce {execution: default}]
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [v4:process-css]
[INFO] [v4:process-js]
[INFO] [v4:process-content]
[INFO] content processing is off - skip content processing
[INFO] [v4:process-flash]
[INFO] [v4:prebuild {execution: ebox-v4-prebuild}]
[INFO] [resources:resources]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] [ebayBuildId:create {execution: default}]
BuildInfoGeneratorMojo: starting...
BuildInfoGeneratorMojo: build information was not provided.
[INFO] [ebayBuildId:generate {execution: default}]
BuildConfigVarGeneratorMojo: starting...
BuildConfigVarGeneratorMojo: build information was not provided.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] Preparing surefire-report:report
[WARNING] Removing: prebuild from forked lifecycle, to prevent
recursive invocat
ion.
[INFO] [enforcer:enforce {execution: default}]
[INFO] [resources:resources]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] [ebayBuildId:create {execution: default}]
BuildInfoGeneratorMojo: starting...
BuildInfoGeneratorMojo: build information was not provided.
[INFO] [ebayBuildId:generate {execution: default}]
BuildConfigVarGeneratorMojo: starting...
BuildConfigVarGeneratorMojo: build information was not provided.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] Preparing v4:resource-extraction
[WARNING] Removing: resource-extraction from forked lifecycle, to
prevent recurs
ive invocation.
[WARNING] Removing: prebuild from forked lifecycle, to prevent
recursive invocat
ion.
[INFO] [enforcer:enforce {execution: default}]
[INFO] [resources:resources]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] [ebayBuildId:create {execution: default}]
BuildInfoGeneratorMojo: starting...
BuildInfoGeneratorMojo: build information was not provided.
[INFO] [ebayBuildId:generate {execution: default}]
BuildConfigVarGeneratorMojo: starting...
BuildConfigVarGeneratorMojo: build information was not provided.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [v4:extract]
[INFO] resource externalization is off - skip resource externalization
[INFO] [v4:image]
[INFO] [v4:resource-extraction {execution: default}]
[INFO] [resources:testResources]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Surefire report directory: D:\ebox06-19-09\ebox\WS100509\EboxDsf
\target\s
urefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
There are no tests to run.

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] Preparing surefire-report:report-only
[WARNING] Removing: prebuild from forked lifecycle, to prevent
recursive invocat
ion.
[INFO] [enforcer:enforce {execution: default}]
[INFO] Preparing cobertura:cobertura
[WARNING] Removing: prebuild from forked lifecycle, to prevent
recursive invocat
ion.
[INFO] [enforcer:enforce {execution: default}]
[INFO] [resources:resources]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] [ebayBuildId:create {execution: default}]
BuildInfoGeneratorMojo: starting...
BuildInfoGeneratorMojo: build information was not provided.
[INFO] [ebayBuildId:generate {execution: default}]
BuildConfigVarGeneratorMojo: starting...
BuildConfigVarGeneratorMojo: build information was not provided.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] Preparing v4:resource-extraction
[WARNING] Removing: resource-extraction from forked lifecycle, to
prevent recurs
ive invocation.
[WARNING] Removing: prebuild from forked lifecycle, to prevent
recursive invocat
ion.
[INFO] [enforcer:enforce {execution: default}]
[INFO] [resources:resources]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] [ebayBuildId:create {execution: default}]
BuildInfoGeneratorMojo: starting...
BuildInfoGeneratorMojo: build information was not provided.
[INFO] [ebayBuildId:generate {execution: default}]
BuildConfigVarGeneratorMojo: starting...
BuildConfigVarGeneratorMojo: build information was not provided.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [v4:extract]
[INFO] resource externalization is off - skip resource externalization
[INFO] [v4:image]
[INFO] [v4:resource-extraction {execution: default}]
[INFO] [cobertura:instrument]
[INFO] Cobertura 1.7 - GNU GPL License (NO WARRANTY) - See COPYRIGHT
file
Cobertura: Loaded information on 63 classes.
Instrumenting 65 classes to D:\ebox06-19-09\ebox\WS100509\EboxDsf
\target\generat
ed-classes\cobertura
[cobertura] WARN  [main]
net.sourceforge.cobertura.instrument.ClassInstrumenter
- No line number information found for class
com.ebay.ebox.content.EboxContentCo
nfigBean$1.  Perhaps you need to compile with debug=true?
[cobertura] WARN  [main]
net.sourceforge.cobertura.instrument.ClassInstrumenter
- No line number information found for class
com.ebay.ebox.web.component.HeaderF
ooterHtmlComponent$1.  Perhaps you need to compile with debug=true?
Cobertura: Saved information on 63 classes.
Instrument time: 1265ms

[INFO] Instrumentation was successful.
[INFO] [resources:testResources]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Surefire report directory: D:\ebox06-19-09\ebox\WS100509\EboxDsf
\target\s
urefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
There are no tests to run.

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] Setting property: classpath.resource.loader.class =>
'org.codehaus.plexus
.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [site:site]
[WARNING] Unable to load parent project from repository: Could not
find the mode
l file 'D:\ebox06-19-09\ebox\WS100509\EboxDsf\..\pom.xml'. for project
unknown
[WARNING] No URL defined for the project - decoration links will not
be resolved

[INFO] Skipped "Maven Surefire Report" report, file "surefire-
report.html" alrea
dy exists for the English version.
[INFO] Generate "Testability Explorer" report.
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Guice provision errors:

1) Error in custom provider, java.lang.RuntimeException:
java.lang.reflect.Invoc
ationTargetException
 at
com.google.maven.MavenConfigModule.generateHtmlReportAsWellAsRequestedForma
t(MavenConfigModule.java:68)
 while locating com.google.test.metric.report.ReportGenerator
   for parameter 0 at
com.google.test.metric.JavaTestabilityRunner.<init>(JavaT
estabilityRunner.java:54)
 while locating com.google.test.metric.JavaTestabilityRunner

1 error
org.apache.log.Hierarchy
[INFO]
------------------------------------------------------------------------
[INFO] Trace
com.google.inject.ProvisionException: Guice provision errors:

1) Error in custom provider, java.lang.RuntimeException:
java.lang.reflect.Invoc
ationTargetException
 at
com.google.maven.MavenConfigModule.generateHtmlReportAsWellAsRequestedForma
t(MavenConfigModule.java:68)
 while locating com.google.test.metric.report.ReportGenerator
   for parameter 0 at
com.google.test.metric.JavaTestabilityRunner.<init>(JavaT
estabilityRunner.java:54)
 while locating com.google.test.metric.JavaTestabilityRunner

1 error
       at com.google.inject.InjectorImpl$4.get(InjectorImpl.java:767)
       at com.google.inject.InjectorImpl.getInstance
(InjectorImpl.java:793)
       at com.google.maven.TestabilityExplorerMojo.executeReport
(TestabilityExp
lorerMojo.java:177)
       at org.apache.maven.reporting.AbstractMavenReport.generate
(AbstractMaven
Report.java:98)
       at
org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(R
eportDocumentRenderer.java:67)
       at
org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(
DefaultSiteRenderer.java:239)
       at
org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(Defaul
tSiteRenderer.java:115)
       at org.apache.maven.plugins.site.SiteMojo.renderLocale
(SiteMojo.java:124
)
       at org.apache.maven.plugins.site.SiteMojo.execute
(SiteMojo.java:92)
       at org.apache.maven.plugin.DefaultPluginManager.executeMojo
(DefaultPlugi
nManager.java:451)
       at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:558)
       at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:499)
       at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:478)
       at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:330)
       at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:291)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
(DefaultLi
fecycleExecutor.java:142)
       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:
336)
       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:
129)
       at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.
java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAcces
sorImpl.java:37)
       at java.lang.reflect.Method.invoke(Method.java:599)
       at org.codehaus.classworlds.Launcher.launchEnhanced
(Launcher.java:315)
       at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
       at org.codehaus.classworlds.Launcher.mainWithExitCode
(Launcher.java:430)

       at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: java.lang.RuntimeException:
java.lang.reflect.InvocationTargetExcepti
on
       at com.google.inject.internal.ProviderMethod.get
(ProviderMethod.java:106
)
       at com.google.inject.InternalFactoryToProviderAdapter.get
(InternalFactor
yToProviderAdapter.java:48)
       at com.google.inject.SingleParameterInjector.inject
(SingleParameterInjec
tor.java:42)
       at com.google.inject.SingleParameterInjector.getAll
(SingleParameterInjec
tor.java:66)
       at com.google.inject.ConstructorInjector.construct
(ConstructorInjector.j
ava:84)
       at com.google.inject.ConstructorBindingImpl$Factory.get
(ConstructorBindi
ngImpl.java:111)
       at com.google.inject.InjectorImpl$4$1.call(InjectorImpl.java:
758)
       at com.google.inject.InjectorImpl.callInContext
(InjectorImpl.java:804)
       at com.google.inject.InjectorImpl$4.get(InjectorImpl.java:754)
       ... 26 more
Caused by: java.lang.reflect.InvocationTargetException
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.
java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAcces
sorImpl.java:37)
       at java.lang.reflect.Method.invoke(Method.java:599)
       at com.google.inject.internal.ProviderMethod.get
(ProviderMethod.java:101
)
       ... 34 more
Caused by: java.lang.NoClassDefFoundError: org.apache.log.Hierarchy
       at freemarker.log.AvalonLoggerFactory.getLogger
(AvalonLoggerFactory.java
:65)
       at freemarker.log.Logger.getLogger(Logger.java:255)
       at freemarker.template.utility.SecurityUtilities.<clinit>
(SecurityUtilit
ies.java:67)
       at java.lang.J9VMInternals.initializeImpl(Native Method)
       at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
       at freemarker.ext.beans.BeansWrapper.<clinit>
(BeansWrapper.java:147)
       at java.lang.J9VMInternals.initializeImpl(Native Method)
       at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
       at freemarker.template.ObjectWrapper.<clinit>
(ObjectWrapper.java:69)
       at java.lang.J9VMInternals.initializeImpl(Native Method)
       at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
       at freemarker.core.Configurable.<init>(Configurable.java:132)
       at freemarker.template.Configuration.<init>(Configuration.java:
109)
       at freemarker.template.Configuration.<clinit>
(Configuration.java:96)
       at java.lang.J9VMInternals.initializeImpl(Native Method)
       at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
       at com.google.test.metric.ReportGeneratorProvider.build
(ReportGeneratorP
rovider.java:104)
       at com.google.test.metric.ReportGeneratorProvider.get
(ReportGeneratorPro
vider.java:174)
       at
com.google.maven.MavenConfigModule.generateHtmlReportAsWellAsRequeste
dFormat(MavenConfigModule.java:71)
       ... 39 more
Caused by: java.lang.ClassNotFoundException: org.apache.log.Hierarchy
       at java.lang.ClassNotFoundException.<init>
(ClassNotFoundException.java:7
6)
       at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:643)
       at org.codehaus.classworlds.RealmClassLoader.loadClassDirect
(RealmClassL
oader.java:195)
       at org.codehaus.classworlds.DefaultClassRealm.loadClass
(DefaultClassReal
m.java:232)
       at org.codehaus.classworlds.DefaultClassRealm.loadClass
(DefaultClassReal
m.java:274)
       at org.codehaus.classworlds.RealmClassLoader.loadClass
(RealmClassLoader.
java:214)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:609)
       ... 58 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 16 seconds
[INFO] Finished at: Thu Oct 08 17:06:01 PDT 2009
[INFO] Final Memory: 36M/126M
[INFO]
------------------------------------------------------------------------

D:\ebox06-19-09\ebox\WS100509\EboxDsf>

Original issue reported on code.google.com by smoa...@gmail.com on 12 Oct 2009 at 9:45

GoogleCodeExporter commented 8 years ago
I too got same issue but when i tried with version 1.3.3 it worked !!!

Original comment by andismil...@gmail.com on 26 Dec 2014 at 6:19