how to use spark 2.0.0 preview in java
<p>i want to import libraries from spark 2.0.0 preview version,
but there is'nt any spark 2 in maven repository right now.
i used suggested solution in <a href="https://stackoverflow.com/a/37340382/6318657">here</a>.
but it didn't work:
the error is:</p>

<pre><code>    The POM for org.apache.spark:spark-core_2.2.11:jar:2.0.0-SNAPSHOT is missing, no dependency information available
The POM for org.apache.spark:spark-mllib_2.11:jar:2.0.0-SNAPSHOT is missing, no dependency information available
The POM for org.apache.spark:spark-sql_2.2.11:jar:2.0.0-SNAPSHOT is missing, no dependency information available
------------------------------------------------------------------------
BUILD FAILURE

The following artifacts could not be resolved: org.apache.spark:spark-core_2.2.11:jar:2.0.0-SNAPSHOT, org.apache.spark:spark-mllib_2.11:jar:2.0.0-SNAPSHOT, org.apache.spark:spark-sql_2.2.11:jar:2.0.0-SNAPSHOT: Could not find artifact org.apache.spark:spark-core_2.2.11:jar:2.0.0-SNAPSHOT -&gt; [Help 1]
</code></pre>

<p>my pom file is looklike this:</p>

<pre><code>        &lt;dependency&gt;
            &lt;groupId&gt;org.apache.spark&lt;/groupId&gt;
            &lt;artifactId&gt;spark-core_2.2.11&lt;/artifactId&gt;
            &lt;version&gt;2.0.0-SNAPSHOT&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;org.apache.spark&lt;/groupId&gt;
            &lt;artifactId&gt;spark-mllib_2.11&lt;/artifactId&gt;
            &lt;version&gt;2.0.0-SNAPSHOT&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;org.apache.spark&lt;/groupId&gt;
            &lt;artifactId&gt;spark-sql_2.2.11&lt;/artifactId&gt;
            &lt;version&gt;2.0.0-SNAPSHOT&lt;/version&gt;
        &lt;/dependency&gt;
</code></pre>