Hi,
I guess you have the issue at deployment time while running Karaf right ?
The JDK11 args (add exports, open, etc) are defined in the bin/karaf (or
wrapper conf if you are using the wrapper).
Regards
JB
On Fri, Sep 23, 2022 at 8:13 PM Vamsikrishna Koka
wrote:
> Hi Team,
>
>
>
> We are tried to upgrade latest KARAF from KARAF *4.2.15* to KARAF *4.4.1*
> version with *OpenJDK 11*. And tried osgi.annotation/7.0.0 or 8.1.0 both
> version .
>
> Release Note KARAF 4.4.1
> https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12311140=12351548
>
>
>
> While doing maven build our product, the build was failed due to package
> sun.security.krb5.internal is not visible
> [ERROR] (package sun.security.krb5.internal is declared in module
> java.security.jgss, which does not export it to the unnamed module).
>
>
>
> The above issue for fixing, I have added given below compilerArgs tag then
> only maven build working. We do have any best solution the above issue?
> without adding the given below compilerArgs tags.
>
>
>
>
>
> ${java.version}
>
> ${java.version}
>
>
>
>
>
> --add-exportsjava.base/sun.nio.ch
> =ALL-UNNAMED
>
>
> --add-exportsjava.base/jdk.internal.ref=ALL-UNNAMED
>
>
>
>
>
>
>
> Thanks,
> * VamsiKrishna*
> Senior Software Engineer
>
> Mob: +91 9381078936
>
>
> [image: Motivitylabs - Enabling Mobile Enterprises]
>
> *US: *222 W. Las Colinas Blvd.
> Suite 755 East
> Irving, TX 75039
> Ph:+1-214-730-0798
>
> *INDIA:* 9th & 10th floor, Water Mark Building, Kondapur, Hitech City,
> Hyderabad 500 084, Telangana.
> Ph:+91-40-4651-5454
>
> *Confidentiality Note:* This message is confidential. It may also be
> privileged or otherwise protected by work product immunity or other legal
> rules. This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they ar
>
>
>
>
>