zDev - M2E - OSS
  1. zDev - M2E - OSS
  2. MNGECLIPSE-1530

Eclipse Maven project doesn't have a Java Nature after Importing

    Details

    • Type: User Story User Story
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      eclipse galileo classic with wtp
    • Global Rank:
      1149

      Description

      hi, the issue is that if I import a maven project it hasn't proper "Java project nature" as it has if a create a new one. The project icon is missing the J letter and java file icons are different than in proper java project. Therefore the editor doesn't offer the usual features like javadoc hovering, or javadoc can't be generated because there are no proper "Java" files . If I create a new maven project, everything is OK. I have WTP installed. I spent 3 hours by playing with it, please help.

        Issue Links

          Activity

          Hide
          Igor Fedorenko added a comment -

          Please provide sample project and/or steps to reproduce the problem.

          Show
          Igor Fedorenko added a comment - Please provide sample project and/or steps to reproduce the problem.
          Hide
          Joseph Vychtrle added a comment -

          For instance try to import echo / airport sample application from spring-ws 1.5.7 download: http://static.springsource.org/spring-ws/sites/1.5/downloads/releases.html. There is only maven nature set in its .project file and the imported project will be without java nature and I will have to use maven-eclipse-plugin.

          Show
          Joseph Vychtrle added a comment - For instance try to import echo / airport sample application from spring-ws 1.5.7 download: http://static.springsource.org/spring-ws/sites/1.5/downloads/releases.html . There is only maven nature set in its .project file and the imported project will be without java nature and I will have to use maven-eclipse-plugin.
          Hide
          Igor Fedorenko added a comment -

          Looks like m2e can't determine java version... and this is a tricky problem to solve. Unlike maven cli, m2e has to deal with two JREs, one that runs m2e itself and the other is project target JRE. If the two do not match, we have into inconsistent state, when wrong JRE version is used when working with the project inside m2e JVM and when launching the project in external JVM. I'll have to think about proper way to address this problem.

          2 problems were encountered during construction of the effective model:
          o Invalid activation condition for project profile jdk14-jdk15 in POM org.springframework.ws:echo:1.5.7 (/tmp/spring-ws-1.5.7/samples/echo/pom.xml): Failed to determine Java version for profile jdk14-jdk15
          o Invalid activation condition for project profile jdk14-jdk15 in POM org.springframework.ws:spring-ws-samples:1.5.7 (/tmp/spring-ws-1.5.7/samples/pom.xml): Failed to determine Java version for profile jdk14-jdk15
          
          Show
          Igor Fedorenko added a comment - Looks like m2e can't determine java version... and this is a tricky problem to solve. Unlike maven cli, m2e has to deal with two JREs, one that runs m2e itself and the other is project target JRE. If the two do not match, we have into inconsistent state, when wrong JRE version is used when working with the project inside m2e JVM and when launching the project in external JVM. I'll have to think about proper way to address this problem. 2 problems were encountered during construction of the effective model: o Invalid activation condition for project profile jdk14-jdk15 in POM org.springframework.ws:echo:1.5.7 (/tmp/spring-ws-1.5.7/samples/echo/pom.xml): Failed to determine Java version for profile jdk14-jdk15 o Invalid activation condition for project profile jdk14-jdk15 in POM org.springframework.ws:spring-ws-samples:1.5.7 (/tmp/spring-ws-1.5.7/samples/pom.xml): Failed to determine Java version for profile jdk14-jdk15
          Hide
          Joseph Vychtrle added a comment -

          Thank you Igor, sorry for my confusion. I'm still just learning. If you figure out the JRE inconsistency, please let people know in this thread. Joseph

          Show
          Joseph Vychtrle added a comment - Thank you Igor, sorry for my confusion. I'm still just learning. If you figure out the JRE inconsistency, please let people know in this thread. Joseph
          Hide
          Joseph Vychtrle added a comment -

          If you knew the way to run there spring-ws examples please tell me. Problem is that the eclipse general setting of JDK to use is irrelevant. Maybe the project JDK setting would help, but if I import the project, it doesn't have java nature therefore I can't set it up in the project settings. The activation is !1.6, but no matter if I give it JDK 6 or 5 in eclipse Runtime settings it behaves the same. Don't know how to feed it with chosen JRE...

          Show
          Joseph Vychtrle added a comment - If you knew the way to run there spring-ws examples please tell me. Problem is that the eclipse general setting of JDK to use is irrelevant. Maybe the project JDK setting would help, but if I import the project, it doesn't have java nature therefore I can't set it up in the project settings. The activation is !1.6, but no matter if I give it JDK 6 or 5 in eclipse Runtime settings it behaves the same. Don't know how to feed it with chosen JRE...

            People

            • Assignee:
              Unassigned
              Reporter:
              Joseph Vychtrle
              Last Updated By:
              Igor Fedorenko
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Date of First Response: