Maven 2.x Compiler Plugin

JDK defaulting to 1.4

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Not A Bug
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

When you declare a <build> tags in which the <plugin> tag is empty (<plugins/>), the jdk version default to 1.4.
Wouldn't it be good - or at least better - to default to the JDK which has been used to launch maven ? If a project really need a specific version of JDK, then I bet the developper has correctly set the <configuration> parameters into the pom.xml, I think.

Issue Links

Activity

Hide
Carlos Sanchez added a comment -

are you sure? if defaults to the specified in JAVA_HOME

Show
Carlos Sanchez added a comment - are you sure? if defaults to the specified in JAVA_HOME
Hide
Emmanuel Lécharny added a comment -

hmmmm...

don't exactly remember. I guess that, basically, yes, I got this problem (I'm using jdk 1.5 since january last year) back in november.

It's fixed now for us, since we set the jdk version on your build, but I found it a little bit cumbersome to do it...

Anyway, I think it should be easy to test. I will try to build a very sample test and attach it to this JIRA (if I found a quater of an hour to do so

Show
Emmanuel Lécharny added a comment - hmmmm... don't exactly remember. I guess that, basically, yes, I got this problem (I'm using jdk 1.5 since january last year) back in november. It's fixed now for us, since we set the jdk version on your build, but I found it a little bit cumbersome to do it... Anyway, I think it should be easy to test. I will try to build a very sample test and attach it to this JIRA (if I found a quater of an hour to do so

People

Vote (3)
Watch (4)

Dates

  • Created:
    Updated:
    Resolved: