Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-10196

Java build paths break when converting project to maven

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 3.3.0.M4
    • maven, upstream
    • None

      I created an EJB Project, added a session bean and converted it to a Maven project (via right-click, Configure->Convert to Maven Project). Left default values in the Create POM dialog.

      These two warnings and errors now manifest:

      ERROR:Java compiler level does not match the version of the installed Java project facet.

      WARNING:Build path specifies execution environment J2SE-1.5. There are no JREs installed in the workspace that are strictly compatible with this environment.

      It appears to try to switch the Java build settings to use 1.5 although it was configured for 1.6.

      Before and after screenshots of settings changes attached.

      Project builds again after changing the JRE in the Java Build Path/Libraries back to Java SE 6 (MacOS X Default) and the Compiler compliance level to 1.6

        1. After_1.png
          127 kB
          Darrin
        2. After_2.png
          90 kB
          Darrin
        3. before_1.png
          118 kB
          Darrin
        4. Before_2.png
          99 kB
          Darrin

              Unassigned Unassigned
              dmison_jira Dana Mison (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: