Skip to content

Commit

Permalink
Merge pull request #529 from mnriem/issue-519
Browse files Browse the repository at this point in the history
Fixes #519 - Unable to run Eclipse Transformer on Java 21 using the Maven plugin
  • Loading branch information
bjhargrave authored Jan 1, 2024
2 parents 50f2591 + 10a1197 commit 0723ff0
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.bndlib` dependency.

For example:

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

0 comments on commit 0723ff0

Please sign in to comment.