Compiling Apache Ignite 2.8.1 on JAVA 11

classic Classic list List threaded Threaded
5 messages Options
shm
Reply | Threaded
Open this post in threaded view
|

Compiling Apache Ignite 2.8.1 on JAVA 11

shm
Hi
Does Apache Ignite version 2.8.1 supported compilation on JAVA 11 installed
machine ?


Shiva



--
Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Compiling Apache Ignite 2.8.1 on JAVA 11

Ilya Kasnacheev
Hello!

I don't think so. Why? You can use a binary package.

Regards,
--
Ilya Kasnacheev


пт, 30 окт. 2020 г. в 16:59, shm <[hidden email]>:

> Hi
> Does Apache Ignite version 2.8.1 supported compilation on JAVA 11 installed
> machine ?
>
>
> Shiva
>
>
>
> --
> Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/
>
Reply | Threaded
Open this post in threaded view
|

Re: Compiling Apache Ignite 2.8.1 on JAVA 11

Alexey Plekhanov
Hello,

It can be compiled if you don't need JavaDoc and scala modules (visor
console, ignite-spark integration):
mvn clean install -Pall-java,licenses,-scala,-scala-2.10,-spark-2.4
-DskipTests -Dmaven.javadoc.skip=true


пт, 30 окт. 2020 г. в 18:49, Ilya Kasnacheev <[hidden email]>:

> Hello!
>
> I don't think so. Why? You can use a binary package.
>
> Regards,
> --
> Ilya Kasnacheev
>
>
> пт, 30 окт. 2020 г. в 16:59, shm <[hidden email]>:
>
> > Hi
> > Does Apache Ignite version 2.8.1 supported compilation on JAVA 11
> installed
> > machine ?
> >
> >
> > Shiva
> >
> >
> >
> > --
> > Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/
> >
>
shm
Reply | Threaded
Open this post in threaded view
|

Re: Compiling Apache Ignite 2.8.1 on JAVA 11

shm
Hi Ilya Kasnacheev and Alexey Plekhanov

Thanks for your replies...
we want to run Ignite on jdk11 so compiling on jdk11

Currently the compilation failing for  ignite-spark-2.4  (not sure if it
fails for visor modules also)

[INFO] ignite-spark ....................................... SUCCESS [ 13.694
s]
[INFO] ignite-spark-2.4 ................................... FAILURE [  7.545
s]
[INFO] ignite-visor-console_2.10 .......................... SKIPPED
[INFO] ignite-visor-console ............................... SKIPPED
[INFO] ignite-visor-plugins ............................... SKIPPED
[INFO] apache-ignite ...................................... SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE

The error Iam getting is
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
net.alchim31.maven:scala-maven-plugin:3.3.2:compile (scala-compile-first) on
project ignite-spark-2.4: wrap: org.apache.commons.exec.ExecuteException:
Process exited with an error: 1 (Exit value: 1) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal net.alchim31.maven:scala-maven-plugin:3.3.2:compile
(scala-compile-first) on project ignite-spark-2.4: wrap:
org.apache.commons.exec.ExecuteException: Process exited with an error: 1
(Exit value: 1)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:215)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:148)
    at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
(LifecycleModuleBuilder.java:117)
    at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
(LifecycleModuleBuilder.java:81)
    at
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
(SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
(LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:566)
    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: wrap:
org.apache.commons.exec.ExecuteException: Process exited with an error: 1
(Exit value: 1)


Is there any known issue on this compilation ? Is it not supported on java11
at all ? could you please help me in this



--
Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Compiling Apache Ignite 2.8.1 on JAVA 11

Alexey Plekhanov
Hello,

You can run current Ignite binaries on JDK11, no need to compile it on
JDK11.
If you still want to compile it by yourself on JDK11, try the command line
that I provided.
You can also try Ignite 2.9, this issue is fixed in the 2.9 release.

вс, 1 нояб. 2020 г. в 23:12, shm <[hidden email]>:

> Hi Ilya Kasnacheev and Alexey Plekhanov
>
> Thanks for your replies...
> we want to run Ignite on jdk11 so compiling on jdk11
>
> Currently the compilation failing for  ignite-spark-2.4  (not sure if it
> fails for visor modules also)
>
> [INFO] ignite-spark ....................................... SUCCESS [
> 13.694
> s]
> [INFO] ignite-spark-2.4 ................................... FAILURE [
> 7.545
> s]
> [INFO] ignite-visor-console_2.10 .......................... SKIPPED
> [INFO] ignite-visor-console ............................... SKIPPED
> [INFO] ignite-visor-plugins ............................... SKIPPED
> [INFO] apache-ignite ...................................... SKIPPED
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
>
> The error Iam getting is
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> net.alchim31.maven:scala-maven-plugin:3.3.2:compile (scala-compile-first)
> on
> project ignite-spark-2.4: wrap: org.apache.commons.exec.ExecuteException:
> Process exited with an error: 1 (Exit value: 1) -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal net.alchim31.maven:scala-maven-plugin:3.3.2:compile
> (scala-compile-first) on project ignite-spark-2.4: wrap:
> org.apache.commons.exec.ExecuteException: Process exited with an error: 1
> (Exit value: 1)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:215)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:156)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:148)
>     at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> (LifecycleModuleBuilder.java:117)
>     at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> (LifecycleModuleBuilder.java:81)
>     at
>
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
> (SingleThreadedBuilder.java:56)
>     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
> (LifecycleStarter.java:128)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
>     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
>     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
>     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
>     at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native
> Method)
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:62)
>     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke (Method.java:566)
>     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: wrap:
> org.apache.commons.exec.ExecuteException: Process exited with an error: 1
> (Exit value: 1)
>
>
> Is there any known issue on this compilation ? Is it not supported on
> java11
> at all ? could you please help me in this
>
>
>
> --
> Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/
>