Skip to content

IntelliJ doesn't seem to know this is a Kotlin project. #2

@GlenKPeterson

Description

@GlenKPeterson

IntelliJ 15.0.6 doesn't like the opening <project in the pom.xml. It says:

org/apache/maven/model/building/ModelSource2 less... (Ctrl+F1) 
Inspects a Maven model for resolution problems.
 org/apache/maven/model/building/ModelSource2

IntelliJ also complains about just about every Kotlin file with a little yellow "Kotlin not configured." bar at the top of the editor window. I checked that I have the Kotlin plugin installed and let the plugin configure Kotlin for the entire project. I think it threw this into the pom.xml file:

<plugin>
  <groupId>org.jetbrains.kotlin</groupId>
  <artifactId>kotlin-maven-plugin</artifactId>
  <version>${kotlin.version}</version>
  <executions>
    <execution>
      <id>compile</id>
      <phase>process-sources</phase>
      <goals>
        <goal>compile</goal>
      </goals>
      <configuration>
        <sourceDirs>
          <source>src/main/java</source>
        </sourceDirs>
      </configuration>
    </execution>
    <execution>
      <id>test-compile</id>
      <phase>process-test-sources</phase>
      <goals>
        <goal>test-compile</goal>
      </goals>
      <configuration>
        <sourceDirs>
          <source>src/test/java</source>
        </sourceDirs>
      </configuration>
    </execution>
  </executions>
</plugin>

But it's still not happy. I Invalidated Caches and Restarted, but no joy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions