From f7135ba0cc927c7824125a28393b68c159a25e62 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 24 Oct 2022 16:09:34 +0000 Subject: [PATCH] Bump plexus-utils from 3.4.2 to 3.5.0 Bumps [plexus-utils](https://github.com/codehaus-plexus/plexus-utils) from 3.4.2 to 3.5.0. - [Release notes](https://github.com/codehaus-plexus/plexus-utils/releases) - [Commits](https://github.com/codehaus-plexus/plexus-utils/compare/plexus-utils-3.4.2...plexus-utils-3.5.0) --- updated-dependencies: - dependency-name: org.codehaus.plexus:plexus-utils dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- pom.xml | 2 +- src/main/java/org/codehaus/mojo/exec/ExecMojo.java | 13 +++---------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/pom.xml b/pom.xml index 28363ac0..7bdbebd0 100644 --- a/pom.xml +++ b/pom.xml @@ -140,7 +140,7 @@ org.codehaus.plexus plexus-utils - 3.4.2 + 3.5.0 diff --git a/src/main/java/org/codehaus/mojo/exec/ExecMojo.java b/src/main/java/org/codehaus/mojo/exec/ExecMojo.java index 8b4ce310..a2092474 100644 --- a/src/main/java/org/codehaus/mojo/exec/ExecMojo.java +++ b/src/main/java/org/codehaus/mojo/exec/ExecMojo.java @@ -530,17 +530,10 @@ private Map handleSystemEnvVariables() { Map enviro = new HashMap(); - try - { - Properties systemEnvVars = CommandLineUtils.getSystemEnvVars(); - for ( Map.Entry entry : systemEnvVars.entrySet() ) - { - enviro.put( (String) entry.getKey(), (String) entry.getValue() ); - } - } - catch ( IOException x ) + Properties systemEnvVars = CommandLineUtils.getSystemEnvVars(); + for ( Map.Entry entry : systemEnvVars.entrySet() ) { - getLog().error( "Could not assign default system enviroment variables.", x ); + enviro.put( (String) entry.getKey(), (String) entry.getValue() ); } if ( environmentVariables != null )