eclipse / transformer

Eclipse Transformer provides tools and runtime components that transform Java binaries, such as individual class files and complete JARs and WARs, mapping changes to Java packages, type names, and related resource names.

Home Page:https://projects.eclipse.org/projects/technology.transformer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

c-koell opened this issue · 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 !

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.

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 ?

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.

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.

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.