329 lines
13 KiB
XML
329 lines
13 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-web-parent</artifactId>
|
|
<version>5.0.0</version>
|
|
<relativePath>../graylog2-server/graylog-plugin-parent/graylog-plugin-web-parent</relativePath>
|
|
</parent>
|
|
|
|
<groupId>in.nosd.redis</groupId>
|
|
<artifactId>graylog-plugin-redis-lookup</artifactId>
|
|
<version>1.0.0-SNAPSHOT</version>
|
|
<packaging>jar</packaging>
|
|
|
|
<name>${project.artifactId}</name>
|
|
<description>Graylog ${project.artifactId} plugin.</description>
|
|
<url>https://www.graylog.org</url>
|
|
|
|
<developers>
|
|
<developer>
|
|
<name>johan</name>
|
|
<email>johan@nosd.in</email>
|
|
</developer>
|
|
</developers>
|
|
|
|
<scm>
|
|
<connection>scm:git:git@github.com:https://git.nosd.in/yo/graylog-plugin-redis-lookup.git</connection>
|
|
<developerConnection>scm:git:git@github.com:https://git.nosd.in/yo/graylog-plugin-redis-lookup.git</developerConnection>
|
|
<url>https://github.com/https://git.nosd.in/yo/graylog-plugin-redis-lookup</url>
|
|
<tag>HEAD</tag>
|
|
</scm>
|
|
|
|
<properties>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<maven.compiler.source>17</maven.compiler.source>
|
|
<maven.compiler.target>17</maven.compiler.target>
|
|
|
|
<!-- Plugins will not be deployed by default - set to `false` if you actually want to deploy it -->
|
|
<maven.deploy.skip>true</maven.deploy.skip>
|
|
|
|
<graylog.version>${project.parent.version}</graylog.version>
|
|
<graylog.plugin-dir>/usr/share/graylog-server/plugin</graylog.plugin-dir>
|
|
</properties>
|
|
|
|
<!-- <distributionManagement>
|
|
<snapshotRepository>
|
|
<id>sonatype-nexus-snapshots</id>
|
|
<name>Sonatype Nexus Snapshots</name>
|
|
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
|
|
</snapshotRepository>
|
|
<repository>
|
|
<id>sonatype-nexus-staging</id>
|
|
<name>Nexus Release Repository</name>
|
|
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
|
|
</repository>
|
|
</distributionManagement>
|
|
|
|
<repositories>
|
|
--> <!-- to make our snapshot releases work with Travis et al -->
|
|
<!-- <repository>
|
|
<id>sonatype-nexus-snapshots</id>
|
|
<name>Sonatype Nexus Snapshots</name>
|
|
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
|
|
<releases>
|
|
<enabled>false</enabled>
|
|
</releases>
|
|
<snapshots>
|
|
<enabled>true</enabled>
|
|
</snapshots>
|
|
</repository>
|
|
<repository>
|
|
<id>sonatype-nexus-releases</id>
|
|
<name>Sonatype Nexus Releases</name>
|
|
<url>https://oss.sonatype.org/content/repositories/releases</url>
|
|
<releases>
|
|
<enabled>true</enabled>
|
|
</releases>
|
|
<snapshots>
|
|
<enabled>false</enabled>
|
|
</snapshots>
|
|
</repository>
|
|
</repositories>
|
|
-->
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.graylog2</groupId>
|
|
<artifactId>graylog2-server</artifactId>
|
|
<version>${graylog.version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<!-- Include source from test-jar to reuse test classes. -->
|
|
<dependency>
|
|
<groupId>org.graylog2</groupId>
|
|
<artifactId>graylog2-server</artifactId>
|
|
<version>${graylog.version}</version>
|
|
<type>test-jar</type>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.google.auto.value</groupId>
|
|
<artifactId>auto-value</artifactId>
|
|
<version>${auto-value.version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.graylog.autovalue</groupId>
|
|
<artifactId>auto-value-javabean</artifactId>
|
|
<version>${auto-value-javabean.version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.lettuce</groupId>
|
|
<artifactId>lettuce-core</artifactId>
|
|
<version>6.3.0.RELEASE</version>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<resources>
|
|
<resource><directory>${web.build-dir}</directory></resource>
|
|
<resource>
|
|
<directory>src/main/resources</directory>
|
|
<filtering>true</filtering>
|
|
</resource>
|
|
</resources>
|
|
<plugins>
|
|
<plugin>
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
<configuration>
|
|
<skipAssembly>true</skipAssembly>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>3.10.1</version>
|
|
<configuration>
|
|
<release>17</release>
|
|
<showWarnings>true</showWarnings>
|
|
<showDeprecation>true</showDeprecation>
|
|
<forceJavacCompilerUse>true</forceJavacCompilerUse>
|
|
<annotationProcessors>
|
|
<!-- <annotationProcessor>com.google.auto.service.processor.AutoServiceProcessor</annotationProcessor> -->
|
|
<annotationProcessor>com.google.auto.value.processor.AutoValueProcessor</annotationProcessor>
|
|
</annotationProcessors>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
<version>2.6</version>
|
|
<configuration>
|
|
<archive>
|
|
<manifestEntries>
|
|
<Graylog-Plugin-Properties-Path>${project.groupId}.${project.artifactId}</Graylog-Plugin-Properties-Path>
|
|
</manifestEntries>
|
|
</archive>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-shade-plugin</artifactId>
|
|
<version>2.4.1</version>
|
|
<configuration>
|
|
<minimizeJar>false</minimizeJar>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>shade</goal>
|
|
</goals>
|
|
<configuration>
|
|
<transformers>
|
|
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
|
|
</transformers>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-release-plugin</artifactId>
|
|
<version>2.5.2</version>
|
|
<configuration>
|
|
<autoVersionSubmodules>true</autoVersionSubmodules>
|
|
<mavenExecutorId>forked-path</mavenExecutorId>
|
|
<tagNameFormat>@{project.version}</tagNameFormat>
|
|
<preparationGoals>clean test</preparationGoals>
|
|
<goals>package</goals>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<artifactId>jdeb</artifactId>
|
|
<groupId>org.vafer</groupId>
|
|
<version>1.4</version>
|
|
<configuration>
|
|
<deb>${project.build.directory}/${project.artifactId}-${project.version}.deb</deb>
|
|
<dataSet>
|
|
<data>
|
|
<src>${project.build.directory}/${project.build.finalName}.jar</src>
|
|
<type>file</type>
|
|
<mapper>
|
|
<type>perm</type>
|
|
<prefix>${graylog.plugin-dir}</prefix>
|
|
<filemode>644</filemode>
|
|
<user>root</user>
|
|
<group>root</group>
|
|
</mapper>
|
|
</data>
|
|
</dataSet>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>rpm-maven-plugin</artifactId>
|
|
<version>2.1.4</version>
|
|
<configuration>
|
|
<group>Application/Internet</group>
|
|
<prefixes>
|
|
<prefix>/usr</prefix>
|
|
</prefixes>
|
|
<defineStatements>
|
|
<defineStatement>_unpackaged_files_terminate_build 0</defineStatement>
|
|
<defineStatement>_binaries_in_noarch_packages_terminate_build 0</defineStatement>
|
|
</defineStatements>
|
|
<defaultFilemode>644</defaultFilemode>
|
|
<defaultDirmode>755</defaultDirmode>
|
|
<defaultUsername>root</defaultUsername>
|
|
<defaultGroupname>root</defaultGroupname>
|
|
<mappings>
|
|
<mapping>
|
|
<directory>${graylog.plugin-dir}</directory>
|
|
<sources>
|
|
<source>
|
|
<location>${project.build.directory}/</location>
|
|
<includes>
|
|
<include>${project.build.finalName}.jar</include>
|
|
</includes>
|
|
</source>
|
|
</sources>
|
|
</mapping>
|
|
</mappings>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
<profiles>
|
|
<profile>
|
|
<id>web-interface-build</id>
|
|
<activation>
|
|
<property>
|
|
<name>!skip.web.build</name>
|
|
</property>
|
|
</activation>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>com.github.eirslett</groupId>
|
|
<artifactId>frontend-maven-plugin</artifactId>
|
|
|
|
<executions>
|
|
<execution>
|
|
<id>install node and yarn</id>
|
|
<goals>
|
|
<goal>install-node-and-yarn</goal>
|
|
</goals>
|
|
<configuration>
|
|
<nodeVersion>${nodejs.version}</nodeVersion>
|
|
<yarnVersion>${yarn.version}</yarnVersion>
|
|
</configuration>
|
|
</execution>
|
|
|
|
<execution>
|
|
<id>yarn install</id>
|
|
<goals>
|
|
<goal>yarn</goal>
|
|
</goals>
|
|
<!-- Optional configuration which provides for running any npm command -->
|
|
<configuration>
|
|
<arguments>install</arguments>
|
|
</configuration>
|
|
</execution>
|
|
|
|
<execution>
|
|
<id>yarn run build</id>
|
|
<goals>
|
|
<goal>yarn</goal>
|
|
</goals>
|
|
<configuration>
|
|
<arguments>run build</arguments>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
</project>
|