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

Parameter 'extensions' is unknown for plugin 'transformer-maven-plugin:0.5.0:jar

OrangeDog opened this issue · comments

The documentation for the Maven plugin says:

When using this goal without specifying a classifier, the plugin must be configured with <extensions>true</extensions> in order to coordinate with the maven-jar-plugin.

However, there is no such property documented, and indeed it does not work:

[WARNING] Parameter 'extensions' is unknown for plugin 'transformer-maven-plugin:0.5.0:jar (default)'
[ERROR] Failed to execute goal org.eclipse.transformer:transformer-maven-plugin:0.5.0:jar (default) on project test: In order to use the transformer-maven-plugin packaging goal jar without a classifier, <extensions>true</extensions> must be set on the plugin configuration

It is not part of the plugin's configuration but it is part of the pom to add the plugin as a build extension. See https://maven.apache.org/guides/mini/guide-using-extensions.html#build-extension.

For example, see:

<plugin>
<groupId>org.eclipse.transformer</groupId>
<artifactId>transformer-maven-plugin</artifactId>
<version>${transformer.version}</version>
<extensions>true</extensions>
<configuration>
<rules>
<jakartaDefaults>true</jakartaDefaults>
</rules>
</configuration>