Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Manifest data to API jar #1697

Merged
merged 3 commits into from
Jul 8, 2022
Merged

Add Manifest data to API jar #1697

merged 3 commits into from
Jul 8, 2022

Conversation

jasondlee
Copy link
Contributor

Clone the maven-bundle-plugin config from impl and modify for the API artifact

Clone the maven-bundle-plugin config from impl and modify for the API artifact
<!-- Generate the OSGi jar Manifest. -->
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm getting

[WARNING] 'build.plugins.plugin.version' for org.apache.felix:maven-bundle-plugin is missing. @ line 290, column 21
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If version 5.1.6 is to be used (the latest) note that it needs 2 extra instructions to prevent it from creating a corrupted jar:

<instructions>
     <_noimportjava>true</_noimportjava>
     <_runee>JavaSE-11</_runee>
</instructions>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry. It ran fine on my machine without that, so I was unaware of the need here. :)

api/pom.xml Outdated
<Specification-Version>4.0</Specification-Version>
<!-- Set the package version to match the spec version -->
<Export-Package>
javax.faces*;version=4.0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the correct package?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be jakarta.* of course.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Derp. Yes. :P

@arjantijms arjantijms merged commit 04088a8 into jakartaee:4.0.1 Jul 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants