[
https://issues.apache.org/jira/browse/HTTPCLIENT-865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12739274#action_12739274
]
Richard Wallace commented on HTTPCLIENT-865:
--------------------------------------------
You need to add the version to each of the exported packages. Instead of
{code}
<_exportcontents>
org.apache.http.cookie.*,
org.apache.http.impl.cookie.*,
org.apache.http.auth.*,
org.apache.http.impl.auth.*,
org.apache.http.conn.*,
org.apache.http.impl.conn.*,
org.apache.http.client.*,
org.apache.http.impl.client.*,
org.apache.http.entity.mime.*,
org.apache.http.entity.mime.content.*
</_exportcontents>
{code}
you want
{code}
<_exportcontents>
org.apache.http.cookie.*;version="${project.version}",
org.apache.http.impl.cookie.*;version="${project.version}",
org.apache.http.auth.*;version="${project.version}",
org.apache.http.impl.auth.*;version="${project.version}",
org.apache.http.conn.*;version="${project.version}",
org.apache.http.impl.conn.*;version="${project.version}",
org.apache.http.client.*;version="${project.version}",
org.apache.http.impl.client.*;version="${project.version}",
org.apache.http.entity.mime.*;version="${project.version}",
org.apache.http.entity.mime.content.*;version="${project.version}"
</_exportcontents>
{code}
> HttpClient OSGi Export-Package doesn't specify version
> ------------------------------------------------------
>
> Key: HTTPCLIENT-865
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-865
> Project: HttpComponents HttpClient
> Issue Type: Bug
> Components: HttpClient
> Reporter: Richard Wallace
>
> The "Export-Package" manifest entry doesn't specify the version of the
> package being exported. This means that packages importing it can't specify
> a version to import.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]