Search code examples
spring-tool-suite

Unknown referenced nature: org.springframework.ide.eclipse.core.springnature


In STS 4, my Java 10 Spring Boot 2.1 project warns me:

Unknown referenced nature: org.springframework.ide.eclipse.core.springnature

How can I fix this?


Solution

  • This is a left-over from a prior STS brought-in by the .project file due to a known issue.

    To fix this, delete the project from your workspace(s) in STS, and remove the project meta-data from the file system:

      rm .project
      rm .classpath
      rm .factorypath
      rm -rf .settings
    

    When you re-import the project, STS 4 will build proper project meta-data.