Question

Has anyone got a working solution for implementing jbehave-navigator sucessfully? I'm using version 3.7.5 of jbehave core/navigator.

I have tried importing the dependency and using maven-dependency-plugin to unpack it. This gets the page showing but with formatting issues (everything is out of alignment in all browsers) and none of the data from the report is included.

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-dependency-plugin</artifactId>
    <version>2.6</version>
    <executions>
        <execution>
            <id>unpack-jbehave-navigator</id>
            <phase>initialize</phase>
            <goals>
                <goal>unpack</goal>
            </goals>
            <configuration>
                <artifactItems>
                    <artifactItem>
                        <groupId>org.jbehave</groupId>
                        <artifactId>jbehave-navigator</artifactId>
                        <type>jar</type>
                        <outputDirectory>target/jbehave/view</outputDirectory>
                    </artifactItem>
                </artifactItems>
            </configuration>
        </execution>
    </executions>
</plugin>
Was it helpful?

Solution

It looks like the following two pages provide some detail on using/unpacking Navigator:

Take a look at the GitHub project's pom.xml file. It seems like there's some additional resource configuration, and also an unpack-view-resources goal in the jbehave-maven-plugin. The GitHub project looks like a working example.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top