Christoph Loy created COMPRESS-660: -------------------------------------- Summary: OSGi Manifest requires optional maven dependency commons-codes Key: COMPRESS-660 URL: https://issues.apache.org/jira/browse/COMPRESS-660 Project: Commons Compress Issue Type: Bug Components: Build Affects Versions: 1.26.0 Reporter: Christoph Loy
Since version 1.26, commons-compress *optionally* [requires commons-codec|https://github.com/apache/commons-compress/blob/09a271dfd73e3ce01815f3f65057f92b5b7009bb/pom.xml#L134]. In the OSGi-Manifest, the Import-Package declaration for org.apache.commons.codec does not have the resolution:=optional attribute. In our case, we have commons-compress as maven dependency. Since commons-codec is an optional dependency, it is not downloaded automatically. But when we start our application, we get an OSGi error that commons-codec cannot be resolved. To fix this issue, the Import-Package delcaration to all apache.commons.compress packages has to be marked with resolution:=optional in META-INF/MANIFEST.MF. -- This message was sent by Atlassian Jira (v8.20.10#820010)