Uploaded image for project: 'ShrinkWrap'
  1. ShrinkWrap
  2. SHRINKWRAP-273

Importing ShrinkWrap into Intellij leaves a broken setup of 1.6 source code with a 1.5 target

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • None
    • 1.0.0-cr-1
    • build
    • None

    Description

      It would appear that Intellij does not like the following section:

            <!-- Compiler -->
            <plugin>
              <artifactId>maven-compiler-plugin</artifactId>
              <inherited>true</inherited>
              <configuration>
                <source>1.5</source>
                <target>1.5</target>
                <showDeprecation>false</showDeprecation>
                <showWarnings>true</showWarnings>
                <optimize>true</optimize>
                <compilerVersion>1.6</compilerVersion>
                <fork>true</fork>
                <argLine>-Xmx512M</argLine>
                <executable>${JAVA_HOME}/bin/javac</executable>
              </configuration>
            </plugin>
      

      This creates (Intellij) Modules with language level 5 and Java Compiler -> Additional command line parameters parameters '-target 1.5'. This leads to errors appearing in the editor. Setting the correct Language level on the Module leads to a javac failure.
      Ideally the Modules should default to the Project language level (with the exception of shrinkwrap-api (and others?)).

      Attachments

        Activity

          People

            kpiwko Karel Piwko
            rhn-engineering-cdewolf Carlo de Wolf
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: