You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Gwyn <gw...@gmail.com> on 2006/04/18 19:06:26 UTC

Checking in-use compiler?

Hi,
  I'm running Maven2 on WinXP, with a JDK 1.5 system, but when I try & build
some classes that use some 1.5 features, specifically
MessageFormat.format(String, Object... ), then I get a "cannot find symbol"
error on the compile. (The var-args is new in 1.5)

Compiling via Ant or IntelliJ using the same (as far as I know) JDK give
clean compiles.

  mvn -X doesn't give anything of any obvious help with regards to the
internal compiler version in use, just reporting "javac", but echoing the
JDK that the batch job uses confirms it's the expected one (1.5.0_06).

 M2 doesn't have a bundled 1.4 javac does it?  Any suggestions or thoughts?

  The only 'odd' think about my pom.xml is that I call the xdoclet plugin to
run ejbdoclet, but I don't know if that's involved...

/Gwyn
--
View this message in context: http://www.nabble.com/Checking-in-use-compiler--t1469398.html#a3972335
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Checking in-use compiler?

Posted by Gwyn <gw...@gmail.com>.

Roye, Suhneel BGI SF wrote:
> 
> Take a look at this link:
> http://maven.apache.org/plugins/maven-compiler-plugin/howto.html 
> 
> You have to explicitly specify that you want to compile with Java 1.5
> 

Hmm, so it appears... Thanks!

/Gwyn
--
View this message in context: http://www.nabble.com/Checking-in-use-compiler--t1469398.html#a3974270
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org