Hi

That website info is a bit outdated as today these settings are automatic
set in the .mvn sub folder of the source code, eg see the file
.mvn/jvm.confiig

.mvn/jvm.config
-Xmx3584m -Djava.awt.headless=true -XX:+UseG1GC -XX:+UseStringDeduplication

So you dont need to tweak just use mvn clean install -P fastinstall

On Tue, Sep 20, 2022 at 10:27 AM FÖRSTERLING Björn <
bjoern.foersterl...@cpb-software.com> wrote:

> Hello,
>
> I just tried building Apache Camel to get a jar.
> According to the documentation you have to execute these two lines:
>
> $ export MAVEN_OPTS="-Xms3000m -Xmx3000m -XX:MaxPermSize=512m"
> $ mvn clean source:jar install -Pfastinstall
> Unrecognized VM option 'MaxPermSize=512m'
> Error: Could not create the Java Virtual Machine.
> Error: A fatal exception has occurred. Program will exit.
>
> I use openjdk version "17.0.4" 2022-07-19.
>
> Do I need an older java version or is the MaxPermSize option different
> different in java 17?
>
> Thanks in advance.
>
> Greetings
> Björn Försterling
>


-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to