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

@ -2,10 +2,10 @@
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId></groupId> <groupId>net.thauvin.erik.mobibot</groupId>
<artifactId></artifactId> <artifactId>mobibot</artifactId>
<version></version> <version>0.8.0-rc+20240715201342</version>
<name></name> <name>mobibot</name>
<description></description> <description></description>
<url></url> <url></url>
<dependencies> <dependencies>

View file

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