I have the following for my shell:

export MAVEN_OPTS="-Xmx2g -XX:MaxPermSize=512M
-XX:ReservedCodeCacheSize=512m"

How do you specify MAVEN_OPTS ?
Which version of Java / maven do you use ?

Cheers

On Sat, Feb 13, 2016 at 7:34 AM, Milad khajavi <[email protected]> wrote:

> Hello,
> When I want to compile the Spark project, the following error occurs:
>
> milad@pc:~/workspace/source/spark$ build/mvn -DskipTests clean package
> Using `mvn` from path: /home/milad/.linuxbrew/bin/mvn
> Unrecognized VM option 'MaxPermSize=512M'
> Error: Could not create the Java Virtual Machine.
> Error: A fatal exception has occurred. Program will exit.
>
> What is the problem, if anyone know?
>
>
> --
> Milād Khājavi
> http://blog.khajavi.ir
> Having the source means you can do it yourself.
> I tried to change the world, but I couldn’t find the source code.
>

Reply via email to