what is the output on reactor summary?
Please change the java.version on the parent pom to reproduce the problem and 
then run it on command line
for jbehave 4 for example 
<name>trulia with BDD</name>
        <url>http://maven.apache.org</url>

        <properties>
                <java.version>1.7</java.version>

mbp-3124:trulia mbrar$ mvn clean install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] trulia with BDD
[INFO] trulia-stories-java
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building trulia with BDD 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ trulia ---
[INFO] Deleting /Users/mbrar/Documents/workspace-sts-3.4.0.RELEASE/trulia/target
[INFO] 
[INFO] --- maven-install-plugin:2.4:install (default-install) @ trulia ---
[INFO] Installing 
/Users/mbrar/Documents/workspace-sts-3.4.0.RELEASE/trulia/pom.xml to 
/Users/mbrar/.m2/repository/com/trulia/stories/trulia/0.0.1-SNAPSHOT/trulia-0.0.1-SNAPSHOT.pom
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building trulia-stories-java 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ trulia-stories-java 
---
[INFO] Deleting 
/Users/mbrar/Documents/workspace-sts-3.4.0.RELEASE/trulia/trulia-stories-java/target
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ 
trulia-stories-java ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- jbehave-maven-plugin:4.0-beta-7:unpack-view-resources 
(unpack-view-resources) @ trulia-stories-java ---
[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/workspace-sts-3.4.0.RELEASE/trulia/trulia-stories-java/target/jbehave/view
[INFO] Unpacked 
/Users/mbrar/.m2/repository/org/jbehave/jbehave-core/4.0-beta-7/jbehave-core-4.0-beta-7-resources.zip
 to 
/Users/mbrar/Documents/workspace-sts-3.4.0.RELEASE/trulia/trulia-stories-java/target/jbehave/view
[INFO] 
[INFO] --- maven-dependency-plugin:2.8:unpack (unpack-resources-core) @ 
trulia-stories-java ---
[INFO] Configured Artifact: org.jbehave:jbehave-navigator:4.0-beta-7:jar
[INFO] Unpacking 
/Users/mbrar/.m2/repository/org/jbehave/jbehave-navigator/4.0-beta-7/jbehave-navigator-4.0-beta-7.jar
 to 
/Users/mbrar/Documents/workspace-sts-3.4.0.RELEASE/trulia/trulia-stories-java/target/jbehave/view
 with includes "" and excludes "**/*.class"
[INFO] 
[INFO] --- maven-resources-plugin:2.6:copy-resources (copy-custom-resources) @ 
trulia-stories-java ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 
/Users/mbrar/Documents/workspace-sts-3.4.0.RELEASE/trulia/trulia-stories-java/src/main/webapp
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ 
trulia-stories-java ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 24 source files to 
/Users/mbrar/Documents/workspace-sts-3.4.0.RELEASE/trulia/trulia-stories-java/target/classes
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] trulia with BDD ................................... SUCCESS [1.457s]
[INFO] trulia-stories-java ............................... FAILURE [3.593s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.379s
[INFO] Finished at: Thu May 15 07:18:14 PDT 2014
[INFO] Final Memory: 10M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on 
project trulia-stories-java: Fatal error compiling: invalid target release: 1.7 
-> [Help 1]

for jbehave 3.9.2
mvn clean install -Pstable
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] trulia with BDD
[INFO] trulia-stories-java
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building trulia with BDD 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ trulia ---
[INFO] 
[INFO] --- maven-install-plugin:2.4:install (default-install) @ trulia ---
[INFO] Installing 
/Users/mbrar/Documents/workspace-sts-3.4.0.RELEASE/trulia/pom.xml to 
/Users/mbrar/.m2/repository/com/trulia/stories/trulia/0.0.1-SNAPSHOT/trulia-0.0.1-SNAPSHOT.pom
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building trulia-stories-java 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ trulia-stories-java 
---
[INFO] Deleting 
/Users/mbrar/Documents/workspace-sts-3.4.0.RELEASE/trulia/trulia-stories-java/target
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ 
trulia-stories-java ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- jbehave-maven-plugin:3.9.2:unpack-view-resources 
(unpack-view-resources) @ trulia-stories-java ---
[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/workspace-sts-3.4.0.RELEASE/trulia/trulia-stories-java/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/workspace-sts-3.4.0.RELEASE/trulia/trulia-stories-java/target/jbehave/view
[INFO] 
[INFO] --- maven-dependency-plugin:2.8:unpack (unpack-resources-core) @ 
trulia-stories-java ---
[INFO] Configured Artifact: org.jbehave:jbehave-navigator:3.9.2:jar
[INFO] Unpacking 
/Users/mbrar/.m2/repository/org/jbehave/jbehave-navigator/3.9.2/jbehave-navigator-3.9.2.jar
 to 
/Users/mbrar/Documents/workspace-sts-3.4.0.RELEASE/trulia/trulia-stories-java/target/jbehave/view
 with includes "" and excludes "**/*.class"
[INFO] 
[INFO] --- maven-resources-plugin:2.6:copy-resources (copy-custom-resources) @ 
trulia-stories-java ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 
/Users/mbrar/Documents/workspace-sts-3.4.0.RELEASE/trulia/trulia-stories-java/src/main/webapp
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ 
trulia-stories-java ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 24 source files to 
/Users/mbrar/Documents/workspace-sts-3.4.0.RELEASE/trulia/trulia-stories-java/target/classes
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] trulia with BDD ................................... SUCCESS [0.257s]
[INFO] trulia-stories-java ............................... FAILURE [1.679s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.052s
[INFO] Finished at: Thu May 15 07:20:26 PDT 2014
[INFO] Final Memory: 10M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on 
project trulia-stories-java: Fatal error compiling: invalid target release: 1.7 
-> [Help 1]
[ERROR]

On May 14, 2014, at 11:54 PM, Mauro Talevi <mauro.tal...@aquilonia.org> wrote:

> Can't reproduce the problem - works with either java.version=1.6 or 1.7. 
> 
> Using:
> 
> $ mvn -v
> Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 
> 2014-02-14T18:37:52+01:00)
> Maven home: /Users/mauro/applications/mvn
> Java version: 1.7.0_40, vendor: Oracle Corporation
> Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "mac os x", version: "10.9.2", arch: "x86_64", family: "mac"
> 
> Also tested with mvn 3.0.5. 
> 
> 
> On 15/05/2014 00:44, Manav Brar wrote:
>> you should have a email with invite to
>> https://manavb...@bitbucket.org/manavbrar/fordevs.git
>> 
>> This is something I did at work the stories will not work as they are 
>> against an old version of our site
>> 
>> 
>> On Wed, May 14, 2014 at 2:50 PM, Mauro Talevi <mauro.tal...@aquilonia.org> 
>> wrote:
>> JDK 1.7 is already supported.  The latest version has been tested with 
>> different flavours of Java 7. 
>> 
>> I'm not sure why you have this issue.  Can you provide a sample project that 
>> reproduced the problem? 
>> 
>> On 14/05/2014 23:47, Manav Brar wrote:
>>> can we add support for java 1.7
>>> 
>>> when I set the maven compiler target to 1.7 get error
>>> [ERROR] Failed to execute goal 
>>> org.jbehave:jbehave-maven-plugin:3.9.2:run-stories-as-embeddables 
>>> (embeddable-stories) on project trulia-stories-java: Execution 
>>> embeddable-stories of goal 
>>> org.jbehave:jbehave-maven-plugin:3.9.2:run-stories-as-embeddables failed: 
>>> An API incompatibility was encountered while executing 
>>> org.jbehave:jbehave-maven-plugin:3.9.2:run-stories-as-embeddables: 
>>> java.lang.UnsupportedClassVersionError: com/trulia/stories/TruliaStories : 
>>> Unsupported major.minor version 51.0
>>> 
>>> on switching back to maven compiler target to 1.6
>>> everything looks fine
>>> 
>>> 
>>> -- 
>>> thanking you
>>> Manav
>>> (562)304-1785
>> 
>> 
>> 
>> 
>> 
>> -- 
>> thanking you
>> Manav
>> (562)304-1785
> 

Reply via email to