openhab-addons/bom/pom.xml
Kai Kreuzer 440f603e88
Apply spotless and resolver (#13027)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2022-06-27 16:00:37 +02:00

92 lines
3.4 KiB
XML

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.openhab.addons</groupId>
<artifactId>org.openhab.addons.reactor</artifactId>
<version>3.4.0-SNAPSHOT</version>
</parent>
<groupId>org.openhab.addons.bom</groupId>
<artifactId>org.openhab.addons.reactor.bom</artifactId>
<packaging>pom</packaging>
<name>openHAB Add-ons :: BOM</name>
<modules>
<module>runtime-index</module>
<module>test-index</module>
<module>openhab-core-index</module>
<module>openhab-addons</module>
</modules>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<inherited>false</inherited>
<executions>
<execution>
<id>create-bom</id>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<copy file="${basedirRoot}/../../bundles/pom.xml" overwrite="true"
tofile="${basedirRoot}/../../bom/openhab-addons/pom.xml"/>
<!-- rewrite footer -->
<replaceregexp file="${basedirRoot}/../../bom/openhab-addons/pom.xml"
match="/modules[\s\S]*dependencies&gt;" replace="/dependencies&gt;"/>
<!-- rewrite header -->
<replaceregexp file="${basedirRoot}/../../bom/openhab-addons/pom.xml"
match="\S*parent[\s\S]*modules&gt;\S*" replace="header"/>
<replace file="{basedirRoot}/../../bom/openhab-addons/pom.xml">
<replacetoken>header</replacetoken>
<replacevalue><![CDATA[<parent>
<groupId>org.openhab.addons.bom</groupId>
<artifactId>org.openhab.addons.reactor.bom</artifactId>
<version>${project.version}</version>
</parent>
<artifactId>org.openhab.addons.bom.openhab-addons</artifactId>
<packaging>pom</packaging>
<name>openHAB Add-ons :: BOM :: openHAB Add-ons</name>
<dependencies>]]></replacevalue>
</replace>
<!-- rewrite content -->
<replace file="{basedirRoot}/../../bom/openhab-addons/pom.xml">
<replacetoken><![CDATA[<module>]]></replacetoken>
<replacevalue><![CDATA[<dependency>
<groupId>org.openhab.addons.bundles</groupId>
<artifactId>]]></replacevalue>
</replace>
<replace file="{basedirRoot}/../../bom/openhab-addons/pom.xml">
<replacetoken><![CDATA[</module>]]></replacetoken>
<replacevalue><![CDATA[</artifactId>
<version>@dollar{project.version}</version>
</dependency>]]></replacevalue>
</replace>
<replace file="{basedirRoot}/../../bom/openhab-addons/pom.xml">
<replacetoken>@dollar</replacetoken>
<replacevalue>$</replacevalue>
</replace>
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>