ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Kozlov (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (IGNITE-227) Fix examples in the release build
Date Thu, 12 Feb 2015 09:12:11 GMT

    [ https://issues.apache.org/jira/browse/IGNITE-227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14317843#comment-14317843
] 

Sergey Kozlov edited comment on IGNITE-227 at 2/12/15 9:11 AM:
---------------------------------------------------------------

I reproduced the issue:
1. Set up JDK8 (update JAVA_HOME also)
2. Import examples/pom.xml: set active JDK1.8, activate java8 and allow-ignite-snapshot profiles

3. Wait until all dependencies will be resolved
4. Ignite-examples -> Lifecycle -> clean & compile

{noformat}
[INFO] --- scala-maven-plugin:3.2.0:compile (scala-compile-first) @ ignite-examples ---
[INFO] D:\Ignite-SP1\ignite-fabric-1.0.0-SNAPSHOT\examples\src\main\java8:-1: info: compiling
[INFO] D:\Ignite-SP1\ignite-fabric-1.0.0-SNAPSHOT\examples\src\main\scala:-1: info: compiling
[INFO] Compiling 19 source files to D:\Ignite-SP1\ignite-fabric-1.0.0-SNAPSHOT\examples\target\classes
at 1423731590591
Downloading: https://repo.maven.apache.org/maven2/org/scala-lang/modules/scala-xml_2.11/1.0.2/scala-xml_2.11-1.0.2.jar
Downloaded: https://repo.maven.apache.org/maven2/org/scala-lang/modules/scala-xml_2.11/1.0.2/scala-xml_2.11-1.0.2.jar
(634 KB at 785.9 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/scala-lang/modules/scala-parser-combinators_2.11/1.0.2/scala-parser-combinators_2.11-1.0.2.jar
Downloaded: https://repo.maven.apache.org/maven2/org/scala-lang/modules/scala-parser-combinators_2.11/1.0.2/scala-parser-combinators_2.11-1.0.2.jar
(407 KB at 859.0 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/scala-lang/modules/scala-xml_2.11/1.0.2/scala-xml_2.11-1.0.2.pom
Downloaded: https://repo.maven.apache.org/maven2/org/scala-lang/modules/scala-xml_2.11/1.0.2/scala-xml_2.11-1.0.2.pom
(3 KB at 22.8 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/scala-lang/scala-library/2.11.1/scala-library-2.11.1.jar
Downloaded: https://repo.maven.apache.org/maven2/org/scala-lang/scala-library/2.11.1/scala-library-2.11.1.jar
(5409 KB at 987.6 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/scala-lang/scala-library/2.11.1/scala-library-2.11.1.pom
Downloaded: https://repo.maven.apache.org/maven2/org/scala-lang/scala-library/2.11.1/scala-library-2.11.1.pom
(2 KB at 15.0 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/scala-lang/modules/scala-parser-combinators_2.11/1.0.2/scala-parser-combinators_2.11-1.0.2.pom
Downloaded: https://repo.maven.apache.org/maven2/org/scala-lang/modules/scala-parser-combinators_2.11/1.0.2/scala-parser-combinators_2.11-1.0.2.pom
(3 KB at 22.2 KB/sec)
[ERROR] D:\Ignite-SP1\ignite-fabric-1.0.0-SNAPSHOT\examples\src\main\scala\org\apache\ignite\scalar\examples\ScalarCachePopularNumbersExample.scala:23:
error: object datagrid is not a member of package org.apache.ignite.examples
[ERROR] import org.apache.ignite.examples.datagrid.CacheNodeStartup
[ERROR]                                   ^
[ERROR] one error found
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 15.959 s
[INFO] Finished at: 2015-02-12T12:00:02+03:00
[INFO] Final Memory: 10M/120M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.2.0:compile (scala-compile-first)
on project ignite-examples: wrap: org.apache.commons.exec.ExecuteException: Process exited
with an error: 1 (Exit value: 1) -> [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

Process finished with exit code 1

{noformat}

Build and compile examples work if java8 profile disabled


was (Author: skozlov):
I reproduced the issue:
1. Set up JDK8 (update JAVA_HOME also)
2. Import examples/pom.xml: set active JDK, activate java8 and allow-ignite-snapshot profiles

3. Wait until all dependencies will be resolved
4. Ignite-examples -> Lifecycle -> clean & compile

{noformat}
[INFO] --- scala-maven-plugin:3.2.0:compile (scala-compile-first) @ ignite-examples ---
[INFO] D:\Ignite-SP1\ignite-fabric-1.0.0-SNAPSHOT\examples\src\main\java8:-1: info: compiling
[INFO] D:\Ignite-SP1\ignite-fabric-1.0.0-SNAPSHOT\examples\src\main\scala:-1: info: compiling
[INFO] Compiling 19 source files to D:\Ignite-SP1\ignite-fabric-1.0.0-SNAPSHOT\examples\target\classes
at 1423731590591
Downloading: https://repo.maven.apache.org/maven2/org/scala-lang/modules/scala-xml_2.11/1.0.2/scala-xml_2.11-1.0.2.jar
Downloaded: https://repo.maven.apache.org/maven2/org/scala-lang/modules/scala-xml_2.11/1.0.2/scala-xml_2.11-1.0.2.jar
(634 KB at 785.9 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/scala-lang/modules/scala-parser-combinators_2.11/1.0.2/scala-parser-combinators_2.11-1.0.2.jar
Downloaded: https://repo.maven.apache.org/maven2/org/scala-lang/modules/scala-parser-combinators_2.11/1.0.2/scala-parser-combinators_2.11-1.0.2.jar
(407 KB at 859.0 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/scala-lang/modules/scala-xml_2.11/1.0.2/scala-xml_2.11-1.0.2.pom
Downloaded: https://repo.maven.apache.org/maven2/org/scala-lang/modules/scala-xml_2.11/1.0.2/scala-xml_2.11-1.0.2.pom
(3 KB at 22.8 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/scala-lang/scala-library/2.11.1/scala-library-2.11.1.jar
Downloaded: https://repo.maven.apache.org/maven2/org/scala-lang/scala-library/2.11.1/scala-library-2.11.1.jar
(5409 KB at 987.6 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/scala-lang/scala-library/2.11.1/scala-library-2.11.1.pom
Downloaded: https://repo.maven.apache.org/maven2/org/scala-lang/scala-library/2.11.1/scala-library-2.11.1.pom
(2 KB at 15.0 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/scala-lang/modules/scala-parser-combinators_2.11/1.0.2/scala-parser-combinators_2.11-1.0.2.pom
Downloaded: https://repo.maven.apache.org/maven2/org/scala-lang/modules/scala-parser-combinators_2.11/1.0.2/scala-parser-combinators_2.11-1.0.2.pom
(3 KB at 22.2 KB/sec)
[ERROR] D:\Ignite-SP1\ignite-fabric-1.0.0-SNAPSHOT\examples\src\main\scala\org\apache\ignite\scalar\examples\ScalarCachePopularNumbersExample.scala:23:
error: object datagrid is not a member of package org.apache.ignite.examples
[ERROR] import org.apache.ignite.examples.datagrid.CacheNodeStartup
[ERROR]                                   ^
[ERROR] one error found
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 15.959 s
[INFO] Finished at: 2015-02-12T12:00:02+03:00
[INFO] Final Memory: 10M/120M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.2.0:compile (scala-compile-first)
on project ignite-examples: wrap: org.apache.commons.exec.ExecuteException: Process exited
with an error: 1 (Exit value: 1) -> [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

Process finished with exit code 1

{noformat}

Build and compile examples work if java8 profile disabled

> Fix examples in the release build
> ---------------------------------
>
>                 Key: IGNITE-227
>                 URL: https://issues.apache.org/jira/browse/IGNITE-227
>             Project: Ignite
>          Issue Type: Bug
>          Components: general
>            Reporter: Dmitriy Setrakyan
>            Assignee: Yakov Zhdanov
>             Fix For: sprint-1
>
>
> Scala examples do not compile (as usual). Can we fix them once and for all? Also, why
aren't these examples turned off by default in a separate maven profile?
> Whenever I turn on "java8" profile, java7 examples get excluded. Why? Java8 should be
fully compatible with Java7.
> I tried to do maven "package" and got constant build failures, that I could not resolve.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message