尝试执行我的项目时遇到异常? “分叉过程中出现错误”

时间:2018-10-03 05:48:42

标签: jenkins testng pom.xml

我遇到了这个错误:

  

在classpath:com.qa.Testcases.CreateAdminTest中找不到类   org.apache.maven.surefire.booter.SurefireBooterForkException:存在   是分叉过程中的错误

     在

  org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:658)     在   org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:533)     在   org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:278)     在   org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:244)     在   org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1194)     在   org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:1022)     在   org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:868)     在   org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)     在   org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)     在   org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)     在   org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)     在   org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)     在   org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)     在   org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)     在   org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)     在org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)处   org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)在   org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)在   org.jvnet.hudson.maven3.launcher.Maven35Launcher.main(Maven35Launcher.java:130)

1 个答案:

答案 0 :(得分:0)

检查项目中是否存在.class文件。

这必须是您的课程文件:com.qa.Testcases.CreateAdminTest