[shrinkwrap-issues] [JBoss JIRA] (SHRINKWRAP-273) Importing ShrinkWrap into Intellij leaves a broken setup of 1.6 source code with a 1.5 target

Andrew Rubinger (Updated) (JIRA) jira-events at lists.jboss.org
Mon Oct 31 06:51:45 EDT 2011


     [ https://issues.jboss.org/browse/SHRINKWRAP-273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Rubinger updated SHRINKWRAP-273:
---------------------------------------

        Status: Resolved  (was: Pull Request Sent)
    Resolution: Done


Karel found the magic sauce to make this work MUCH more cleanly:

https://github.com/shrinkwrap/shrinkwrap/commit/7c9a4e768b166870761e135e6af65d460721a92d
                
> Importing ShrinkWrap into Intellij leaves a broken setup of 1.6 source code with a 1.5 target
> ---------------------------------------------------------------------------------------------
>
>                 Key: SHRINKWRAP-273
>                 URL: https://issues.jboss.org/browse/SHRINKWRAP-273
>             Project: ShrinkWrap
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 1.0.0-cr-1
>            Reporter: Carlo de Wolf
>            Assignee: Karel Piwko
>            Priority: Minor
>
> It would appear that Intellij does not like the following section:
> {code:xml}
>       <!-- 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>
> {code}
> 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?)).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the shrinkwrap-issues mailing list