mirror of
https://github.com/Graylog2/graylog2-server.git
synced 2026-03-13 09:32:21 +08:00
146 lines
6.2 KiB
XML
146 lines
6.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
|
|
Copyright (C) 2020 Graylog, Inc.
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
it under the terms of the Server Side Public License, version 1,
|
|
as published by MongoDB, Inc.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Server Side Public License for more details.
|
|
|
|
You should have received a copy of the Server Side Public License
|
|
along with this program. If not, see
|
|
<http://www.mongodb.com/licensing/server-side-public-license>.
|
|
|
|
-->
|
|
<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>org.graylog.plugins</groupId>
|
|
<artifactId>graylog-plugin-parent</artifactId>
|
|
<version>7.1.0-SNAPSHOT</version>
|
|
</parent>
|
|
|
|
<artifactId>graylog-plugin-web-parent</artifactId>
|
|
<packaging>pom</packaging>
|
|
|
|
<name>Graylog Plugin with Web support Parent POM</name>
|
|
|
|
<properties>
|
|
<skip.web.tests>false</skip.web.tests>
|
|
</properties>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>skip-web-interface-tests</id>
|
|
<activation>
|
|
<property>
|
|
<name>skipTests</name>
|
|
</property>
|
|
</activation>
|
|
<properties>
|
|
<skip.web.tests>true</skip.web.tests>
|
|
</properties>
|
|
</profile>
|
|
<profile>
|
|
<id>web-interface-build</id>
|
|
<activation>
|
|
<property>
|
|
<name>!skip.web.build</name>
|
|
</property>
|
|
</activation>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-clean-plugin</artifactId>
|
|
<configuration>
|
|
<filesets>
|
|
<fileset>
|
|
<directory>${basedir}</directory>
|
|
<includes>
|
|
<include>node_modules/**/*</include>
|
|
</includes>
|
|
<followSymlinks>false</followSymlinks>
|
|
</fileset>
|
|
</filesets>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>com.github.eirslett</groupId>
|
|
<artifactId>frontend-maven-plugin</artifactId>
|
|
<configuration>
|
|
<nodeVersion>${nodejs.version}</nodeVersion>
|
|
<yarnVersion>${yarn.version}</yarnVersion>
|
|
<nodeDownloadRoot>https://graylog-ci-cache.s3.eu-west-1.amazonaws.com/downloads/node/</nodeDownloadRoot>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>install node and yarn</id>
|
|
<goals>
|
|
<goal>install-node-and-yarn</goal>
|
|
</goals>
|
|
</execution>
|
|
|
|
<execution>
|
|
<id>yarn install</id>
|
|
<phase>compile</phase>
|
|
<goals>
|
|
<goal>yarn</goal>
|
|
</goals>
|
|
<!-- Optional configuration which provides for running any npm command -->
|
|
<configuration>
|
|
<arguments>install</arguments>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>Generate backend API types</id>
|
|
<phase>compile</phase>
|
|
<goals>
|
|
<goal>yarn</goal>
|
|
</goals>
|
|
<configuration>
|
|
<arguments>generate:apidefs</arguments>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>yarn run build</id>
|
|
<phase>compile</phase>
|
|
<goals>
|
|
<goal>yarn</goal>
|
|
</goals>
|
|
<configuration>
|
|
<arguments>run build</arguments>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>copy-web-ui-resources</id>
|
|
<phase>process-classes</phase>
|
|
<goals>
|
|
<goal>copy-resources</goal>
|
|
</goals>
|
|
<configuration>
|
|
<outputDirectory>${project.build.outputDirectory}</outputDirectory>
|
|
<resources>
|
|
<resource><directory>${web.build-dir}</directory></resource>
|
|
</resources>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
</project>
|