Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

feign-form OSGi Export-Package header is incorrect

Open Beginner friendly
#3,585 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
88/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
java
Domain
build-system

Research direction

Start by inspecting the POM's maven-bundle-plugin configuration and the generated MANIFEST.MF. Consolidate the Export-Package entries as described, then verify that feign.form, feign.form.multipart, and feign.form.util are exported and that FormEncoder is usable in an OSGi environment.

Written by the indexing model from the issue text.

Description

The current POM has the following:

<plugin>
  <groupId>org.apache.felix</groupId>
  <artifactId>maven-bundle-plugin</artifactId>
  <configuration>
    <instructions>
      <Export-Package>feign.form</Export-Package>
      <Export-Package>feign.form.multipart</Export-Package>
    </instructions>
  </configuration>
</plugin>

Unfortunately, Maven Bundle plugin (and the underlying BND library), only process the 'final' Export-Package command. So, the MANIFEST.MF that is generated has the wrong Export-Package:

Export-Package: feign.form.multipart;version="13.16.0";uses:="feign.codec"

By changing it to:

<plugin>
  <groupId>org.apache.felix</groupId>
  <artifactId>maven-bundle-plugin</artifactId>
  <configuration>
    <instructions>
      <Export-Package>feign.form,feign.form.*</Export-Package>
    </instructions>
  </configuration>
</plugin>

You end up with the correct MANIFEST.MF of:

Export-Package: feign.form;uses:="feign,feign.codec,feign.form.multipart";version="13.16.0",feign.form.multipart;version="13.16.0";uses:="feign .codec",feign.form.util;version="13.16.0"

Without this change, you can't add the FormEncoder to the Feign builder to add support for x-www-data-urlencoded within an OSGi environment, since FormEncoder is not exported.

Dominant language
Java
Stars
9.8k
Forks
1.9k
Avg merge
1d 8h
Merged PRs (30d)
37

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from OpenFeign/feign

All issues in OpenFeign/feign

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.