diff --git a/plugin/pom.xml b/plugin/pom.xml index 4b0d56d..2ab785e 100644 --- a/plugin/pom.xml +++ b/plugin/pom.xml @@ -1,11 +1,13 @@ io.github.antonio-petricca filemerger-maven-plugin - 1.5.1 + 1.5.3 maven-plugin @@ -56,17 +58,10 @@ - - org.apache.commons - commons-lang3 - 3.15.0 - compile - - org.apache.maven maven-core - 3.9.8 + 3.6.3 provided @@ -74,28 +69,12 @@ org.apache.maven.shared maven-filtering 3.3.2 - compile - - - - org.apache.maven - maven-plugin-api - 3.9.8 - provided org.apache.maven.plugin-tools maven-plugin-annotations - 3.12.0 - provided - - - - org.apache.maven - maven-project - 2.2.1 - provided + 3.13.1 diff --git a/plugin/src/main/java/io/github/antoniopetricca/maven/plugins/filemerger/MavenFileMergerMojo.java b/plugin/src/main/java/io/github/antoniopetricca/maven/plugins/filemerger/MavenFileMergerMojo.java index 6269570..c7ca262 100644 --- a/plugin/src/main/java/io/github/antoniopetricca/maven/plugins/filemerger/MavenFileMergerMojo.java +++ b/plugin/src/main/java/io/github/antoniopetricca/maven/plugins/filemerger/MavenFileMergerMojo.java @@ -1,7 +1,5 @@ package io.github.antoniopetricca.maven.plugins.filemerger; -// https://www.baeldung.com/maven-plugin - import io.github.antoniopetricca.maven.plugins.filemerger.configuration.*; import org.apache.commons.io.FilenameUtils; import org.apache.commons.lang3.StringUtils; @@ -515,7 +513,10 @@ public void execute() mergeTargetFile(targetFile, properties, sourceFiles, projectBaseDir); } catch(IOException | MavenFilteringException exception) { - throw new MojoExecutionException(exception); + throw new MojoExecutionException( + exception.getMessage(), + exception + ); } } diff --git a/pom.xml b/pom.xml index 1fd9524..d0ad6d2 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ io.github.antonio-petricca filemerger-maven-plugin-pom - 1.5.1 + 1.5.3 pom diff --git a/tester/pom.xml b/tester/pom.xml index fc332b9..cc9329b 100644 --- a/tester/pom.xml +++ b/tester/pom.xml @@ -9,7 +9,7 @@ io.github.antonio-petricca filemerger-maven-plugin-tester - 1.5.1 + 1.5.3 jar