[
https://issues.apache.org/jira/browse/JCS-234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chris Lake updated JCS-234:
---------------------------
Attachment: image-2023-05-04-11-55-51-212.png
> Imported packages for OSGi manifest incorrect
> ---------------------------------------------
>
> Key: JCS-234
> URL: https://issues.apache.org/jira/browse/JCS-234
> Project: Commons JCS
> Issue Type: Bug
> Affects Versions: jcs-3.1
> Reporter: Chris Lake
> Priority: Major
> Attachments: image-2023-05-04-11-52-45-029.png,
> image-2023-05-04-11-53-48-446.png, image-2023-05-04-11-55-51-212.png
>
>
> The Jira ticket JCS-228 attempted to make the imported packages optional in
> OSGi Manifest.
>
> However, it appears that this was done incorrectly. The change was to add:
> {code:java}
> <commons.osgi.import>
> javax.servlet.*;resolution=optional,
> org.apache.commons.dbcp2.*;resolution=optional,
> org.apache.http.*;resolution=optional,
> org.apache.logging.log4j.*;resolution=optional
> </commons.osgi.import>{code}
> However, there should be a colon between prior to the equals:
> {code:java}
> <commons.osgi.import>
> javax.servlet.*;resolution:=optional,
> org.apache.commons.dbcp2.*;resolution:=optional,
> org.apache.http.*;resolution:=optional,
> org.apache.logging.log4j.*;resolution:=optional
> </commons.osgi.import>{code}
> Without it, we can see that the import is not considered optional:
> !image-2023-05-04-11-52-45-029.png!
> But with the colon. it is correct:
> !image-2023-05-04-11-53-48-446.png!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)