Rico Neubauer created CONFIGURATION-639:
-------------------------------------------
Summary: OSGi Import-Package declaration not complete regarding
optional dependencies
Key: CONFIGURATION-639
URL: https://issues.apache.org/jira/browse/CONFIGURATION-639
Project: Commons Configuration
Issue Type: Bug
Affects Versions: 2.1
Environment: OSGi-container
Reporter: Rico Neubauer
common-configuration2's pom.xml correctly defines optional dependencies like
vfs2 or spring with <optional>.
However, it does only declare a subset of those as optional OSGi-dependencies:
{code:xml}
<!-- Explicitly declare optional dependencies for the OSGi manifest. -->
<commons.osgi.import>
org.apache.commons.beanutils.*;resolution:=optional,
org.apache.commons.codec.*;resolution:=optional,
org.apache.commons.jxpath.*;resolution:=optional,
org.apache.xml.resolver.*;resolution:=optional,
javax.servlet.*;resolution:=optional,
org.apache.commons.jexl2.*;resolution:=optional,
org.apache.commons.vfs2.*;resolution:=optional,
*
</commons.osgi.import>
{code}
See https://github.com/apache/commons-configuration/blob/trunk/pom.xml for both
above.
Due to the missing "resolution:=optional, commons-configuration2 cannot be
deployed in an OSGi-environment not providing the optional bundles.
Example error on deploy:
{code}
Unable to resolve Module[org.apache.commons.configuration:2.1.0]: missing
requirement [Module[org.apache.commons.configuration:2.1.0]] package;
(package=org.springframework.beans.factory)
{code}
Please have a look if you agree and add the missing instructions for the
remaining optional dependencies.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)