[ 
https://jira.codehaus.org/browse/SUREFIRE-884?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=302931#comment-302931
 ] 

Bilal Clarance commented on SUREFIRE-884:
-----------------------------------------

Here is the command I run:

mvn test -Dsurefire.version=2.12 -X
                
> Failed to execute goal 
> org.apache.maven.plugins:maven-surefire-plugin:2.12:test
> -------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-884
>                 URL: https://jira.codehaus.org/browse/SUREFIRE-884
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Surefire Plugin
>    Affects Versions: 2.12
>         Environment: Apache Maven 3.0.4
> Maven home: /usr/share/maven
> Java version: 1.6.0_33, vendor: Apple Inc.
> Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
> Default locale: en_US, platform encoding: MacRoman
> OS name: "mac os x", version: "10.7.4", arch: "x86_64", family: "mac"
>            Reporter: Bilal Clarance
>            Priority: Critical
>
> When upgrading to surefire version 2.12 I got the error below. I need this 
> upgrade so I can do annotations on test classes and identify then as either 
> UnitTests or IntegrationTests.
> I don't get the error when using version 2.10
> Any ideas?
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on 
> project ASPEN: Execution default-test of goal 
> org.apache.maven.plugins:maven-surefire-plugin:2.12:test failed: 
> java.lang.reflect.InvocationTargetException; nested exception is 
> java.lang.reflect.InvocationTargetException: null: 
> ExceptionInInitializerError: Unexpected ClassNotFoundException looking up 
> class 'org.apache.maven.cli.MavenCli' -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute 
> goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) 
> on project ASPEN: Execution default-test of goal 
> org.apache.maven.plugins:maven-surefire-plugin:2.12:test failed: 
> java.lang.reflect.InvocationTargetException; nested exception is 
> java.lang.reflect.InvocationTargetException: null
>       at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
>       at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>       at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>       at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>       at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>       at 
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>       at 
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
>       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>       at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>       at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>       at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>       at java.lang.reflect.Method.invoke(Method.java:597)
>       at 
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
>       at 
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>       at 
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>       at 
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> Caused by: org.apache.maven.plugin.PluginExecutionException: Execution 
> default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test 
> failed: java.lang.reflect.InvocationTargetException; nested exception is 
> java.lang.reflect.InvocationTargetException: null
>       at 
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
>       at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>       ... 19 more
> Caused by: org.apache.maven.surefire.util.SurefireReflectionException: 
> java.lang.reflect.InvocationTargetException; nested exception is 
> java.lang.reflect.InvocationTargetException: null
>       at 
> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:197)
>       at 
> org.apache.maven.surefire.util.ReflectionUtils.invokeGetter(ReflectionUtils.java:69)
>       at 
> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.getSuites(ProviderFactory.java:148)
>       at 
> org.apache.maven.plugin.surefire.booterclient.ForkStarter.getSuitesIterator(ForkStarter.java:317)
>       at 
> org.apache.maven.plugin.surefire.booterclient.ForkStarter.runSuitesForkPerTestSet(ForkStarter.java:149)
>       at 
> org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:118)
>       at 
> org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:199)
>       at 
> org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAllProviders(AbstractSurefireMojo.java:176)
>       at 
> org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:135)
>       at 
> org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:98)
>       at 
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
>       ... 20 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(DelegatingMethodAccessorImpl.java:25)
>       at java.lang.reflect.Method.invoke(Method.java:597)
>       at 
> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
>       ... 30 more
> Caused by: java.lang.ExceptionInInitializerError
>       at 
> com.apple.store.application.aspen.components.cto.ConfigurableProductTestUtil.<clinit>(ConfigurableProductTestUtil.java:84)
>       at 
> com.apple.store.application.aspen.action.cto.CTOConfigurableProductJSONActionTest.<clinit>(CTOConfigurableProductJSONActionTest.java:37)
>       at java.lang.Class.forName0(Native Method)
>       at java.lang.Class.forName(Class.java:169)
>       at org.junit.runner.Description.getTestClass(Description.java:207)
>       at 
> org.apache.maven.surefire.common.junit48.FilterFactory$GroupMatcherCategoryFilter.shouldRun(FilterFactory.java:207)
>       at 
> org.apache.maven.surefire.junitcore.JUnitCoreProvider.getSuitesAsList(JUnitCoreProvider.java:169)
>       at 
> org.apache.maven.surefire.junitcore.JUnitCoreProvider.getSuites(JUnitCoreProvider.java:102)
>       ... 35 more
> Caused by: java.lang.RuntimeException: Unexpected ClassNotFoundException 
> looking up class 'org.apache.maven.cli.MavenCli'
>       at 
> com.apple.store.environment.ClassUtilities.classForName(ClassUtilities.java:18)
>       at 
> com.apple.store.environment.ApplicationClassLocator.getAppClass(ApplicationClassLocator.java:120)
>       at 
> com.apple.store.environment.ApplicationClassLocator$MainClassLocationSource.getLocation(ApplicationClassLocator.java:16)
>       at 
> com.apple.store.environment.ApplicationClassLocator.getAppClassUrl(ApplicationClassLocator.java:128)
>       at 
> com.apple.store.toolkit.config.ConfigurationSearchPath.bootstrapSearchPath(ConfigurationSearchPath.java:194)
>       at 
> com.apple.store.toolkit.config.ConfigurationManagerDelegate.searchPath(ConfigurationManagerDelegate.java:626)
>       at 
> com.apple.store.toolkit.config.ConfigurationManagerDelegate.bootstrap(ConfigurationManagerDelegate.java:312)
>       at 
> com.apple.store.toolkit.config.ConfigurationManagerDelegate.<init>(ConfigurationManagerDelegate.java:170)
>       at 
> com.apple.store.toolkit.config.ConfigurationManager.delegate(ConfigurationManager.java:177)
>       at 
> com.apple.store.toolkit.cache.CacheFactory.getCache(CacheFactory.java:277)
>       at 
> com.apple.store.toolkit.cache.CacheFactory.getCache(CacheFactory.java:228)
>       at 
> com.apple.store.domain.productoption.impl.ConfigurableProductServiceImpl.<clinit>(ConfigurableProductServiceImpl.java:56)
>       ... 43 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to