Skip to content
Snippets Groups Projects
pom.xml 4.09 KiB
Newer Older
  • Learn to ignore specific revisions
  • OZGCloud's avatar
    OZGCloud committed
    <?xml version="1.0" encoding="UTF-8"?>
    
        Copyright (C) 2023 Das Land Schleswig-Holstein vertreten durch den
    
        Ministerpräsidenten des Landes Schleswig-Holstein
        Staatskanzlei
        Abteilung Digitalisierung und zentrales IT-Management der Landesregierung
    
        Lizenziert unter der EUPL, Version 1.2 oder - sobald
        diese von der Europäischen Kommission genehmigt wurden -
        Folgeversionen der EUPL ("Lizenz");
        Sie dürfen dieses Werk ausschließlich gemäß
        dieser Lizenz nutzen.
        Eine Kopie der Lizenz finden Sie hier:
    
        https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
    
        Sofern nicht durch anwendbare Rechtsvorschriften
        gefordert oder in schriftlicher Form vereinbart, wird
        die unter der Lizenz verbreitete Software "so wie sie
        ist", OHNE JEGLICHE GEWÄHRLEISTUNG ODER BEDINGUNGEN -
        ausdrücklich oder stillschweigend - verbreitet.
        Die sprachspezifischen Genehmigungen und Beschränkungen
        unter der Lizenz sind dem Lizenztext zu entnehmen.
    
    -->
    
    OZGCloud's avatar
    OZGCloud committed
    <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">
    
    OZGCloud's avatar
    OZGCloud committed
    
    
      <parent>
        <groupId>de.ozgcloud.alfa</groupId>
        <artifactId>alfa</artifactId>
    
    OZGCloud's avatar
    OZGCloud committed
        <version>2.17.1</version>
    
    OZGCloud's avatar
    OZGCloud committed
    
    
      <modelVersion>4.0.0</modelVersion>
      <artifactId>alfa-client</artifactId>
      <name>Alfa Client</name>
      <packaging>pom</packaging>
      <inceptionYear>2020</inceptionYear>
    
    OZGCloud's avatar
    OZGCloud committed
    
    
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-clean-plugin</artifactId>
            <configuration>
              <filesets>
                <fileset>
                  <directory>dist</directory>
                  <includes>
                    <include>*</include>
                    <include>**/*</include>
                  </includes>
                </fileset>
              </filesets>
            </configuration>
          </plugin>
    
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>exec-maven-plugin</artifactId>
            <version>3.0.0</version>
            <executions>
              <execution>
                <id>test-application</id>
                <phase>test</phase>
                <configuration>
                  <workingDirectory>./</workingDirectory>
                  <executable>npm</executable>
                  <arguments>
                    <argument>run</argument>
                    <argument>test</argument>
                  </arguments>
                  <skip>${skipTests}</skip>
                </configuration>
                <goals>
                  <goal>exec</goal>
                </goals>
              </execution>
              <execution>
                <id>build-application</id>
                <phase>compile</phase>
                <configuration>
                  <workingDirectory>./</workingDirectory>
                  <executable>npm</executable>
                  <arguments>
                    <argument>run</argument>
                    <argument>ci-build</argument>
                  </arguments>
                </configuration>
                <goals>
                  <goal>exec</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    
      <profiles>
        <profile>
          <activation>
            <property>
              <name>!skipNpmInstall</name>
            </property>
          </activation>
          <id>npmInstall</id>
          <build>
    
    OZGCloud's avatar
    OZGCloud committed
            <plugins>
    
              <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>exec-maven-plugin</artifactId>
                <version>3.0.0</version>
                <executions>
                  <execution>
                    <id>install-dependencies</id>
                    <phase>generate-sources</phase>
    
    OZGCloud's avatar
    OZGCloud committed
                    <configuration>
    
                      <workingDirectory>./</workingDirectory>
                      <executable>npm</executable>
                      <arguments>
                        <argument>install</argument>
                      </arguments>
    
    OZGCloud's avatar
    OZGCloud committed
                    </configuration>
    
                    <goals>
                      <goal>exec</goal>
                    </goals>
                  </execution>
                </executions>
              </plugin>
            </plugins>
          </build>
        </profile>
      </profiles>
    
    OZGCloud's avatar
    OZGCloud committed
    
    </project>