transformer icon indicating copy to clipboard operation
transformer copied to clipboard

Is there a way to define custom manifest Entries within the jar goal

Open c-koell opened this issue 2 years ago • 3 comments

Hi!

We are using the jar goal to create the jakarta artifakt... Is there a way to create a own (manipulate the existing) MANIFEST.MF File in the transformed artifact ?

We want the change the Implementation-Title Value.

Thanks for any help !

c-koell avatar Aug 31 '22 13:08 c-koell

The bundles rule only modifies 4 manifest entries which do not include Implementation-Title. So there is no way with the rules to modify that manifest entry, so using the jar goal can't do it.

You could change to use the transform goal as shown in this example: https://github.com/eclipse/transformer/tree/main/maven-plugins/transformer-maven-plugin#transform-goal-plugin-configuration-example

You could then set any desired manifest entries in the maven-jar-plugin configuration.

In the alternate, we would need to expand the capabilities of the bundle rule to support transforming arbitrary manifest values.

bjhargrave avatar Aug 31 '22 14:08 bjhargrave

Thanks for your quick answer ! We are using the jar goal in many of our projects now and im not sure if we should change to the transformer goal since it works great. Can you estimate how much work it is to implement the capability of the bundle rule ?

c-koell avatar Sep 01 '22 05:09 c-koell

Can you estimate how much work it is to implement the capability of the bundle rule ?

I don't know. Maybe a few days if you are familiar with the code base.

bjhargrave avatar Sep 01 '22 15:09 bjhargrave

This issue has been automatically marked as stale because it has not had recent activity. Given the limited bandwidth of the team, it will be automatically closed if no further activity occurs. If you feel this is something you could contribute, please have a look at our Contributor Guide. Thank you for your contribution.

github-actions[bot] avatar Sep 02 '23 01:09 github-actions[bot]

This issue has been automatically closed due to inactivity. If you can reproduce this or if you have a good use case for this feature, please feel free to reopen the issue with steps to reproduce, a quick explanation of your use case or a high-quality pull request.

github-actions[bot] avatar Sep 23 '23 01:09 github-actions[bot]