title: Running a scala application in maven project
body: <p>I am trying to use maven to handle dependencies in a scala project in Eclipse. But once the project is converted to maven, the application wont run anymore.</p>
  
  <p>Here is the steps to reproduce :</p>
  
  <p>1) new scala project</p>
  
  <ul>
  <li>project name : test</li>
  <li>finish</li>
  </ul>
  
  <p>2) new scala object</p>
  
  <ul>
  <li>name : hello_world</li>
  <li>finish</li>
  </ul>
  
  <p>3) hello_world.scala </p>
  
  <pre><code>package test
  
  object hello_world {
    def main(args: Array[String]) {
      println("Hello world !!!")
    }
  }
  </code></pre>
  
  <p>4) run scala application</p>
  
  <ul>
  <li>project : test</li>
  <li>main class : test.hello_world</li>
  </ul>
  
  <p>result : working, hello world is printed</p>
  
  <p>5) right clic on project -> configure -> convert to mavem project</p>
  
  <ul>
  <li>group id : test</li>
  <li>artifact id : test</li>
  <li>version : 0.0.1-SNAPSHOT</li>
  <li>packaging : jar</li>
  <li>finish</li>
  </ul>
  
  <p>6) run scala application</p>
  
  <ul>
  <li>project : test</li>
  <li>main class : test.hello_world</li>
  </ul>
  
  <p>result : </p>
  
  <pre><code>Error: Could not find or load main class test.hello_world
  </code></pre>
  
  <p>Versions details :</p>
  
  <p>Eclipse 4.4.1
  M2E 1.5.0
  Scala IDE for Eclipse 4.0.0.nightly-2_11</p>
  
  <p>Generated pom-xml : </p>
  
  <pre><code>&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;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;test&lt;/groupId&gt;
    &lt;artifactId&gt;test&lt;/artifactId&gt;
    &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
    &lt;build&gt;
      &lt;sourceDirectory&gt;src&lt;/sourceDirectory&gt;
      &lt;resources&gt;
        &lt;resource&gt;
          &lt;directory&gt;src&lt;/directory&gt;
          &lt;excludes&gt;
            &lt;exclude&gt;**/*.java&lt;/exclude&gt;
          &lt;/excludes&gt;
        &lt;/resource&gt;
      &lt;/resources&gt;
      &lt;plugins&gt;
        &lt;plugin&gt;
          &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
          &lt;version&gt;3.1&lt;/version&gt;
          &lt;configuration&gt;
            &lt;source&gt;1.8&lt;/source&gt;
            &lt;target&gt;1.8&lt;/target&gt;
          &lt;/configuration&gt;
        &lt;/plugin&gt;
      &lt;/plugins&gt;
    &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>