Files
Flash5/flash-extensions/flash-ext-routeviewer/pom.xml
T

78 lines
3.0 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>dev.relism</groupId>
<artifactId>flash-extensions</artifactId>
<version>2.1.0-SNAPSHOT</version>
</parent>
<artifactId>flash-ext-routeviewer</artifactId>
<dependencies>
<dependency>
<groupId>dev.relism</groupId>
<artifactId>flash</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<!--
Builds the React SPA before Java compilation.
Requires Node 22+ and pnpm 9+ to be available.
Output lands in src/main/resources/routeviewer/ → packaged into the JAR.
The frontend source (routeviewer-ui/) is NOT included in the JAR.
-->
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>1.15.0</version>
<configuration>
<workingDirectory>routeviewer-ui</workingDirectory>
<installDirectory>target/frontend-runtime</installDirectory>
</configuration>
<executions>
<execution>
<id>install-node-and-pnpm</id>
<goals><goal>install-node-and-pnpm</goal></goals>
<phase>initialize</phase>
<configuration>
<nodeVersion>v22.11.0</nodeVersion>
<pnpmVersion>9.12.0</pnpmVersion>
</configuration>
</execution>
<execution>
<id>pnpm-install</id>
<goals><goal>pnpm</goal></goals>
<phase>initialize</phase>
<configuration>
<arguments>install --frozen-lockfile</arguments>
</configuration>
</execution>
<execution>
<id>pnpm-build</id>
<goals><goal>pnpm</goal></goals>
<phase>generate-resources</phase>
<configuration>
<arguments>build</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>