jbehave works fine with 1.6, this is important as I have a multi-module project tried to java 7 not possible for me to compile on java 6 at this point.
please follow instructions on maven plugin on how to set a target jvm on a project http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-source-and-target.html with above instruction tried on mvn archetype:generate -Dfilter=org.jbehave:jbehave [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Maven Stub Project (No POM) 1 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] >>> maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom >>> [INFO] [INFO] <<< maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom <<< [INFO] [INFO] --- maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom --- [INFO] Generating project in Interactive mode [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): : 6 Choose org.jbehave:jbehave-spring-archetype version: made the following changes when I add <groupId>com.gmail.manav.brar</groupId> <artifactId>bdd-spring</artifactId> <version>1.0-SNAPSHOT</version> <name>JBehave Stories</name> <properties> <java.version>1.7</java.version> <plugin.lifecycle.version>1.0.0</plugin.lifecycle.version> <jbehave.core.version>3.9.2</jbehave.core.version> <jbehave.site.version>3.1.1</jbehave.site.version> <embeddables>**/*Stories.java</embeddables> </properties> ... <build> <resources> <resource> <directory>src/main/java</directory> <filtering>true</filtering> <excludes> <exclude>**/*.java</exclude> </excludes> </resource> <resource> <directory>src/main/resources</directory> <filtering>true</filtering> </resource> </resources> <pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.1</version> <configuration> <source>${java.version}</source> <target>${java.version}</target> </configuration> </plugin> mvn clean install [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building JBehave Stories 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ bdd-spring --- [INFO] Deleting /Users/mbrar/Documents/experiments/bdd-spring/target [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ bdd-spring --- [WARNING] File encoding has not been set, using platform encoding MacRoman, i.e. build is platform dependent! [WARNING] Using platform encoding (MacRoman actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 0 resource [INFO] Copying 2 resources [INFO] [INFO] --- jbehave-maven-plugin:3.9.2:unpack-view-resources (unpack-view-resources) @ bdd-spring --- [INFO] Unpacked /Users/mbrar/.m2/repository/org/jbehave/site/jbehave-site-resources/3.1.1/jbehave-site-resources-3.1.1.zip to /Users/mbrar/Documents/experiments/bdd-spring/target/jbehave/view [INFO] Unpacked /Users/mbrar/.m2/repository/org/jbehave/jbehave-core/3.9.2/jbehave-core-3.9.2-resources.zip to /Users/mbrar/Documents/experiments/bdd-spring/target/jbehave/view [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ bdd-spring --- [INFO] Changes detected - recompiling the module! [WARNING] File encoding has not been set, using platform encoding MacRoman, i.e. build is platform dependent! [INFO] Compiling 2 source files to /Users/mbrar/Documents/experiments/bdd-spring/target/classes [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.362s [INFO] Finished at: Thu May 15 08:28:43 PDT 2014 [INFO] Final Memory: 7M/81M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project bdd-spring: Fatal error compiling: invalid target release: 1.7 -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch
