You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by dp...@apache.org on 2019/01/31 12:11:15 UTC

[ignite] branch master updated: IGNITE-11140 Fix Ignite examples compilation, support of Nightly builds (#5978)

This is an automated email from the ASF dual-hosted git repository.

dpavlov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git


The following commit(s) were added to refs/heads/master by this push:
     new 332103e  IGNITE-11140 Fix Ignite examples compilation, support of Nightly builds (#5978)
332103e is described below

commit 332103e1997adaba67610ec2e4110cf20d65e406
Author: Dmitriy Pavlov <dp...@apache.org>
AuthorDate: Thu Jan 31 15:11:06 2019 +0300

    IGNITE-11140 Fix Ignite examples compilation, support of Nightly builds (#5978)
---
 examples/README.md          | 30 ++++++++++++++++++++++++++++++
 examples/pom-standalone.xml | 45 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 75 insertions(+)

diff --git a/examples/README.md b/examples/README.md
new file mode 100644
index 0000000..6357bf9
--- /dev/null
+++ b/examples/README.md
@@ -0,0 +1,30 @@
+# Apache Ignite Examples
+
+This module contains examples of how to run [Apache Ignite](ignite.apache.org) and [Apache Ignite](ignite.apache.org) with 3rd party components.
+
+Instructions on how to start examples can be found in [README.txt](README.txt).
+
+How to start examples in the developer's environment, please see [DEVNOTES.txt](DEVNOTES.txt).
+
+## Running examples on JDK 9/10/11
+Ignite uses proprietary SDK APIs that are not available by default. See also [How to run Ignite on JDK 9,10 and 11](https://apacheignite.readme.io/docs/getting-started#section-running-ignite-with-java-9-10-11)
+
+To set up local IDE to easier access to examples, it is possible to add following options as default for all applications
+
+``--add-exports=java.base/jdk.internal.misc=ALL-UNNAMED
+   --add-exports=java.base/sun.nio.ch=ALL-UNNAMED
+   --add-exports=java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED
+   --add-exports=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED
+   --add-exports=java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED
+   --illegal-access=permit``
+
+For example, for IntelliJ IDEA it is possible to use Application Templates.
+
+Use 'Run' -> 'Edit Configuration' menu.
+
+<img src="https://docs.google.com/drawings/d/e/2PACX-1vQFgjhrPsLPUmic8CA_s1YpjVwA2vQITxNsLrAKOecZxIQEZSb1Ps2XKh0QEn8z9vtYiUofnGek_cag/pub?w=960&h=720"/>
+
+## Contributing to Examples
+*Notice* When updating classpath of examples and in case any modifications required in [pom.xml](pom.xml)
+please make sure that corresponding changes were applied to
+ [pom-standalone.xml](pom-standalone.xml). This pom file is finalized during release and placed to examples folder with these examples code.
\ No newline at end of file
diff --git a/examples/pom-standalone.xml b/examples/pom-standalone.xml
index 3ccccbf..a4314e2 100644
--- a/examples/pom-standalone.xml
+++ b/examples/pom-standalone.xml
@@ -37,6 +37,14 @@
         <lgpl.folder>src/main/java</lgpl.folder>
     </properties>
 
+    <repositories>
+        <!-- Following repository is required only for Nightly releases -->
+        <repository>
+            <id>MyGet Nightly</id>
+            <url>https://www.myget.org/F/apache-ignite-nightly/maven</url>
+        </repository>
+    </repositories>
+
     <groupId>org.apache.ignite</groupId>
     <artifactId>ignite-examples</artifactId>
     <version>to_be_replaced_by_ignite_version</version>
@@ -85,6 +93,18 @@
         </dependency>
 
         <dependency>
+            <groupId>org.apache.ignite</groupId>
+            <artifactId>ignite-ml-xgboost-model-parser</artifactId>
+            <version>to_be_replaced_by_ignite_version</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.ignite</groupId>
+            <artifactId>ignite-ml-spark-model-parser</artifactId>
+            <version>to_be_replaced_by_ignite_version</version>
+        </dependency>
+
+        <dependency>
             <groupId>commons-cli</groupId>
             <artifactId>commons-cli</artifactId>
             <version>1.2</version>
@@ -95,6 +115,31 @@
             <artifactId>spymemcached</artifactId>
             <version>2.8.4</version>
         </dependency>
+
+        <!-- https://mvnrepository.com/artifact/org.jpmml/pmml-model -->
+        <dependency>
+            <groupId>org.jpmml</groupId>
+            <artifactId>pmml-model</artifactId>
+            <version>1.4.7</version>
+        </dependency>
+
+        <dependency>
+            <groupId>com.fasterxml.jackson.core</groupId>
+            <artifactId>jackson-core</artifactId>
+            <version>2.7.3</version>
+        </dependency>
+
+        <dependency>
+            <groupId>com.fasterxml.jackson.core</groupId>
+            <artifactId>jackson-databind</artifactId>
+            <version>2.7.3</version>
+        </dependency>
+
+        <dependency>
+            <groupId>com.fasterxml.jackson.core</groupId>
+            <artifactId>jackson-annotations</artifactId>
+            <version>2.7.3</version>
+        </dependency>
     </dependencies>
 
     <profiles>