From 9d189c3ed69d05631b70eed7f76a6a23d106630d Mon Sep 17 00:00:00 2001 From: Manfred Riem Date: Wed, 27 Dec 2023 10:39:08 -0600 Subject: [PATCH 1/2] Fixes #519 - Unable to run Eclipse Transformer on Java 21 using the Maven plugin --- maven-plugins/transformer-maven-plugin/README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/maven-plugins/transformer-maven-plugin/README.md b/maven-plugins/transformer-maven-plugin/README.md index 96e4101f..aa4a5e24 100644 --- a/maven-plugins/transformer-maven-plugin/README.md +++ b/maven-plugins/transformer-maven-plugin/README.md @@ -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. @@ -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=` 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 + + biz.aQute.bnd + biz.aQute.bnd + 7.0.0 + +``` From 10a11978fc8faf46f185c117417826ef16f0cdc5 Mon Sep 17 00:00:00 2001 From: Manfred Riem Date: Sun, 31 Dec 2023 09:15:13 -0600 Subject: [PATCH 2/2] Fixes #519 - Unable to run Eclipse Transformer on Java 21 using the Maven plugin --- maven-plugins/transformer-maven-plugin/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/maven-plugins/transformer-maven-plugin/README.md b/maven-plugins/transformer-maven-plugin/README.md index aa4a5e24..2138fd57 100644 --- a/maven-plugins/transformer-maven-plugin/README.md +++ b/maven-plugins/transformer-maven-plugin/README.md @@ -255,14 +255,14 @@ Call `mvn transformer:help -Ddetail=true -Dgoal=` to display configur ## 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. +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. -E.g. +For example: ```xml biz.aQute.bnd - biz.aQute.bnd + biz.aQute.bndlib 7.0.0 ```