Questions asked by Trung Nguyenhttps://answers.axonivy.com/questions/asked-by/605/trung-nguyen/?type=rssQuestions asked by <a href="/users/605/trung-nguyen" >Trung Nguyen</a>enTue, 16 Feb 2016 12:36:05 -0500Project-build-plugin 6.1 SNAPSHOT failed to build ivy project 6.1 due to source level: Java 1.8https://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<p>Hi Ivy team, I used <strong>project-build-plugin 6.1 SNAPSHOT</strong><br> However I was failed to build project due to source level: Java 1.8. </p> <pre><code>PS C:\Users\trungnguyen\Desktop\HuyANh\standard&gt; mvn clean verify -e [INFO] Error stacktraces are turned on. [INFO] Scanning for projects... Downloading: <a href="https://oss.sonatype.org/content/repositories/snapshots/com/axonivy/ivy/ci/project-build-plugin/6.1.0-SNAPS">https://oss.sonatype.org/content/repositories/snapshots/com/axonivy/ivy/ci/project-build-plugin/6.1.0-SNAPS</a> HOT/maven-metadata.xml Downloaded: <a href="https://oss.sonatype.org/content/repositories/snapshots/com/axonivy/ivy/ci/project-build-plugin/6.1.0-SNAPSH">https://oss.sonatype.org/content/repositories/snapshots/com/axonivy/ivy/ci/project-build-plugin/6.1.0-SNAPSH</a> 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 -&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] <a href="http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException">http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException</a> </code></pre> <p>The problem happened even when I run build for new empty project.</p>Trung NguyenTue, 16 Feb 2016 12:36:05 -0500https://answers.axonivy.com/questions/1660/project-build-plugin-6-1-snapshot-failed-to-build-ivy-project-6-1-due-to-source-level-java-1-8ivy6x-migrationWhich version of Project build pluggin for Ivy Engine 6.1.0https://answers.axonivy.com/questions/1658/which-version-of-project-build-pluggin-for-ivy-engine-6-1-0<p>Hi everyone, My team is using <strong>Ivy Engine 6.1.0.120321.S122</strong>.<br> With Project build plugin 6.0.2 or 6.0.3 it will compile for Ivy Project 6.0.1 (required ivy engine 6.0.1)<br> What i need is compile for Ivy project 6.1.0.<br> Does anyone has an idea to overcome this situation?<br></p> <p>Thank you.</p>Trung NguyenTue, 16 Feb 2016 03:06:36 -0500https://answers.axonivy.com/questions/1658/which-version-of-project-build-pluggin-for-ivy-engine-6-1-0ivy