Re: Problem passing args to tomee.maven.plugin

Roar Brænden <[email protected]> Wed, 4 Jun 2025 23:52:03 +0200
Newsgroups gmane.comp.java.openejb.user
Message-ID <0C3E4F04-3CA2-4979-9CC2-D4E2CEFDFDD3__6269.20271185867$1749073943$gmane$org@gmail.com>
--Apple-Mail=_E7E2921C-1DC8-45FF-ACD7-E1E14E0233F9
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

Hi Richard,

You're right. It should be only one args within the configuration =
element.
Which mean that the last one will override all previous.

Thanks,
Roar Br=C3=A6nden

> 4. jun. 2025 kl. 21:06 skrev Richard Zowalla <[email protected]>:
>=20
> Hi,
>=20
> I think the separator for <args> is a whitespace [1], so you would =
need to pass it as one argument.
>=20
> <tomee.png>
> =
tomee/maven/tomee-maven-plugin/src/main/java/org/apache/openejb/maven/plug=
in/cli/Args.java at main =C2=B7 apache/tomee
> github.com
>  =
<https://github.com/apache/tomee/blob/main/maven/tomee-maven-plugin/src/ma=
in/java/org/apache/openejb/maven/plugin/cli/Args.java#L32>tomee/maven/tome=
e-maven-plugin/src/main/java/org/apache/openejb/maven/plugin/cli/Args.java=
 at main =C2=B7 apache/tomee =
<https://github.com/apache/tomee/blob/main/maven/tomee-maven-plugin/src/ma=
in/java/org/apache/openejb/maven/plugin/cli/Args.java#L32>
> github.com =
<https://github.com/apache/tomee/blob/main/maven/tomee-maven-plugin/src/ma=
in/java/org/apache/openejb/maven/plugin/cli/Args.java#L32>
>=20
> Gru=C3=9F
> Richard
>=20
>> Am 03.06.2025 um 09:48 schrieb Roar Br=C3=A6nden =
<[email protected]>:
>>=20
>> Hi,
>>=20
>> I'm using Tomee 10.0.1 with JDK 21. One of my end-points is using =
Lucene index for some search result. The Lucene jar is version 10.2.1, =
which is using the new Vector API.
>> When using this library I notice some warnings in the log:
>>=20
>>=20
>> WARNING: A restricted method in java.lang.foreign.Linker has been =
called
>> WARNING: java.lang.foreign.Linker::downcallHandle has been called by =
the unnamed module
>> WARNING: Use --enable-native-access=3DALL-UNNAMED to avoid a warning =
for this module
>>=20
>> 03-Jun-2025 09:40:17.597 WARNING [http-nio-8091-exec-2] =
org.apache.lucene.internal.vectorization.VectorizationProvider.lookup =
Java vector incubator module is not readable. For optimal vector =
performance, pass '--add-modules jdk.incubator.vector' to enable Vector =
API.
>>=20
>> To avoid these messages, I tried to add args to my tomee-maven-plugin =
configuration:
>>=20
>>            <args>enable-native-access=3DALL-UNNAMED</args>
>>            <args>add-modules=3Djdk.incubator.vector</args>
>>=20
>> What I noticed is that only the last one will be taken into =
consideration. Meaning that with these settings I will get the first =
WARNING, and a message indicating that the Vector API is found. If I =
switch the args, I will get the last WARNING.
>> Is this a know problem with the plugin configuration?
>>=20
>> Best regards,
>> Roar Br=C3=A6nden
>>=20
>=20


--Apple-Mail=_E7E2921C-1DC8-45FF-ACD7-E1E14E0233F9--