Compilation errors in archetypes

Description

Hi everyone,

Following my discussion with Valery, I create an issue.


I used the JBEHAVE archetype to generate a simple project.
The generated project does not compile.

1 - The commands for the archetype

mvn archetype:generate -Dfilter=org.jbehave:jbehave

[INFO] No archetype defined. Using maven-archetype-quickstart (org.apache.maven.archetypes:maven-archetype-quickstart:1.0)
Choose archetype:
1: remote -> org.jbehave:jbehave-groovy-archetype (An archetype to run multiple textual stories with steps classes written in Groovy.)
2: remote -> org.jbehave:jbehave-guice-archetype (An archetype to run multiple textual stories configured programmatically but with steps classes composed using Guice.)
3: remote -> org.jbehave:jbehave-needle-archetype (An archetype to run multiple textual stories configured programmatically but with steps classes composed using Needle.)
4: remote -> org.jbehave:jbehave-pico-archetype (An archetype to run multiple textual stories configured programmatically but with steps classes composed using Pico.)
5: remote -> org.jbehave:jbehave-simple-archetype (An archetype to run multiple textual stories configured programmatically.)
6: remote -> org.jbehave:jbehave-spring-archetype (An archetype to run multiple textual stories configured programmatically but with steps classes composed using Spring.)
7: remote -> org.jbehave.web:jbehave-web-selenium-flash-archetype (An archetype to run web Flash stories using Selenium.)
8: remote -> org.jbehave.web:jbehave-web-selenium-groovy-pico-archetype (An archetype to run web stories using Selenium, Groovy and Pico.)
9: remote -> org.jbehave.web:jbehave-web-selenium-java-spring-archetype (An archetype to run web stories using Selenium, Java and Spring.)
Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): : 5

2 - When we do MVN CLEAN INSTALL, there is the error.

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.1:compile (default-compile) on project goodstep434: Compilation failure
[ERROR] \Data\development\WorkspaceBDD\jbehave-janvier-2019\goodstep434\src\main\java\com\training\MyStories.java:[55,77] error: incompatible types: LocalizedKeywords cannot be converted to ResourceLoader
[ERROR]

3 - The solution in the code is the following.

Old line:
// ExamplesTableFactory examplesTableFactory = new ExamplesTableFactory(new LocalizedKeywords(), new LoadFromClasspath(embeddableClass), parameterConverters, new TableTransformers());
New Line
ExamplesTableFactory examplesTableFactory = new ExamplesTableFactory(new LocalizedKeywords(), new LoadFromClasspath(embeddableClass), new TableTransformers());

Thank you very much
Kind Regards

Attachments

1

Activity

Show:

Mauro Talevi February 13, 2019 at 5:38 PM

Pulled with thanks

Valery Yatsynovich February 11, 2019 at 10:00 PM

Hi ,

Could you please review the pull request: https://github.com/jbehave/jbehave-core/pull/226/files?w=1?

Thanks

CC:

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created February 6, 2019 at 1:04 PM
Updated February 17, 2019 at 10:22 AM
Resolved February 13, 2019 at 5:38 PM