<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Project-build-plugin 6.1 SNAPSHOT failed to build ivy project 6.1 due to source level: Java 1.8</title><link>https://answers.axonivy.com/questions/1660/project-build-plugin-6-1-snapshot-failed-to-build-ivy-project-6-1-due-to-source-level-java-1-8</link><description>&lt;p&gt;Hi Ivy team,
I used &lt;strong&gt;project-build-plugin 6.1 SNAPSHOT&lt;/strong&gt;&lt;br&gt;
However I was failed to build project due to source level: Java 1.8. &lt;/p&gt;
&lt;pre&gt;&lt;code&gt;PS C:\Users\trungnguyen\Desktop\HuyANh\standard&amp;gt; mvn clean verify -e
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
Downloading: &lt;a href="https://oss.sonatype.org/content/repositories/snapshots/com/axonivy/ivy/ci/project-build-plugin/6.1.0-SNAPS"&gt;https://oss.sonatype.org/content/repositories/snapshots/com/axonivy/ivy/ci/project-build-plugin/6.1.0-SNAPS&lt;/a&gt;
HOT/maven-metadata.xml
Downloaded: &lt;a href="https://oss.sonatype.org/content/repositories/snapshots/com/axonivy/ivy/ci/project-build-plugin/6.1.0-SNAPSH"&gt;https://oss.sonatype.org/content/repositories/snapshots/com/axonivy/ivy/ci/project-build-plugin/6.1.0-SNAPSH&lt;/a&gt;
OT/maven-metadata.xml (2 KB at 0.6 KB/sec)
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building standard 100.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ standard ---
[INFO] Deleting C:\Users\trungnguyen\Desktop\HuyANh\standard\target
[INFO] Deleting C:\Users\trungnguyen\Desktop\HuyANh\standard\classes
[INFO]
[INFO] --- maven-dependency-plugin:2.8:copy-dependencies (default) @ standard ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-conventions) @ standard ---
[INFO]
[INFO] --- project-build-plugin:6.1.0-SNAPSHOT:installEngine (default-installEngine) @ standard ---
[INFO] Compiling project for ivy version 6.1.0
[INFO]
[INFO] --- project-build-plugin:6.1.0-SNAPSHOT:compileProject (default-compileProject) @ standard ---
[INFO] Compiling ivy Project...
[INFO] Cleaning sources in [src_dataClasses]
[INFO] Generating java sources for 3 ivy DataClasses to [src_dataClasses]
[INFO] Cleaning output folders [classes]
[INFO] Compiling sources in [src, src_hd, src_rd, src_ws, src_wsproc, src_dataClasses] to output directory 'classes'
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 22.575 s
[INFO] Finished at: 2016-02-16T17:27:29+07:00
[INFO] Final Memory: 60M/613M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.axonivy.ivy.ci:project-build-plugin:6.1.0-SNAPSHOT:compileProject (default-compileProject) on project standard: Failed to compile project 'C:\Users\trungnguyen\Desktop\HuyANh\standard'. InvocationTargetException: Java compiler error : source level should be comprised in between '1.3' and '1.7' (or '5', '5.0', ..., '7' or '7
.0'): 1.8 -&amp;gt; [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.axonivy.ivy.ci:project-build-plugin:6
.1.0-SNAPSHOT:compileProject (default-compileProject) on project standard: Failed to compile project 'C:\Users\trungnguyen\Desktop\HuyANh\standard'.
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
        at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.
java:51)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to compile project 'C:\Users\trungnguyen/Desktop\HuyANh\standard'.
        at ch.ivyteam.ivy.maven.AbstractProjectCompileMojo.execute(AbstractProjectCompileMojo.java:73)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
        ... 20 more
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at ch.ivyteam.ivy.maven.engine.MavenProjectBuilderProxy.lambda$compile$2(MavenProjectBuilderProxy.java:82)
        at ch.ivyteam.ivy.maven.engine.MavenProjectBuilderProxy.executeInEngineDir(MavenProjectBuilderProxy.java:115)
        at ch.ivyteam.ivy.maven.engine.MavenProjectBuilderProxy.compile(MavenProjectBuilderProxy.java:81)
        at ch.ivyteam.ivy.maven.CompileProjectMojo.compile(CompileProjectMojo.java:60)
        at ch.ivyteam.ivy.maven.AbstractProjectCompileMojo.execute(AbstractProjectCompileMojo.java:69)
        ... 22 more
