From 40bd44adeab5311dd854402396a322327bec8ebe Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Tue, 5 Dec 2023 21:48:46 +0100 Subject: jgvariant-tool: Add Maven exec plugin for direct execution. Change-Id: I683100e55a9ba06028bc0d92af4087c5749ad4ad --- README.md | 7 +++++-- jgvariant-parent/pom.xml | 7 +++++++ jgvariant-tool/pom.xml | 24 ++++++++++++++++++++++++ 3 files changed, 36 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 07558b0..962810b 100644 --- a/README.md +++ b/README.md @@ -89,13 +89,16 @@ You can build the tool either as a shaded JAR or as a native executable. To build and run a shaded JAR: $ mvn package -pl jgvariant-tool -am -Pshade - $ java -jar /home/mulk/Arbeitskasten/jgvariant/jgvariant-tool/target/jgvariant-tool-*.jar + $ java -jar /home/mulk/Arbeitskasten/jgvariant/jgvariant-tool/target/jgvariant-tool-*.jar ... To build and run a native executable: $ mvn package -pl jgvariant-tool -am -Pnative - $ ./jgvariant-tool/target/jgvariant + $ ./jgvariant-tool/target/jgvariant ... +You can also run the tool directly with Maven using the `exec` profile: + + $ mvn verify -pl jgvariant-tool -am -Pexec -Dexec.args="..." ## Library installation diff --git a/jgvariant-parent/pom.xml b/jgvariant-parent/pom.xml index 4d053fc..0fadc4c 100644 --- a/jgvariant-parent/pom.xml +++ b/jgvariant-parent/pom.xml @@ -56,6 +56,7 @@ SPDX-License-Identifier: LGPL-3.0-or-later UTF-8 3.11.0 + 3.1.0 ${surefire-plugin.version} 1.5.0 3.3.0 @@ -265,6 +266,12 @@ SPDX-License-Identifier: LGPL-3.0-or-later + + org.codehaus.mojo + exec-maven-plugin + ${exec-plugin.version} + + org.graalvm.buildtools native-maven-plugin diff --git a/jgvariant-tool/pom.xml b/jgvariant-tool/pom.xml index ee2b8a8..6e01ade 100644 --- a/jgvariant-tool/pom.xml +++ b/jgvariant-tool/pom.xml @@ -234,6 +234,30 @@ SPDX-License-Identifier: GPL-3.0-or-later + + + exec + + + + org.codehaus.mojo + exec-maven-plugin + + + verify + + java + + + + + eu.mulk.jgvariant.tool.Main + + + + + + -- cgit v1.2.3