Skip to content

Commit

Permalink
Fixes #519 - Unable to run Eclipse Transformer on Java 21 using the M…
Browse files Browse the repository at this point in the history
…aven plugin
  • Loading branch information
mnriem committed Dec 27, 2023
1 parent 50f2591 commit 9d189c3
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions maven-plugins/transformer-maven-plugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ This plugin contains the following goals:
- [`transform`](#transform-goal)
- [`help`](#help-goal)

__Note__: if you are using Java 21 or later see [Using Java 21 or later](#java-21-or-later).

## `jar` Goal

The `jar` goal operates at the JAR file level and transforms the specified input artifact into a project artifact.
Expand Down Expand Up @@ -250,3 +252,17 @@ It is therefore necessary to configure the `maven-jar-plugin` as follows:

The `help` goal displays help about the goals of the plugin.
Call `mvn transformer:help -Ddetail=true -Dgoal=<goal-name>` to display configuration details for the specified goal.

## Java 21 or later

If you are using Java 21 or later you will need to configure the Maven plugin to use a specific version of the `biz.aQute.bnd` dependency.

E.g.

```xml
<dependency>
<groupId>biz.aQute.bnd</groupId>
<artifactId>biz.aQute.bnd</artifactId>
<version>7.0.0</version>
</dependency>
```

0 comments on commit 9d189c3

Please sign in to comment.