title: Kotlin folder not detecting as source folder in Maven eclipse, sts
body: <p><a href="https://i.stack.imgur.com/7wyWB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7wyWB.png" alt="enter image description here"></a></p>
  
  <p>As you can see in the image, I have created a folder <code>koltin</code>in the main folder and also set the source directory to that folder in the <code>pom.xml</code>. But still kotlin is not detecting as source folder. As you can see in the top of this project. other source folders are detecting fine.</p>
  
  <ol>
  <li>src/main/java </li>
  <li>src/main/resources </li>
  <li>src/test/java </li>
  <li>src/test/resources</li>
  <li>src/main/kotlin ------> this is missing, it should be here.</li>
  </ol>
  
  <p>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;com.climesoft&lt;/groupId&gt;
      &lt;artifactId&gt;mavenkotlin&lt;/artifactId&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
  
  
      &lt;properties&gt;
          &lt;kotlin.version&gt;1.2.61&lt;/kotlin.version&gt;
      &lt;/properties&gt;
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.jetbrains.kotlin&lt;/groupId&gt;
              &lt;artifactId&gt;kotlin-stdlib-jdk8&lt;/artifactId&gt;
              &lt;version&gt;${kotlin.version}&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.jetbrains.kotlin&lt;/groupId&gt;
                  &lt;artifactId&gt;kotlin-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;${kotlin.version}&lt;/version&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;id&gt;compile&lt;/id&gt;
                          &lt;phase&gt;process-sources&lt;/phase&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;compile&lt;/goal&gt;
                          &lt;/goals&gt;
                          &lt;configuration&gt;
                              &lt;sourceDirs&gt;
                                  &lt;source&gt;src/main/java&lt;/source&gt;
                                  &lt;source&gt;src/main/kotlin&lt;/source&gt;
                                  &lt;source&gt;src/main/resources&lt;/source&gt;
                              &lt;/sourceDirs&gt;
                          &lt;/configuration&gt;
                      &lt;/execution&gt;
                      &lt;execution&gt;
                          &lt;id&gt;test-compile&lt;/id&gt;
                          &lt;phase&gt;process-test-sources&lt;/phase&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;test-compile&lt;/goal&gt;
                          &lt;/goals&gt;
                          &lt;configuration&gt;
                              &lt;sourceDirs&gt;
                                  &lt;source&gt;src/test/java&lt;/source&gt;
                                  &lt;source&gt;src/test/resources&lt;/source&gt;
                              &lt;/sourceDirs&gt;
                          &lt;/configuration&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
          &lt;pluginManagement&gt;
              &lt;plugins&gt;
                  &lt;!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.--&gt;
                  &lt;plugin&gt;
                      &lt;groupId&gt;org.eclipse.m2e&lt;/groupId&gt;
                      &lt;artifactId&gt;lifecycle-mapping&lt;/artifactId&gt;
                      &lt;version&gt;1.0.0&lt;/version&gt;
                      &lt;configuration&gt;
                          &lt;lifecycleMappingMetadata&gt;
                              &lt;pluginExecutions&gt;
                                  &lt;pluginExecution&gt;
                                      &lt;pluginExecutionFilter&gt;
                                          &lt;groupId&gt;
                                              org.jetbrains.kotlin
                                          &lt;/groupId&gt;
                                          &lt;artifactId&gt;
                                              kotlin-maven-plugin
                                          &lt;/artifactId&gt;
                                          &lt;versionRange&gt;
                                              [1.2.61,)
                                          &lt;/versionRange&gt;
                                          &lt;goals&gt;
                                              &lt;goal&gt;test-compile&lt;/goal&gt;
                                              &lt;goal&gt;compile&lt;/goal&gt;
                                          &lt;/goals&gt;
                                      &lt;/pluginExecutionFilter&gt;
                                      &lt;action&gt;
                                          &lt;ignore&gt;&lt;/ignore&gt;
                                      &lt;/action&gt;
                                  &lt;/pluginExecution&gt;
                              &lt;/pluginExecutions&gt;
                          &lt;/lifecycleMappingMetadata&gt;
                      &lt;/configuration&gt;
                  &lt;/plugin&gt;
              &lt;/plugins&gt;
          &lt;/pluginManagement&gt;
      &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>