Maven 2.x IDEA Plugin

Allow users to specify Project Language Level that is generated with plugin

Details

  • Type: Improvement Improvement
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    Plugin version 2.2, IntellijJ 8.1
  • Number of attachments :
    4

Description

When i run mvn idea:idea plugin, the projects are generate .ipr files with Project Language Level set to 5.0

Is there a way to configure the plugin to have that be set to 6.0 instead?

It seems that you need this attribute in the <component> declaration: languageLevel="JDK_1_6"

<component name="ProjectRootManager" version="2" languageLevel="JDK_1_6" assert-keyword="true" jdk-15="true" 
project-jdk-name="1.6" project-jdk-type="JavaSDK" />

This is what i have after i set the language level manually, see screenshot. This is in IntelliJ 8.1

  1. robust.patch
    08/Dec/09 3:26 PM
    3 kB
    Gin-Ting Chen
  2. simple.patch
    08/Dec/09 3:26 PM
    0.6 kB
    Gin-Ting Chen
  1. screenshot-1.jpg
    17 kB
    08/Apr/09 6:13 PM
  2. screenshot-1.jpg
    17 kB
    08/Apr/09 6:13 PM

Activity

Hide
Gin-Ting Chen added a comment -

Pretty simple fix. I've attached 2 possible patches. A simple work around and a more robust patch.

Show
Gin-Ting Chen added a comment - Pretty simple fix. I've attached 2 possible patches. A simple work around and a more robust patch.

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated: