Fixed root POM generation

This commit is contained in:
Erik C. Thauvin 2024-07-15 21:01:00 -07:00
parent 8d9acd8184
commit ebf05fa398
Signed by: erik
GPG key ID: 776702A6A2DA330E
2 changed files with 6 additions and 6 deletions

View file

@ -210,7 +210,7 @@ public class MobibotBuild extends Project {
@BuildCommand(value = "pom-root", summary = "Generates the POM file in the root directory")
public void pomRoot() throws FileUtilsErrorException {
PomBuilder.generateInto(publishOperation().info(), dependencies(),
Path.of(workDirectory.getPath(), "pom.xml").toFile());
PomBuilder.generateInto(publishOperation().fromProject(this).info(), dependencies(),
new File(workDirectory, "pom.xml"));
}
}