Ciramella, EJ wrote:
Sorry about that, I have created a project.properties file and have the
following line in it:

maven.javadoc.maxmemory=512m

I was editing the maven.bat file, changing the following line:

if "%MAVEN_OPTS%"=="" SET MAVEN_OPTS="-Xms160m"

to be more memory (but then I set it back to 160).

Even if I get rid of the project.properties file, I still get the same error
below.  I have also added in the echo statement and it echos back the same
thing as set above.  I'm running on Win2k pro, 1 gb ram, jdk 1.3.1_07 and
maven B10.


I think you must have some inconsistency otherwise you shouldn't get an error like this. You will get this error if your minimum heap size is larger than the maximum, e.g.


$ java -Xms1000m -Xmx100m
Error occurred during initialization of VM
Incompatible initial and maximum heap sizes specified
$

I would check what you're ending up with on the command line and make sure it makes sense. It's probably best to start from scratch and just re-install the maven. Have you set MAVEN_OPTS as an environment variable at all?

Whenever I reinstall Maven I just modify the script to set the maximum heap size to some large value (e.g. 500m). I haven't encountered a separate problem with javadoc and have never had to set maven.javadoc.maxmemory so I'm not sure about that. Do you get the error when you start Maven or when it tries to generate the javadoc?



--
 Luke Taylor.                      Monkey Machine Ltd.
 PGP Key ID: 0x57E9523C            http://www.monkeymachine.ltd.uk




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to