Importing my jar to spark shell
<p>I have a simple scala maven module which is part of a larger project (I created it as described here: <a href="https://www.jetbrains.com/help/idea/2016.2/creating-a-maven-module.html" rel="nofollow noreferrer">https://www.jetbrains.com/help/idea/2016.2/creating-a-maven-module.html</a>):</p>

<pre><code>package com.myorg.simplr

import [...]

@SerialVersionUID(100L)
case class Simplr (){
    //class code
}
</code></pre>

<p>I am trying to use this class in spark shell, so I built a jar file "simplr-1.0.jar" and launched the spark shell with --jars simplr-1.0.jar.</p>

<p>Then, when I try to import, I get the following</p>

<pre><code>scala&gt; import com.myorg.simplr.Simplr
&lt;console&gt;:25: error: object myorg is not a member of package com
         import com.myorg.simplr.Simplr
                    ^
</code></pre>

<p>How can I make the import to work?</p>

<p>I used maven to build, and here's my pom.xml:</p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
    &lt;parent&gt;
        &lt;artifactId&gt;my-parent-project&lt;/artifactId&gt;
        &lt;groupId&gt;com.myorg&lt;/groupId&gt;
        &lt;version&gt;1.0&lt;/version&gt;
    &lt;/parent&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;

    &lt;artifactId&gt;simplr&lt;/artifactId&gt;
    &lt;version&gt;1.0&lt;/version&gt;

    &lt;dependencies&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;org.apache.spark&lt;/groupId&gt;
            &lt;artifactId&gt;spark-sql_2.10&lt;/artifactId&gt;
            &lt;version&gt;1.6.0&lt;/version&gt;
            &lt;scope&gt;provided&lt;/scope&gt;
        &lt;/dependency&gt;

        &lt;dependency&gt;
            &lt;groupId&gt;org.apache.spark&lt;/groupId&gt;
            &lt;artifactId&gt;spark-mllib_2.10&lt;/artifactId&gt;
            &lt;version&gt;1.6.0&lt;/version&gt;
            &lt;scope&gt;provided&lt;/scope&gt;
        &lt;/dependency&gt;
    &lt;/dependencies&gt;

&lt;/project&gt;
</code></pre>