<?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/maven-v4_0_0.xsd">

  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>de.gedoplan.edumat-support</groupId>
    <artifactId>parent</artifactId>
    <version>2026.6.2</version>
    <relativePath>../parent</relativePath>
  </parent>

  <artifactId>cdi-labs-ui</artifactId>
  <packaging>war</packaging>


  <name>${project.groupId}:${project.artifactId}</name>
  <description>GEDOPLAN support for training projects</description>
  <url>https://wiki.gedoplan.de/bin/view/Training/</url>

  <developers>
    <developer>
      <name>Dirk Weil</name>
      <email>dirk.weil@gedoplan.de</email>
      <organization>GEDOPLAN GmbH</organization>
      <organizationUrl>https://www.gedoplan.de</organizationUrl>
    </developer>
  </developers>

  <licenses>
    <license>
      <name>The Apache License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
    </license>
  </licenses>

  <build>
    <plugins>
      <plugin>
        <groupId>com.github.eirslett</groupId>
        <artifactId>frontend-maven-plugin</artifactId>
        <version>1.15.0</version>

        <configuration>
          <nodeVersion>v20.14.0</nodeVersion>
        </configuration>

        <executions>
          <execution>
            <id>Install Node.js and npm</id>
            <goals>
              <goal>install-node-and-npm</goal>
            </goals>
          </execution>

          <execution>
            <id>npm install</id>
            <goals>
              <goal>npm</goal>
            </goals>
            <configuration>
              <workingDirectory>${your.npm.script.directory}</workingDirectory>
              <arguments>install</arguments>
            </configuration>
          </execution>

          <execution>
            <id>npm build</id>
            <goals>
              <goal>npm</goal>
            </goals>
            <configuration>
              <workingDirectory>${your.npm.script.directory}</workingDirectory>
              <arguments>run build</arguments>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
</project>
