Could not find or load main class in eclipse using maven and scala
<p>I am using the Scala IDE.
I have created one Scala project and wrote simple scala object i.e.</p>

<pre><code>object Test {
 def main(args: Array[String]): Unit = {
eprintln("hi")
}}
</code></pre>

<p>It's running as expected.</p>

<p>After that I have converted my project to a maven project.</p>

<p>I did Clean and install.</p>

<p>after that if I am trying to run my scala class, I am getting below error:</p>

<pre><code>Error: Could not find or load main class Test  
</code></pre>

<p>How can I solve this?</p>