Skip to content

Commit

Permalink
Set the target file in the Model
Browse files Browse the repository at this point in the history
This is necessary so `maven-model-helper` can know which pom.xml the change refers to.

- Fixes quarkusio#40853
  • Loading branch information
gastaldi committed May 28, 2024
1 parent 22ec638 commit 2bb3087
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,9 @@ private static Properties loadPomProps(Path appJar, Path artifactIdPath) throws
}

public static Model readModel(final Path pomXml) throws IOException {
return readModel(Files.newInputStream(pomXml));
Model model = readModel(Files.newInputStream(pomXml));
model.setPomFile(pomXml.toFile());
return model;
}

public static Model readModel(InputStream stream) throws IOException {
Expand Down

0 comments on commit 2bb3087

Please sign in to comment.