serenity-bdd / serenity-core

Serenity BDD is a test automation library designed to make writing automated acceptance tests easier, and more fun.
http://serenity-bdd.info
Other
721 stars 517 forks source link

Error injecting: net.serenitybdd.maven.plugins.SerenityAggregatorMojo java.lang.TypeNotPresentException: Type net.serenitybdd.maven.plugins.SerenityAggregatorMojo not present #1125

Closed vi123ch closed 6 years ago

vi123ch commented 6 years ago

Hello I am having an error for serenity reports generation. I am new to java. Please help me!

[INFO] Scanning for projects... [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building sample 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ sample --- [INFO] Deleting C:\Users... [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ sample --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ sample --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ sample --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 21 resources [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ sample --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 91 source files to C:\Users... [INFO] [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ sample --- [INFO] Tests are skipped. [INFO] [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ sample --- [INFO] Building jar: C:\Users...\target\sample-0.0.1-SNAPSHOT.jar [INFO] [INFO] --- maven-failsafe-plugin:2.18.1:integration-test (default) @ sample --- [INFO] [INFO] --- serenity-maven-plugin:1.8.3:aggregate (serenity-reports) @ sample --- [WARNING] Error injecting: net.serenitybdd.maven.plugins.SerenityAggregatorMojo java.lang.TypeNotPresentException: Type net.serenitybdd.maven.plugins.SerenityAggregatorMojo not present at org.eclipse.sisu.space.URLClassSpace.loadClass(URLClassSpace.java:147) at org.eclipse.sisu.space.NamedClass.load(NamedClass.java:46) at org.eclipse.sisu.space.AbstractDeferredClass.get(AbstractDeferredClass.java:48) at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:81) at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:53) at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:65) at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:115) at org.eclipse.sisu.bean.BeanScheduler$Activator.onProvision(BeanScheduler.java:176) at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:126) at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:68) at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:63) at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:45) at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1016) at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092) at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1012) at org.eclipse.sisu.inject.Guice4$1.get(Guice4.java:162) at org.eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.java:81) at org.eclipse.sisu.plexus.LazyPlexusBean.getValue(LazyPlexusBean.java:51) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:263) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:255) at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:517) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:121) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207) 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:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) at org.apache.maven.cli.MavenCli.main(MavenCli.java:199) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) Caused by: java.lang.UnsupportedClassVersionError: net/serenitybdd/maven/plugins/SerenityAggregatorMojo : Unsupported major.minor version 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:800) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:449) at java.net.URLClassLoader.access$100(URLClassLoader.java:71) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClassFromSelf(ClassRealm.java:401) at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:42) at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239) at org.eclipse.sisu.space.URLClassSpace.loadClass(URLClassSpace.java:139) ... 42 more [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 7.850 s [INFO] Finished at: 2018-02-09T10:28:21+01:00 [INFO] Final Memory: 30M/254M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal net.serenity-bdd.maven.plugins:serenity-maven-plugin:1.8.3:aggregate (serenity-reports) on project sample: Execution serenity-reports of goal net.serenity-bdd.maven.plugins:serenity-maven-plugin:1.8.3:aggregate failed: Unable to load the mojo 'aggregate' in the plugin 'net.serenity-bdd.maven.plugins:serenity-maven-plugin:1.8.3' due to an API incompatibility: org.codehaus.plexus.component.repository.exception.ComponentLookupException: net/serenitybdd/maven/plugins/SerenityAggregatorMojo : Unsupported major.minor version 52.0 [ERROR] ----------------------------------------------------- [ERROR] realm = plugin>net.serenity-bdd.maven.plugins:serenity-maven-plugin:1.8.3 [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy [ERROR] urls[0] = file:/C:/.../soft/maven/.m2/net/serenity-bdd/maven/plugins/serenity-maven-plugin/1.8.3/serenity-maven-plugin-1.8.3.jar [ERROR] urls[1] = file:/C:/.../soft/maven/.m2/net/serenity-bdd/serenity-core/1.8.3/serenity-core-1.8.3.jar [ERROR] urls[2] = file:/C:/.../soft/maven/.m2/com/google/guava/guava/23.0/guava-23.0.jar [ERROR] urls[3] = file:/C:/.../soft/maven/.m2/com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.jar [ERROR] urls[4] = file:/C:/.../soft/maven/.m2/com/google/errorprone/error_prone_annotations/2.0.18/error_prone_annotations-2.0.18.jar [ERROR] urls[5] = file:/C:/.../soft/maven/.m2/com/google/j2objc/j2objc-annotations/1.1/j2objc-annotations-1.1.jar [ERROR] urls[6] = file:/C:/.../soft/maven/.m2/org/codehaus/mojo/animal-sniffer-annotations/1.14/animal-sniffer-annotations-1.14.jar [ERROR] urls[7] = file:/C:/.../soft/maven/.m2/com/google/inject/guice/4.1.0/guice-4.1.0.jar [ERROR] urls[8] = file:/C:/.../soft/maven/.m2/aopalliance/aopalliance/1.0/aopalliance-1.0.jar [ERROR] urls[9] = file:/C:/.../soft/maven/.m2/cglib/cglib/3.2.5/cglib-3.2.5.jar [ERROR] urls[10] = file:/C:/.../soft/maven/.m2/org/apache/ant/ant/1.9.6/ant-1.9.6.jar [ERROR] urls[11] = file:/C:/.../soft/maven/.m2/org/apache/ant/ant-launcher/1.9.6/ant-launcher-1.9.6.jar [ERROR] urls[12] = file:/C:/.../soft/maven/.m2/org/ow2/asm/asm/5.0.3/asm-5.0.3.jar [ERROR] urls[13] = file:/C:/.../soft/maven/.m2/commons-codec/commons-codec/1.10/commons-codec-1.10.jar [ERROR] urls[14] = file:/C:/.../soft/maven/.m2/org/objenesis/objenesis/2.6/objenesis-2.6.jar [ERROR] urls[15] = file:/C:/.../soft/maven/.m2/xml-apis/xml-apis/1.4.01/xml-apis-1.4.01.jar [ERROR] urls[16] = file:/C:/.../soft/maven/.m2/io/cucumber/cucumber-core/2.1.0/cucumber-core-2.1.0.jar [ERROR] urls[17] = file:/C:/.../soft/maven/.m2/info/cukes/cucumber-html/0.2.6/cucumber-html-0.2.6.jar [ERROR] urls[18] = file:/C:/.../soft/maven/.m2/io/cucumber/cucumber-jvm-deps/1.0.6/cucumber-jvm-deps-1.0.6.jar [ERROR] urls[19] = file:/C:/.../soft/maven/.m2/io/cucumber/gherkin/5.0.0/gherkin-5.0.0.jar [ERROR] urls[20] = file:/C:/.../soft/maven/.m2/io/cucumber/tag-expressions/1.0.1/tag-expressions-1.0.1.jar [ERROR] urls[21] = file:/C:/.../soft/maven/.m2/commons-logging/commons-logging/1.2/commons-logging-1.2.jar [ERROR] urls[22] = file:/C:/.../soft/maven/.m2/junit/junit/4.12/junit-4.12.jar [ERROR] urls[23] = file:/C:/.../soft/maven/.m2/org/mockito/mockito-core/1.10.19/mockito-core-1.10.19.jar [ERROR] urls[24] = file:/C:/.../soft/maven/.m2/net/bytebuddy/byte-buddy/1.7.5/byte-buddy-1.7.5.jar [ERROR] urls[25] = file:/C:/.../soft/maven/.m2/io/vavr/vavr/0.9.0/vavr-0.9.0.jar [ERROR] urls[26] = file:/C:/.../soft/maven/.m2/io/vavr/vavr-match/0.9.0/vavr-match-0.9.0.jar [ERROR] urls[27] = file:/C:/.../soft/maven/.m2/net/serenity-bdd/serenity-report-resources/1.8.3/serenity-report-resources-1.8.3.jar [ERROR] urls[28] = file:/C:/.../soft/maven/.m2/com/google/code/gson/gson/2.8.0/gson-2.8.0.jar [ERROR] urls[29] = file:/C:/.../soft/maven/.m2/commons-io/commons-io/2.5/commons-io-2.5.jar [ERROR] urls[30] = file:/C:/.../soft/maven/.m2/com/opera/operadriver/1.5/operadriver-1.5.jar [ERROR] urls[31] = file:/C:/.../soft/maven/.m2/com/opera/operalaunchers/1.1/operalaunchers-1.1.jar [ERROR] urls[32] = file:/C:/.../soft/maven/.m2/com/google/protobuf/protobuf-java/2.4.1/protobuf-java-2.4.1.jar [ERROR] urls[33] = file:/C:/.../soft/maven/.m2/commons-jxpath/commons-jxpath/1.3/commons-jxpath-1.3.jar [ERROR] urls[34] = file:/C:/.../soft/maven/.m2/org/ini4j/ini4j/0.5.2/ini4j-0.5.2.jar [ERROR] urls[35] = file:/C:/.../soft/maven/.m2/org/seleniumhq/selenium/selenium-server/3.7.1/selenium-server-3.7.1.jar [ERROR] urls[36] = file:/C:/.../soft/maven/.m2/org/seleniumhq/selenium/selenium-firefox-driver/3.7.1/selenium-firefox-driver-3.7.1.jar [ERROR] urls[37] = file:/C:/.../soft/maven/.m2/org/seleniumhq/selenium/selenium-ie-driver/3.7.1/selenium-ie-driver-3.7.1.jar [ERROR] urls[38] = file:/C:/.../soft/maven/.m2/org/seleniumhq/selenium/selenium-opera-driver/3.7.1/selenium-opera-driver-3.7.1.jar [ERROR] urls[39] = file:/C:/.../soft/maven/.m2/com/beust/jcommander/1.48/jcommander-1.48.jar [ERROR] urls[40] = file:/C:/.../soft/maven/.m2/org/apache/commons/commons-exec/1.3/commons-exec-1.3.jar [ERROR] urls[41] = file:/C:/.../soft/maven/.m2/org/w3c/css/sac/1.3/sac-1.3.jar [ERROR] urls[42] = file:/C:/.../soft/maven/.m2/net/sourceforge/cssparser/cssparser/0.9.23/cssparser-0.9.23.jar [ERROR] urls[43] = file:/C:/.../soft/maven/.m2/net/sourceforge/htmlunit/htmlunit-core-js/2.27/htmlunit-core-js-2.27.jar [ERROR] urls[44] = file:/C:/.../soft/maven/.m2/net/sourceforge/htmlunit/neko-htmlunit/2.27/neko-htmlunit-2.27.jar [ERROR] urls[45] = file:/C:/.../soft/maven/.m2/org/apache/httpcomponents/httpcore/4.4.6/httpcore-4.4.6.jar [ERROR] urls[46] = file:/C:/.../soft/maven/.m2/net/jcip/jcip-annotations/1.0/jcip-annotations-1.0.jar [ERROR] urls[47] = file:/C:/.../soft/maven/.m2/org/seleniumhq/selenium/jetty-repacked/9.4.5.v20170502/jetty-repacked-9.4.5.v20170502.jar [ERROR] urls[48] = file:/C:/.../soft/maven/.m2/org/eclipse/jetty/jetty-client/9.4.5.v20170502/jetty-client-9.4.5.v20170502.jar [ERROR] urls[49] = file:/C:/.../soft/maven/.m2/org/eclipse/jetty/jetty-http/9.4.5.v20170502/jetty-http-9.4.5.v20170502.jar [ERROR] urls[50] = file:/C:/.../soft/maven/.m2/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0.jar [ERROR] urls[51] = file:/C:/.../soft/maven/.m2/org/eclipse/jetty/websocket/websocket-api/9.4.5.v20170502/websocket-api-9.4.5.v20170502.jar [ERROR] urls[52] = file:/C:/.../soft/maven/.m2/org/eclipse/jetty/websocket/websocket-client/9.4.5.v20170502/websocket-client-9.4.5.v20170502.jar [ERROR] urls[53] = file:/C:/.../soft/maven/.m2/org/eclipse/jetty/websocket/websocket-common/9.4.5.v20170502/websocket-common-9.4.5.v20170502.jar [ERROR] urls[54] = file:/C:/.../soft/maven/.m2/xerces/xercesImpl/2.11.0/xercesImpl-2.11.0.jar [ERROR] urls[55] = file:/C:/.../soft/maven/.m2/org/yaml/snakeyaml/1.15/snakeyaml-1.15.jar [ERROR] urls[56] = file:/C:/.../soft/maven/.m2/org/seleniumhq/selenium/selenium-java/3.7.1/selenium-java-3.7.1.jar [ERROR] urls[57] = file:/C:/.../soft/maven/.m2/org/seleniumhq/selenium/selenium-api/3.7.1/selenium-api-3.7.1.jar [ERROR] urls[58] = file:/C:/.../soft/maven/.m2/org/seleniumhq/selenium/selenium-chrome-driver/3.7.1/selenium-chrome-driver-3.7.1.jar [ERROR] urls[59] = file:/C:/.../soft/maven/.m2/org/seleniumhq/selenium/selenium-edge-driver/3.7.1/selenium-edge-driver-3.7.1.jar [ERROR] urls[60] = file:/C:/.../soft/maven/.m2/org/seleniumhq/selenium/selenium-remote-driver/3.7.1/selenium-remote-driver-3.7.1.jar [ERROR] urls[61] = file:/C:/.../soft/maven/.m2/org/seleniumhq/selenium/selenium-safari-driver/3.7.1/selenium-safari-driver-3.7.1.jar [ERROR] urls[62] = file:/C:/.../soft/maven/.m2/org/seleniumhq/selenium/selenium-support/3.7.1/selenium-support-3.7.1.jar [ERROR] urls[63] = file:/C:/.../soft/maven/.m2/com/codeborne/phantomjsdriver/1.4.3/phantomjsdriver-1.4.3.jar [ERROR] urls[64] = file:/C:/.../soft/maven/.m2/org/eclipse/jetty/jetty-util/9.4.5.v20170502/jetty-util-9.4.5.v20170502.jar [ERROR] urls[65] = file:/C:/.../soft/maven/.m2/org/eclipse/jetty/jetty-io/9.4.5.v20170502/jetty-io-9.4.5.v20170502.jar [ERROR] urls[66] = file:/C:/.../soft/maven/.m2/org/seleniumhq/selenium/htmlunit-driver/2.27/htmlunit-driver-2.27.jar [ERROR] urls[67] = file:/C:/.../soft/maven/.m2/io/appium/java-client/5.0.4/java-client-5.0.4.jar [ERROR] urls[68] = file:/C:/.../soft/maven/.m2/commons-validator/commons-validator/1.6/commons-validator-1.6.jar [ERROR] urls[69] = file:/C:/.../soft/maven/.m2/commons-beanutils/commons-beanutils/1.9.2/commons-beanutils-1.9.2.jar [ERROR] urls[70] = file:/C:/.../soft/maven/.m2/commons-digester/commons-digester/1.8.1/commons-digester-1.8.1.jar [ERROR] urls[71] = file:/C:/.../soft/maven/.m2/org/springframework/spring-context/5.0.0.RELEASE/spring-context-5.0.0.RELEASE.jar [ERROR] urls[72] = file:/C:/.../soft/maven/.m2/org/springframework/spring-aop/5.0.0.RELEASE/spring-aop-5.0.0.RELEASE.jar [ERROR] urls[73] = file:/C:/.../soft/maven/.m2/org/springframework/spring-beans/5.0.0.RELEASE/spring-beans-5.0.0.RELEASE.jar [ERROR] urls[74] = file:/C:/.../soft/maven/.m2/org/springframework/spring-core/5.0.0.RELEASE/spring-core-5.0.0.RELEASE.jar [ERROR] urls[75] = file:/C:/.../soft/maven/.m2/org/springframework/spring-jcl/5.0.0.RELEASE/spring-jcl-5.0.0.RELEASE.jar [ERROR] urls[76] = file:/C:/.../soft/maven/.m2/org/springframework/spring-expression/5.0.0.RELEASE/spring-expression-5.0.0.RELEASE.jar [ERROR] urls[77] = file:/C:/.../soft/maven/.m2/org/aspectj/aspectjweaver/1.8.11/aspectjweaver-1.8.11.jar [ERROR] urls[78] = file:/C:/.../soft/maven/.m2/org/openpnp/opencv/3.2.0-1/opencv-3.2.0-1.jar [ERROR] urls[79] = file:/C:/.../soft/maven/.m2/org/codehaus/groovy/groovy/2.4.12/groovy-2.4.12.jar [ERROR] urls[80] = file:/C:/.../soft/maven/.m2/net/sf/opencsv/opencsv/2.0/opencsv-2.0.jar [ERROR] urls[81] = file:/C:/.../soft/maven/.m2/commons-beanutils/commons-beanutils-core/1.8.3/commons-beanutils-core-1.8.3.jar [ERROR] urls[82] = file:/C:/.../soft/maven/.m2/joda-time/joda-time/2.7/joda-time-2.7.jar [ERROR] urls[83] = file:/C:/.../soft/maven/.m2/com/thoughtworks/xstream/xstream/1.4.9/xstream-1.4.9.jar [ERROR] urls[84] = file:/C:/.../soft/maven/.m2/xmlpull/xmlpull/1.1.3.1/xmlpull-1.1.3.1.jar [ERROR] urls[85] = file:/C:/.../soft/maven/.m2/xpp3/xpp3_min/1.1.4c/xpp3_min-1.1.4c.jar [ERROR] urls[86] = file:/C:/.../soft/maven/.m2/org/apache/commons/commons-lang3/3.4/commons-lang3-3.4.jar [ERROR] urls[87] = file:/C:/.../soft/maven/.m2/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2.jar [ERROR] urls[88] = file:/C:/.../soft/maven/.m2/org/freemarker/freemarker/2.3.23/freemarker-2.3.23.jar [ERROR] urls[89] = file:/C:/.../soft/maven/.m2/net/sourceforge/jexcelapi/jxl/2.6.12/jxl-2.6.12.jar [ERROR] urls[90] = file:/C:/.../soft/maven/.m2/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar [ERROR] urls[91] = file:/C:/.../soft/maven/.m2/org/hamcrest/hamcrest-library/1.3/hamcrest-library-1.3.jar [ERROR] urls[92] = file:/C:/.../soft/maven/.m2/net/sourceforge/htmlunit/htmlunit/2.27/htmlunit-2.27.jar [ERROR] urls[93] = file:/C:/.../soft/maven/.m2/org/apache/httpcomponents/httpclient/4.5.3/httpclient-4.5.3.jar [ERROR] urls[94] = file:/C:/.../soft/maven/.m2/org/apache/httpcomponents/httpmime/4.5.3/httpmime-4.5.3.jar [ERROR] urls[95] = file:/C:/.../soft/maven/.m2/org/fluentlenium/fluentlenium-core/0.10.2/fluentlenium-core-0.10.2.jar [ERROR] urls[96] = file:/C:/.../soft/maven/.m2/com/jhlabs/filters/2.0.235/filters-2.0.235.jar [ERROR] urls[97] = file:/C:/.../soft/maven/.m2/org/asciidoctor/asciidoctor-java-integration/0.1.4/asciidoctor-java-integration-0.1.4.jar [ERROR] urls[98] = file:/C:/.../soft/maven/.m2/org/jruby/jruby-complete/1.7.4/jruby-complete-1.7.4.jar [ERROR] urls[99] = file:/C:/.../soft/maven/.m2/org/imgscalr/imgscalr-lib/4.2/imgscalr-lib-4.2.jar [ERROR] urls[100] = file:/C:/.../soft/maven/.m2/javax/validation/validation-api/1.1.0.Final/validation-api-1.1.0.Final.jar [ERROR] urls[101] = file:/C:/.../soft/maven/.m2/org/hibernate/hibernate-validator/5.1.1.Final/hibernate-validator-5.1.1.Final.jar [ERROR] urls[102] = file:/C:/.../soft/maven/.m2/org/jboss/logging/jboss-logging/3.1.3.GA/jboss-logging-3.1.3.GA.jar [ERROR] urls[103] = file:/C:/.../soft/maven/.m2/com/fasterxml/classmate/1.0.0/classmate-1.0.0.jar [ERROR] urls[104] = file:/C:/.../soft/maven/.m2/javax/el/javax.el-api/2.2.4/javax.el-api-2.2.4.jar [ERROR] urls[105] = file:/C:/.../soft/maven/.m2/org/glassfish/web/javax.el/2.2.4/javax.el-2.2.4.jar [ERROR] urls[106] = file:/C:/.../soft/maven/.m2/xalan/xalan/2.7.2/xalan-2.7.2.jar [ERROR] urls[107] = file:/C:/.../soft/maven/.m2/xalan/serializer/2.7.2/serializer-2.7.2.jar [ERROR] urls[108] = file:/C:/.../soft/maven/.m2/org/awaitility/awaitility/3.0.0/awaitility-3.0.0.jar [ERROR] urls[109] = file:/C:/.../soft/maven/.m2/com/typesafe/config/1.3.1/config-1.3.1.jar [ERROR] urls[110] = file:/C:/.../soft/maven/.m2/org/jsoup/jsoup/1.10.3/jsoup-1.10.3.jar [ERROR] urls[111] = file:/C:/.../soft/maven/.m2/com/google/jimfs/jimfs/1.1/jimfs-1.1.jar [ERROR] urls[112] = file:/C:/.../soft/maven/.m2/es/nitaur/markdown/txtmark/0.16/txtmark-0.16.jar [ERROR] urls[113] = file:/C:/.../soft/maven/.m2/com/vladsch/flexmark/flexmark-all/0.26.4/flexmark-all-0.26.4.jar [ERROR] urls[114] = file:/C:/.../soft/maven/.m2/com/vladsch/flexmark/flexmark/0.26.4/flexmark-0.26.4.jar [ERROR] urls[115] = file:/C:/.../soft/maven/.m2/com/vladsch/flexmark/flexmark-ext-abbreviation/0.26.4/flexmark-ext-abbreviation-0.26.4.jar [ERROR] urls[116] = file:/C:/.../soft/maven/.m2/com/vladsch/flexmark/flexmark-ext-anchorlink/0.26.4/flexmark-ext-anchorlink-0.26.4.jar [ERROR] urls[117] = file:/C:/.../soft/maven/.m2/com/vladsch/flexmark/flexmark-ext-aside/0.26.4/flexmark-ext-aside-0.26.4.jar [ERROR] urls[118] = file:/C:/.../soft/maven/.m2/com/vladsch/flexmark/flexmark-ext-autolink/0.26.4/flexmark-ext-autolink-0.26.4.jar [ERROR] urls[119] = file:/C:/.../soft/maven/.m2/org/nibor/autolink/autolink/0.6.0/autolink-0.6.0.jar [ERROR] urls[120] = file:/C:/.../soft/maven/.m2/com/vladsch/flexmark/flexmark-ext-definition/0.26.4/flexmark-ext-definition-0.26.4.jar [ERROR] urls[121] = file:/C:/.../soft/maven/.m2/com/vladsch/flexmark/flexmark-ext-emoji/0.26.4/flexmark-ext-emoji-0.26.4.jar [ERROR] urls[122] = file:/C:/.../soft/maven/.m2/com/vladsch/flexmark/flexmark-ext-escaped-character/0.26.4/flexmark-ext-escaped-character-0.26.4.jar [ERROR] urls[123] = file:/C:/.../soft/maven/.m2/com/vladsch/flexmark/flexmark-ext-footnotes/0.26.4/flexmark-ext-footnotes-0.26.4.jar [ERROR] urls[124] = file:/C:/.../soft/maven/.m2/com/vladsch/flexmark/flexmark-ext-gfm-issues/0.26.4/flexmark-ext-gfm-issues-0.26.4.jar [ERROR] urls[125] = file:/C:/.../soft/maven/.m2/com/vladsch/flexmark/flexmark-ext-gfm-strikethrough/0.26.4/flexmark-ext-gfm-strikethrough-0.26.4.jar [ERROR] urls[126] = file:/C:/.../soft/maven/.m2/com/vladsch/flexmark/flexmark-ext-gfm-tables/0.26.4/flexmark-ext-gfm-tables-0.26.4.jar [ERROR] urls[127] = file:/C:/.../soft/maven/.m2/com/vladsch/flexmark/flexmark-ext-gfm-tasklist/0.26.4/flexmark-ext-gfm-tasklist-0.26.4.jar [ERROR] urls[128] = file:/C:/.../soft/maven/.m2/com/vladsch/flexmark/flexmark-ext-gfm-users/0.26.4/flexmark-ext-gfm-users-0.26.4.jar [ERROR] urls[129] = file:/C:/.../soft/maven/.m2/com/vladsch/flexmark/flexmark-ext-jekyll-front-matter/0.26.4/flexmark-ext-jekyll-front-matter-0.26.4.jar [ERROR] urls[130] = file:/C:/.../soft/maven/.m2/com/vladsch/flexmark/flexmark-ext-jekyll-tag/0.26.4/flexmark-ext-jekyll-tag-0.26.4.jar [ERROR] urls[131] = file:/C:/.../soft/maven/.m2/com/vladsch/flexmark/flexmark-ext-ins/0.26.4/flexmark-ext-ins-0.26.4.jar [ERROR] urls[132] = file:/C:/.../soft/maven/.m2/com/vladsch/flexmark/flexmark-ext-xwiki-macros/0.26.4/flexmark-ext-xwiki-macros-0.26.4.jar [ERROR] urls[133] = file:/C:/.../soft/maven/.m2/com/vladsch/flexmark/flexmark-ext-superscript/0.26.4/flexmark-ext-superscript-0.26.4.jar [ERROR] urls[134] = file:/C:/.../soft/maven/.m2/com/vladsch/flexmark/flexmark-ext-tables/0.26.4/flexmark-ext-tables-0.26.4.jar [ERROR] urls[135] = file:/C:/.../soft/maven/.m2/com/vladsch/flexmark/flexmark-ext-toc/0.26.4/flexmark-ext-toc-0.26.4.jar [ERROR] urls[136] = file:/C:/.../soft/maven/.m2/com/vladsch/flexmark/flexmark-ext-typographic/0.26.4/flexmark-ext-typographic-0.26.4.jar [ERROR] urls[137] = file:/C:/.../soft/maven/.m2/com/vladsch/flexmark/flexmark-ext-wikilink/0.26.4/flexmark-ext-wikilink-0.26.4.jar [ERROR] urls[138] = file:/C:/.../soft/maven/.m2/com/vladsch/flexmark/flexmark-ext-yaml-front-matter/0.26.4/flexmark-ext-yaml-front-matter-0.26.4.jar [ERROR] urls[139] = file:/C:/.../soft/maven/.m2/com/vladsch/flexmark/flexmark-formatter/0.26.4/flexmark-formatter-0.26.4.jar [ERROR] urls[140] = file:/C:/.../soft/maven/.m2/com/vladsch/flexmark/flexmark-html-parser/0.26.4/flexmark-html-parser-0.26.4.jar [ERROR] urls[141] = file:/C:/.../soft/maven/.m2/com/vladsch/flexmark/flexmark-jira-converter/0.26.4/flexmark-jira-converter-0.26.4.jar [ERROR] urls[142] = file:/C:/.../soft/maven/.m2/com/vladsch/flexmark/flexmark-pdf-converter/0.26.4/flexmark-pdf-converter-0.26.4.jar [ERROR] urls[143] = file:/C:/.../soft/maven/.m2/com/openhtmltopdf/openhtmltopdf-core/0.0.1-RC9/openhtmltopdf-core-0.0.1-RC9.jar [ERROR] urls[144] = file:/C:/.../soft/maven/.m2/com/openhtmltopdf/openhtmltopdf-pdfbox/0.0.1-RC9/openhtmltopdf-pdfbox-0.0.1-RC9.jar [ERROR] urls[145] = file:/C:/.../soft/maven/.m2/org/apache/pdfbox/pdfbox/2.0.4/pdfbox-2.0.4.jar [ERROR] urls[146] = file:/C:/.../soft/maven/.m2/org/apache/pdfbox/fontbox/2.0.4/fontbox-2.0.4.jar [ERROR] urls[147] = file:/C:/.../soft/maven/.m2/com/openhtmltopdf/openhtmltopdf-rtl-support/0.0.1-RC9/openhtmltopdf-rtl-support-0.0.1-RC9.jar [ERROR] urls[148] = file:/C:/.../soft/maven/.m2/com/ibm/icu/icu4j/58.1/icu4j-58.1.jar [ERROR] urls[149] = file:/C:/.../soft/maven/.m2/com/openhtmltopdf/openhtmltopdf-jsoup-dom-converter/0.0.1-RC9/openhtmltopdf-jsoup-dom-converter-0.0.1-RC9.jar [ERROR] urls[150] = file:/C:/.../soft/maven/.m2/com/vladsch/flexmark/flexmark-profile-pegdown/0.26.4/flexmark-profile-pegdown-0.26.4.jar [ERROR] urls[151] = file:/C:/.../soft/maven/.m2/com/vladsch/flexmark/flexmark-util/0.26.4/flexmark-util-0.26.4.jar [ERROR] urls[152] = file:/C:/.../soft/maven/.m2/com/vladsch/flexmark/flexmark-youtrack-converter/0.26.4/flexmark-youtrack-converter-0.26.4.jar [ERROR] urls[153] = file:/C:/.../soft/maven/.m2/org/apache/maven/maven-builder-support/3.5.0/maven-builder-support-3.5.0.jar [ERROR] urls[154] = file:/C:/.../soft/maven/.m2/org/apache/maven/maven-resolver-provider/3.5.0/maven-resolver-provider-3.5.0.jar [ERROR] urls[155] = file:/C:/.../soft/maven/.m2/org/apache/maven/resolver/maven-resolver-impl/1.0.3/maven-resolver-impl-1.0.3.jar [ERROR] urls[156] = file:/C:/.../soft/maven/.m2/org/apache/maven/resolver/maven-resolver-api/1.0.3/maven-resolver-api-1.0.3.jar [ERROR] urls[157] = file:/C:/.../soft/maven/.m2/org/apache/maven/resolver/maven-resolver-spi/1.0.3/maven-resolver-spi-1.0.3.jar [ERROR] urls[158] = file:/C:/.../soft/maven/.m2/org/apache/maven/resolver/maven-resolver-util/1.0.3/maven-resolver-util-1.0.3.jar [ERROR] urls[159] = file:/C:/.../soft/maven/.m2/org/apache/maven/shared/maven-shared-utils/3.1.0/maven-shared-utils-3.1.0.jar [ERROR] urls[160] = file:/C:/.../soft/maven/.m2/javax/enterprise/cdi-api/1.0/cdi-api-1.0.jar [ERROR] urls[161] = file:/C:/.../soft/maven/.m2/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar [ERROR] urls[162] = file:/C:/.../soft/maven/.m2/org/eclipse/sisu/org.eclipse.sisu.inject/0.3.3/org.eclipse.sisu.inject-0.3.3.jar [ERROR] urls[163] = file:/C:/.../soft/maven/.m2/org/codehaus/plexus/plexus-interpolation/1.24/plexus-interpolation-1.24.jar [ERROR] urls[164] = file:/C:/.../soft/maven/.m2/org/codehaus/plexus/plexus-utils/3.0.24/plexus-utils-3.0.24.jar [ERROR] urls[165] = file:/C:/.../soft/maven/.m2/org/codehaus/plexus/plexus-component-annotations/1.7.1/plexus-component-annotations-1.7.1.jar [ERROR] urls[166] = file:/C:/.../soft/maven/.m2/org/sonatype/plexus/plexus-sec-dispatcher/1.4/plexus-sec-dispatcher-1.4.jar [ERROR] urls[167] = file:/C:/.../soft/maven/.m2/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar [ERROR] urls[168] = file:/C:/.../soft/maven/.m2/org/apache/maven/reporting/maven-reporting-api/3.0/maven-reporting-api-3.0.jar [ERROR] urls[169] = file:/C:/.../soft/maven/.m2/org/apache/maven/doxia/doxia-sink-api/1.0/doxia-sink-api-1.0.jar [ERROR] urls[170] = file:/C:/.../soft/maven/.m2/org/apache/maven/plugin-tools/maven-plugin-annotations/3.5/maven-plugin-annotations-3.5.jar [ERROR] Number of foreign imports: 1 [ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]] [ERROR] [ERROR] ----------------------------------------------------- [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException

and please find the pom.xml

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

4.0.0
<groupId>com.test.sample</groupId>
<artifactId>aps-test-bdd</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>site-test-bdd</name>

<properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <serenity.version>1.8.3</serenity.version>
    <serenity.maven.version>1.8.3</serenity.maven.version>
    <serenity.cucumber.version>1.6.6</serenity.cucumber.version>
    <servlet.api.version>3.0.1</servlet.api.version>
    <slf4j.version>1.7.7</slf4j.version>
    <logback.classic.version>1.1.2</logback.classic.version>
    <webdriver.driver>iexplorer</webdriver.driver>
    <surefire.rerunFailingTestsCount>2</surefire.rerunFailingTestsCount>
     <webdriver.base.url>myurl</webdriver.base.url>
     <parallel.tests>4</parallel.tests>
     <encoding>UTF-8</encoding>
     <serenity.test.root></serenity.test.root>
</properties>

<dependencies>
    <dependency>
        <groupId>org.apache.commons</groupId>
        <artifactId>commons-lang3</artifactId>
        <version>3.5</version>
        <scope>test</scope>
    </dependency>

    <!-- Logging -->

    <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-api</artifactId>
        <version>${slf4j.version}</version>
    </dependency>

    <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>jcl-over-slf4j</artifactId>
        <version>${slf4j.version}</version>
    </dependency>

    <dependency>
        <groupId>ch.qos.logback</groupId>
        <artifactId>logback-classic</artifactId>
        <version>${logback.classic.version}</version>
    </dependency>
    <!-- Serenity Dependencies -->
    <dependency>
        <groupId>net.serenity-bdd</groupId>
        <artifactId>serenity-core</artifactId>
        <version>${serenity.version}</version>
        <exclusions>
            <exclusion>
                <artifactId>commons-logging</artifactId>
                <groupId>commons-logging</groupId>
            </exclusion>
        </exclusions>
    </dependency>
    <dependency>
        <groupId>net.serenity-bdd</groupId>
        <artifactId>serenity-junit</artifactId>
        <version>${serenity.version}</version>
        <exclusions>
            <exclusion>
                <artifactId>commons-logging</artifactId>
                <groupId>commons-logging</groupId>
            </exclusion>
        </exclusions>
    </dependency>

    <dependency>
        <groupId>net.serenity-bdd</groupId>
        <artifactId>serenity-cucumber</artifactId>
        <version>${serenity.cucumber.version}</version>
        <scope>test</scope>
        <exclusions>
            <exclusion>
                <artifactId>commons-logging</artifactId>
                <groupId>commons-logging</groupId>
            </exclusion>
        </exclusions>
    </dependency>
    <!-- Selenium Dependency -->
    <dependency>
        <groupId>org.seleniumhq.selenium</groupId>
        <artifactId>selenium-ie-driver</artifactId>
        <version>3.8.1</version>
        <exclusions>
            <exclusion>
                <artifactId>commons-logging</artifactId>
                <groupId>commons-logging</groupId>
            </exclusion>
        </exclusions>
    </dependency>
    <dependency>
        <groupId>org.seleniumhq.selenium</groupId>
        <artifactId>selenium-java</artifactId>
        <version>3.7.1</version>
        <exclusions>
            <exclusion>
                <artifactId>commons-logging</artifactId>
                <groupId>commons-logging</groupId>
            </exclusion>
        </exclusions>
    </dependency>

    <dependency>
        <groupId>com.btmatthews.selenium.junit4</groupId>
        <artifactId>selenium-junit4-runner</artifactId>
        <version>1.0.6</version>
    </dependency>
    <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>4.11</version>
    </dependency>
    <dependency>
        <groupId>javax.servlet</groupId>
        <artifactId>javax.servlet-api</artifactId>
        <version>${servlet.api.version}</version>
        <scope>provided</scope>
    </dependency>

</dependencies>
<build>
    <plugins>

     <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <version>2.18.1</version>
            <configuration>
            <skip>true</skip>
            </configuration>
        </plugin>
        <plugin>
            <artifactId>maven-failsafe-plugin</artifactId>
            <version>2.18.1</version>
            <configuration>
                <includes>
                    <include>**/runner/*.java</include>
                </includes>
                <!-- <testFailureIgnore>true</testFailureIgnore> -->
                 <systemPropertyVariables>
                    <webdriver.base.url>${webdriver.base.url}</webdriver.base.url>
                </systemPropertyVariables>
                 <parallel>classes</parallel>
                <threadCount>${parallel.tests}</threadCount>
                <forkCount>${parallel.tests}</forkCount>
            </configuration>
              <executions>
                <execution>
                    <goals>
                        <goal>integration-test</goal>
                        <goal>verify</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
        <plugin>
            <groupId>net.serenity-bdd.maven.plugins</groupId>
            <artifactId>serenity-maven-plugin</artifactId>
            <version>${serenity.maven.version}</version>
            <dependencies>
                <dependency>
                    <groupId>net.serenity-bdd</groupId>
                    <artifactId>serenity-core</artifactId>
                    <version>${serenity.version}</version>
                </dependency>
            </dependencies>
            <executions>
                <execution>
                    <id>serenity-reports</id>
                    <phase>post-integration-test</phase>
                    <goals>
                        <goal>aggregate</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
    </plugins>
</build>

wakaleo commented 6 years ago

This is a dependency conflict, not a Serenity issue. Start by using JUnit 4.12 and not 4.11, and use the maven dependency analysis tools to look for conflicting versions.

vi123ch commented 6 years ago

Thanks fixed it