diff --git a/flow-maven-plugin/src/main/java/com/vaadin/flow/plugin/production/ProductionModeCopyStep.java b/flow-maven-plugin/src/main/java/com/vaadin/flow/plugin/production/ProductionModeCopyStep.java
index 086486949f2..6ddffb2697d 100644
--- a/flow-maven-plugin/src/main/java/com/vaadin/flow/plugin/production/ProductionModeCopyStep.java
+++ b/flow-maven-plugin/src/main/java/com/vaadin/flow/plugin/production/ProductionModeCopyStep.java
@@ -149,18 +149,10 @@ private String getPackageDirectory(String bowerJsonPath) {
private String getPackageName(ArtifactData webJar,
String nameSourceJarPath) {
- String fileContents;
- try {
- fileContents = IOUtils.toString(
- jarContentsManager.getFileContents(
- webJar.getFileOrDirectory(), nameSourceJarPath),
- StandardCharsets.UTF_8.displayName());
- } catch (IOException e) {
- throw new UncheckedIOException(
- String.format("Unable to read file '%s' from webJar '%s'",
- nameSourceJarPath, webJar.getFileOrDirectory()),
- e);
- }
+ String fileContents = IOUtils.toString(
+ jarContentsManager.getFileContents(
+ webJar.getFileOrDirectory(), nameSourceJarPath),
+ StandardCharsets.UTF_8.displayName());
JsonObject jsonObject = Json.parse(fileContents);
if (jsonObject.hasKey("name")) {
String name = jsonObject.getString("name");
diff --git a/pom.xml b/pom.xml
index ac6a6f68c65..90a2a956ab0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -196,7 +196,7 @@
commons-io
commons-io
- 2.8.0
+ 2.11.0
org.apache.commons