Caused by: java.lang.RuntimeException: Java compiler error : source level should be comprised in between '1.3' and '1.7' (or '5', '5.0', ..., '7' or '7.0'): 1.8

        at ch.ivyteam.ivy.java.internal.JavaBuilder.compileWithJdt(JavaBuilder.java:144)
        at ch.ivyteam.ivy.java.internal.JavaBuilder.build(JavaBuilder.java:114)
        at ch.ivyteam.ivy.project.build.MavenProjectBuilder$1.call(MavenProjectBuilder.java:147)
        at ch.ivyteam.ivy.project.build.MavenProjectBuilder$1.call(MavenProjectBuilder.java:1)
        at ch.ivyteam.ivy.security.internal.SecurityManager.executeAsSystem(SecurityManager.java:1467)
        at ch.ivyteam.ivy.scripting.dataclass.internal.InMemoryEngineController.executeAsSystem(InMemoryEngineController
.java:100)
        at ch.ivyteam.ivy.project.build.MavenProjectBuilder.buildOnServer(MavenProjectBuilder.java:121)
        at ch.ivyteam.ivy.project.build.MavenProjectBuilder.compile(MavenProjectBuilder.java:99)
        ... 31 more
[ERROR]
[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] &lt;a href="http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException"&gt;http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException&lt;/a&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The problem happened even when I run build for new empty project.&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/1660/project-build-plugin-6-1-snapshot-failed-to-build-ivy-project-6-1-due-to-source-level-java-1-8" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 17 Feb 2016 08:04:25 -0500</lastBuildDate><item><title>Comment by Trung Nguyen on Trung Nguyen's question</title><link>https://answers.axonivy.com/questions/1660/project-build-plugin-6-1-snapshot-failed-to-build-ivy-project-6-1-due-to-source-level-java-1-8#1662</link><description>&lt;p&gt;Thank Reguel, It's work after I change to use Sprint4 release of engine and copy the jar file "ch.ivyteam.ivy.rule.engine-6.1.0-server.jar" to the engine lib folder that S4 is missing.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Trung Nguyen</dc:creator><pubDate>Wed, 17 Feb 2016 08:04:25 -0500</pubDate><guid>https://answers.axonivy.com/questions/1660/project-build-plugin-6-1-snapshot-failed-to-build-ivy-project-6-1-due-to-source-level-java-1-8#1662</guid></item><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/1660/project-build-plugin-6-1-snapshot-failed-to-build-ivy-project-6-1-due-to-source-level-java-1-8/1661</link><description>&lt;p&gt;may you use an old engine to compile against? the 6.1.0-SNAPSHOT plugin only works with the latest available 6.1 engine. So today it's the Sprint4 release.
If you need an older version which is compliant to your sprint release you have to manually pick the then valid plugin from the repository: &lt;a href="https://oss.sonatype.org/content/repositories/snapshots/com/axonivy/ivy/ci/project-build-plugin/6.1.0-SNAPSHOT/"&gt;https://oss.sonatype.org/content/repositories/snapshots/com/axonivy/ivy/ci/project-build-plugin/6.1.0-SNAPSHOT/&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Tue, 16 Feb 2016 12:49:21 -0500</pubDate><guid>https://answers.axonivy.com/questions/1660/project-build-plugin-6-1-snapshot-failed-to-build-ivy-project-6-1-due-to-source-level-java-1-8/1661</guid></item></channel></rss>