-
Notifications
You must be signed in to change notification settings - Fork 308
add osgi headers via maven-bundle-plugin #359
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,6 +76,42 @@ | |
<artifactId>maven-surefire-plugin</artifactId> | ||
<version>3.2.5</version> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.felix</groupId> | ||
<artifactId>maven-bundle-plugin</artifactId> | ||
<version>5.1.9</version> | ||
<configuration> | ||
<supportedProjectTypes> | ||
<supportedProjectType>jar</supportedProjectType> | ||
<supportedProjectType>bundle</supportedProjectType> | ||
</supportedProjectTypes> | ||
<instructions> | ||
<Import-Package> | ||
org.commonmark.*;-split-package:=merge-first | ||
</Import-Package> | ||
<Export-Package> | ||
{local-packages} | ||
</Export-Package> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does this export There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is the file MANIFEST is produces
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, so looks like there's no Why does it have an |
||
</instructions> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<id>manifest</id> | ||
<goals> | ||
<goal>manifest</goal> | ||
</goals> | ||
<configuration> | ||
<supportIncrementalBuild>true</supportIncrementalBuild> | ||
</configuration> | ||
</execution> | ||
<execution> | ||
<id>bundle</id> | ||
<goals> | ||
<goal>bundle</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</pluginManagement> | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to only put this into the
<build><plugins>
of the parent pom instead of every child pom (I'm not sure if that works or not)?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was the only way I could get it working, been a few months since I put this together, so I can't exactly remember variations I tried.
I'll revisit it and let you know what I find