Freddy,
Add the following to you project.properties and try maven java:compile
again:
maven.compile.source=1.5
maven.compile.target=1.5
Doug
Minds Work wrote:
Hi
I have a class that uses the method "setXIncludeAware(boolean)" from "
javax.xml.parsers.SAXParserFactory" (jdk1.5)
The class compiles in eclipse.
But when I run maven, maven does not compile the class, it says that this
method does not exists.
I tried in others machines, but the error is alwalys the same:
C:\Mantissa\workspace\biogenie-client\src\java\br\com\mindsatwork\biogenie\ui\BioGenieApplication.java:1309:
cannot find symbol
symbol : method setXIncludeAware(boolean)
location: class javax.xml.parsers.SAXParserFactory
SAXParserFactory.newInstance().setXIncludeAware( false );
Does anyone know why this is happening??
PS: If I coment the line that uses the "setXIncludeAware(boolean)", maven
compiles the class.
PS2: The JAVA_HOME env var is set to the same JVM that I use in eclipse.
PS3: I'm running maven 1.0.2 and eclipse 3.1, in windows XP
[]s
Freddy
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]