serenity-bdd / serenity-maven-plugin

19 stars 21 forks source link

Maven plugin error - missing EnvironmentVariables class #44

Closed dajester2013 closed 8 years ago

dajester2013 commented 8 years ago

I copied the maven POM from the user guide, and tried running mvn verify, but got the following error. I do not have any tests set up yet, but this seems to be failing before even reaching that point.

[WARNING] Error injecting: net.serenitybdd.maven.plugins.SerenityAggregatorMojo
java.lang.NoClassDefFoundError: Lnet/thucydides/core/util/EnvironmentVariables;

...

[ERROR] Failed to execute goal net.serenity-bdd.maven.plugins:serenity-maven-plugin:1.0.47:aggregate (serenity-reports) on project serenity-tests: Execution serenity-reports of goal net.serenity-bdd.maven.plugins:serenity-maven-plugin:1.0.47:aggregate failed: A required class was missing while executing net.serenity-bdd.maven.plugins:serenity-maven-plugin:1.0.47:aggregate: Lnet/thucydides/core/util/EnvironmentVariables;
wakaleo commented 8 years ago

The versions quoted in the documentation are a bit dated (they will be updated in the next week or so) - the best way to start is to use the maven archetype, as described in this tutorial: http://johnfergusonsmart.com/presentations/serenity-bdd-tutorial-1-introduction-web-testing-serenity-bdd/

dajester2013 commented 8 years ago

Ah, thank you - I actually just found a demo repo, but I will use the archetypes instead.

YamStranger commented 8 years ago

It seems that this ticket is solved. For documentation created additional issue - will be fixed soon.