From 3e9e17ec8060b1479daae4b5a9e257c64f1ed8a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20G=C3=A4rdebrand?= Date: Mon, 1 Dec 2025 10:04:53 +0100 Subject: [PATCH] Fixed a build error in PomUpdater that was missed after updating dependencies --- .github/workflows/maven.yml | 7 +++++-- .../main/java/se/fortnox/changesets/maven/PomUpdater.java | 3 +-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index df9fc1a..e66f1bd 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -4,9 +4,12 @@ name: Java CI with Maven on: push: - branches: [ "main" ] + branches: + - main pull_request: - branches: [ "main" ] + types: + - opened + - synchronize jobs: build: diff --git a/changesets-maven-plugin/src/main/java/se/fortnox/changesets/maven/PomUpdater.java b/changesets-maven-plugin/src/main/java/se/fortnox/changesets/maven/PomUpdater.java index 9759d0a..aa2ec01 100644 --- a/changesets-maven-plugin/src/main/java/se/fortnox/changesets/maven/PomUpdater.java +++ b/changesets-maven-plugin/src/main/java/se/fortnox/changesets/maven/PomUpdater.java @@ -5,7 +5,6 @@ import org.slf4j.Logger; import javax.xml.stream.XMLStreamException; -import javax.xml.transform.TransformerException; import java.io.File; import java.io.IOException; import java.io.Writer; @@ -66,7 +65,7 @@ private static void updatePom(File outFile, Consumer upd writer.write(newPom.getSource()); } } - } catch (XMLStreamException | IOException | TransformerException e) { + } catch (XMLStreamException | IOException e) { LOG.error("Failed to update {}", outFile, e); } }