Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
error when try to build maven
I have error when to build new vaadin project using maven. I had no problem when I create project using ivy.
Error messages:
[INFO] --- maven-compiler-plugin:3.0:compile (default-compile) @ demo-widgetset ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 4 source files to /Users/helmi/Documents/workspace/demo/demo-widgetset/target/classes
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] demo-parent ........................................ SUCCESS [ 0.322 s]
[INFO] demo-widgetset ..................................... FAILURE [ 1.171 s]
[INFO] demo-backend ....................................... SKIPPED
[INFO] demo-ui ............................................ SKIPPED
[INFO] demo-production .................................... SKIPPED
[INFO] -----------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.738 s
[INFO] Finished at: 2016-06-23T07:58:40+08:00
[INFO] Final Memory: 9M/23M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.0:compile (default-compile) on project demo-widgetset: Fatal error compiling: invalid target release: 1.8 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :demo-widgetset
What java version are you running? From the above error it seems your target is java 8
I solved it when switch from java 7 to 8. I had no problem when I used ivy with java 7