[ 
https://issues.apache.org/jira/browse/COMPRESS-660?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gary D. Gregory resolved COMPRESS-660.
--------------------------------------
    Fix Version/s: 1.26.1
       Resolution: Fixed

In git master and snapshot builds https: 
[https://repository.apache.org/content/repositories/snapshots/org/apache/commons/commons-compress/1.26.1-SNAPSHOT/]

 

> OSGi Manifest requires optional dependency commons-codec
> --------------------------------------------------------
>
>                 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
>            Priority: Major
>             Fix For: 1.26.1
>
>
> 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)

Reply via email to