Hi Ivy team, I used project-build-plugin 6.1 SNAPSHOT
However I was failed to build project due to source level: Java 1.8.

PS C:\Users\trungnguyen\Desktop\HuyANh\standard> mvn clean verify -e
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
Downloading: https://oss.sonatype.org/content/repositories/snapshots/com/axonivy/ivy/ci/project-build-plugin/6.1.0-SNAPS
HOT/maven-metadata.xml
Downloaded: https://oss.sonatype.org/content/repositories/snapshots/com/axonivy/ivy/ci/project-build-plugin/6.1.0-SNAPSH
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 -> [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] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

The problem happened even when I run build for new empty project.

asked 16.02.2016 at 12:36

Trung%20Nguyen's gravatar image

Trung Nguyen
(suspended)
accept rate: 0%

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.

(17.02.2016 at 08:04) Trung Nguyen Trung%20Nguyen's gravatar image

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: https://oss.sonatype.org/content/repositories/snapshots/com/axonivy/ivy/ci/project-build-plugin/6.1.0-SNAPSHOT/

link

answered 16.02.2016 at 12:49

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
9.4k31958
accept rate: 70%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×3

Asked: 16.02.2016 at 12:36

Seen: 3,131 times

Last updated: 17.02.2016 at 09:35