1. upgrade log4j to 2.12.1
2. Add 2 new FE config:
'sys_log_delete_age' and default is '7d', for sys log.
'audit_log_delete_age' and default is '30d', for audit log.
it means if a log's last modification time is 7/30 days ago, it will be deleted.
834 lines
33 KiB
XML
834 lines
33 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!--
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
or more contributor license agreements. See the NOTICE file
|
|
distributed with this work for additional information
|
|
regarding copyright ownership. The ASF licenses this file
|
|
to you under the Apache License, Version 2.0 (the
|
|
"License"); you may not use this file except in compliance
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
software distributed under the License is distributed on an
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, either express or implied. See the License for the
|
|
specific language governing permissions and limitations
|
|
under the 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>
|
|
|
|
<groupId>org.apache</groupId>
|
|
<artifactId>doris-fe</artifactId>
|
|
<version>3.4.0</version>
|
|
<packaging>jar</packaging>
|
|
|
|
<name>doris-fe</name>
|
|
<url>https://github.com/apache/incubator-doris</url>
|
|
|
|
<properties>
|
|
<palo.home>${basedir}/../</palo.home>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<maven.compiler.source>1.8</maven.compiler.source>
|
|
<maven.compiler.target>1.8</maven.compiler.target>
|
|
<jprotobuf.version>2.2.11</jprotobuf.version>
|
|
</properties>
|
|
|
|
<profiles>
|
|
<!-- for custom internal repository -->
|
|
<profile>
|
|
<id>custom-env</id>
|
|
<activation>
|
|
<property>
|
|
<name>env.CUSTOM_MAVEN_REPO</name>
|
|
</property>
|
|
</activation>
|
|
|
|
<repositories>
|
|
<repository>
|
|
<id>custom-nexus</id>
|
|
<url>${env.CUSTOM_MAVEN_REPO}</url>
|
|
</repository>
|
|
</repositories>
|
|
|
|
<pluginRepositories>
|
|
<pluginRepository>
|
|
<id>custom-nexus</id>
|
|
<url>${env.CUSTOM_MAVEN_REPO}</url>
|
|
</pluginRepository>
|
|
</pluginRepositories>
|
|
</profile>
|
|
|
|
<!-- for general repository -->
|
|
<profile>
|
|
<id>general-env</id>
|
|
<activation>
|
|
<property>
|
|
<name>!env.CUSTOM_MAVEN_REPO</name>
|
|
</property>
|
|
</activation>
|
|
|
|
<repositories>
|
|
<!-- for java-cup -->
|
|
<repository>
|
|
<id>cloudera-thirdparty</id>
|
|
<url>https://repository.cloudera.com/content/repositories/third-party/</url>
|
|
</repository>
|
|
<!-- for bdb je -->
|
|
<repository>
|
|
<id>oracleReleases</id>
|
|
<url>http://download.oracle.com/maven</url>
|
|
</repository>
|
|
</repositories>
|
|
|
|
<pluginRepositories>
|
|
<!-- for cup-maven-plugin -->
|
|
<pluginRepository>
|
|
<id>spring-plugins</id>
|
|
<url>http://repo.spring.io/plugins-release/</url>
|
|
</pluginRepository>
|
|
</pluginRepositories>
|
|
</profile>
|
|
</profiles>
|
|
|
|
<dependencies>
|
|
<!-- https://mvnrepository.com/artifact/cglib/cglib -->
|
|
<dependency>
|
|
<groupId>cglib</groupId>
|
|
<artifactId>cglib</artifactId>
|
|
<version>2.2</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/commons-cli/commons-cli -->
|
|
<dependency>
|
|
<groupId>commons-cli</groupId>
|
|
<artifactId>commons-cli</artifactId>
|
|
<version>1.4</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/commons-codec/commons-codec -->
|
|
<dependency>
|
|
<groupId>commons-codec</groupId>
|
|
<artifactId>commons-codec</artifactId>
|
|
<version>1.9</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/commons-lang/commons-lang -->
|
|
<dependency>
|
|
<groupId>commons-lang</groupId>
|
|
<artifactId>commons-lang</artifactId>
|
|
<version>2.4</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/org.apache.commons/commons-pool2 -->
|
|
<dependency>
|
|
<groupId>org.apache.commons</groupId>
|
|
<artifactId>commons-pool2</artifactId>
|
|
<version>2.2</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/commons-validator/commons-validator -->
|
|
<dependency>
|
|
<groupId>commons-validator</groupId>
|
|
<artifactId>commons-validator</artifactId>
|
|
<version>1.4.1</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/org.easymock/easymock -->
|
|
<dependency>
|
|
<groupId>org.easymock</groupId>
|
|
<artifactId>easymock</artifactId>
|
|
<version>3.2</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/com.google.code.gson/gson -->
|
|
<dependency>
|
|
<groupId>com.google.code.gson</groupId>
|
|
<artifactId>gson</artifactId>
|
|
<version>2.2.4</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/com.google.guava/guava -->
|
|
<dependency>
|
|
<groupId>com.google.guava</groupId>
|
|
<artifactId>guava</artifactId>
|
|
<version>15.0</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-core -->
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
<artifactId>jackson-core</artifactId>
|
|
<version>2.9.7</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/org.codehaus.jackson/jackson-mapper-asl -->
|
|
<dependency>
|
|
<groupId>org.codehaus.jackson</groupId>
|
|
<artifactId>jackson-mapper-asl</artifactId>
|
|
<version>1.9.13</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/net.sourceforge.czt.dev/java-cup -->
|
|
<dependency>
|
|
<groupId>net.sourceforge.czt.dev</groupId>
|
|
<artifactId>java-cup</artifactId>
|
|
<version>0.11-a-czt02-cdh</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/org.javassist/javassist -->
|
|
<dependency>
|
|
<groupId>org.javassist</groupId>
|
|
<artifactId>javassist</artifactId>
|
|
<version>3.18.2-GA</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/javax.servlet/javax.servlet-api -->
|
|
<dependency>
|
|
<groupId>javax.servlet</groupId>
|
|
<artifactId>javax.servlet-api</artifactId>
|
|
<version>3.0.1</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.sleepycat</groupId>
|
|
<artifactId>je</artifactId>
|
|
<version>7.3.7</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/org.mortbay.jetty/jetty -->
|
|
<dependency>
|
|
<groupId>org.mortbay.jetty</groupId>
|
|
<artifactId>jetty</artifactId>
|
|
<version>6.1.14</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/org.mortbay.jetty/jetty-util -->
|
|
<dependency>
|
|
<groupId>org.mortbay.jetty</groupId>
|
|
<artifactId>jetty-util</artifactId>
|
|
<version>6.1.14</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/de.jflex/jflex -->
|
|
<dependency>
|
|
<groupId>de.jflex</groupId>
|
|
<artifactId>jflex</artifactId>
|
|
<version>1.4.3</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/org.jmockit/jmockit -->
|
|
<dependency>
|
|
<groupId>org.jmockit</groupId>
|
|
<artifactId>jmockit</artifactId>
|
|
<version>1.13</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/joda-time/joda-time -->
|
|
<dependency>
|
|
<groupId>joda-time</groupId>
|
|
<artifactId>joda-time</artifactId>
|
|
<version>2.10.1</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/com.baidu/jprotobuf -->
|
|
<dependency>
|
|
<groupId>com.baidu</groupId>
|
|
<artifactId>jprotobuf</artifactId>
|
|
<version>${jprotobuf.version}</version>
|
|
<classifier>jar-with-dependencies</classifier>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/com.baidu/jprotobuf-rpc-common -->
|
|
<dependency>
|
|
<groupId>com.baidu</groupId>
|
|
<artifactId>jprotobuf-rpc-common</artifactId>
|
|
<version>1.8</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/com.baidu/jprotobuf-rpc-core -->
|
|
<dependency>
|
|
<groupId>com.baidu</groupId>
|
|
<artifactId>jprotobuf-rpc-core</artifactId>
|
|
<version>3.5.21</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/org.json/json -->
|
|
<dependency>
|
|
<groupId>org.json</groupId>
|
|
<artifactId>json</artifactId>
|
|
<version>20171018</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/junit/junit -->
|
|
<dependency>
|
|
<groupId>junit</groupId>
|
|
<artifactId>junit</artifactId>
|
|
<version>4.12</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/org.apache.thrift/libfb303 -->
|
|
<dependency>
|
|
<groupId>org.apache.thrift</groupId>
|
|
<artifactId>libfb303</artifactId>
|
|
<version>0.9.3</version>
|
|
<type>pom</type>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/org.apache.thrift/libthrift -->
|
|
<dependency>
|
|
<groupId>org.apache.thrift</groupId>
|
|
<artifactId>libthrift</artifactId>
|
|
<version>0.9.3</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-api -->
|
|
<dependency>
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
<artifactId>log4j-api</artifactId>
|
|
<version>2.12.1</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-core -->
|
|
<dependency>
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
<artifactId>log4j-core</artifactId>
|
|
<version>2.12.1</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-slf4j-impl -->
|
|
<dependency>
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
<artifactId>log4j-slf4j-impl</artifactId>
|
|
<version>2.12.1</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/io.dropwizard.metrics/metrics-core -->
|
|
<dependency>
|
|
<groupId>io.dropwizard.metrics</groupId>
|
|
<artifactId>metrics-core</artifactId>
|
|
<version>4.0.2</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->
|
|
<dependency>
|
|
<groupId>mysql</groupId>
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
<version>5.1.41</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/io.netty/netty-all -->
|
|
<dependency>
|
|
<groupId>io.netty</groupId>
|
|
<artifactId>netty-all</artifactId>
|
|
<version>4.1.42.Final</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/org.objenesis/objenesis -->
|
|
<dependency>
|
|
<groupId>org.objenesis</groupId>
|
|
<artifactId>objenesis</artifactId>
|
|
<version>2.1</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/org.powermock/powermock-api-easymock -->
|
|
<dependency>
|
|
<groupId>org.powermock</groupId>
|
|
<artifactId>powermock-api-easymock</artifactId>
|
|
<version>1.6.1</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/org.powermock/powermock-module-junit4 -->
|
|
<dependency>
|
|
<groupId>org.powermock</groupId>
|
|
<artifactId>powermock-module-junit4</artifactId>
|
|
<version>1.6.1</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/com.google.protobuf/protobuf-java -->
|
|
<dependency>
|
|
<groupId>com.google.protobuf</groupId>
|
|
<artifactId>protobuf-java</artifactId>
|
|
<version>3.5.1</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/com.squareup/protoparser -->
|
|
<dependency>
|
|
<groupId>com.squareup</groupId>
|
|
<artifactId>protoparser</artifactId>
|
|
<version>3.1.5</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/org.xerial.snappy/snappy-java -->
|
|
<dependency>
|
|
<groupId>org.xerial.snappy</groupId>
|
|
<artifactId>snappy-java</artifactId>
|
|
<version>1.1.7.2</version>
|
|
</dependency>
|
|
|
|
<!-- for k8s client-->
|
|
<!-- https://mvnrepository.com/artifact/dk.brics.automaton/automaton -->
|
|
<dependency>
|
|
<groupId>dk.brics.automaton</groupId>
|
|
<artifactId>automaton</artifactId>
|
|
<version>1.11-8</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/com.github.mifmif/generex -->
|
|
<dependency>
|
|
<groupId>com.github.mifmif</groupId>
|
|
<artifactId>generex</artifactId>
|
|
<version>1.0.1</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-annotations -->
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
<artifactId>jackson-annotations</artifactId>
|
|
<version>2.9.7</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind -->
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
<artifactId>jackson-databind</artifactId>
|
|
<version>2.9.7</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.dataformat/jackson-dataformat-yaml -->
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.dataformat</groupId>
|
|
<artifactId>jackson-dataformat-yaml</artifactId>
|
|
<version>2.9.7</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.module/jackson-module-jaxb-annotations -->
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.module</groupId>
|
|
<artifactId>jackson-module-jaxb-annotations</artifactId>
|
|
<version>2.9.7</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/io.fabric8/kubernetes-client -->
|
|
<dependency>
|
|
<groupId>io.fabric8</groupId>
|
|
<artifactId>kubernetes-client</artifactId>
|
|
<version>1.4.27</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/io.fabric8/kubernetes-model -->
|
|
<dependency>
|
|
<groupId>io.fabric8</groupId>
|
|
<artifactId>kubernetes-model</artifactId>
|
|
<version>1.0.64</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/com.squareup.okhttp3/logging-interceptor -->
|
|
<dependency>
|
|
<groupId>com.squareup.okhttp3</groupId>
|
|
<artifactId>logging-interceptor</artifactId>
|
|
<version>3.4.1</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp -->
|
|
<dependency>
|
|
<groupId>com.squareup.okhttp3</groupId>
|
|
<artifactId>okhttp</artifactId>
|
|
<version>3.4.1</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp-ws -->
|
|
<dependency>
|
|
<groupId>com.squareup.okhttp3</groupId>
|
|
<artifactId>okhttp-ws</artifactId>
|
|
<version>3.4.1</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/com.squareup.okio/okio -->
|
|
<dependency>
|
|
<groupId>com.squareup.okio</groupId>
|
|
<artifactId>okio</artifactId>
|
|
<version>1.9.0</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/org.yaml/snakeyaml -->
|
|
<dependency>
|
|
<groupId>org.yaml</groupId>
|
|
<artifactId>snakeyaml</artifactId>
|
|
<version>1.15</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/javax.validation/validation-api -->
|
|
<dependency>
|
|
<groupId>javax.validation</groupId>
|
|
<artifactId>validation-api</artifactId>
|
|
<version>1.1.0.Final</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/io.fabric8/zjsonpatch -->
|
|
<dependency>
|
|
<groupId>io.fabric8</groupId>
|
|
<artifactId>zjsonpatch</artifactId>
|
|
<version>0.2.3</version>
|
|
</dependency>
|
|
|
|
<!-- for kudu client-->
|
|
<!-- https://mvnrepository.com/artifact/com.stumbleupon/async -->
|
|
<dependency>
|
|
<groupId>com.stumbleupon</groupId>
|
|
<artifactId>async</artifactId>
|
|
<version>1.1.0</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/org.apache.kudu/interface-annotations -->
|
|
<dependency>
|
|
<groupId>org.apache.kudu</groupId>
|
|
<artifactId>interface-annotations</artifactId>
|
|
<version>1.2.0</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/org.apache.kudu/kudu-client -->
|
|
<dependency>
|
|
<groupId>org.apache.kudu</groupId>
|
|
<artifactId>kudu-client</artifactId>
|
|
<version>1.2.0</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/log4j/log4j -->
|
|
<dependency>
|
|
<groupId>log4j</groupId>
|
|
<artifactId>log4j</artifactId>
|
|
<version>1.2.17</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-api -->
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-api</artifactId>
|
|
<version>1.7.5</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.kafka</groupId>
|
|
<artifactId>kafka-clients</artifactId>
|
|
<version>0.10.1.1</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/com.github.oshi/oshi-core -->
|
|
<dependency>
|
|
<groupId>com.github.oshi</groupId>
|
|
<artifactId>oshi-core</artifactId>
|
|
<version>4.0.0</version>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<finalName>palo-fe</finalName>
|
|
|
|
<plugins>
|
|
<!--jcup-->
|
|
<plugin>
|
|
<groupId>net.sourceforge.czt.dev</groupId>
|
|
<artifactId>cup-maven-plugin</artifactId>
|
|
<version>1.6-cdh</version>
|
|
<executions>
|
|
<execution>
|
|
<id>cup</id>
|
|
<phase>generate-sources</phase>
|
|
<goals>
|
|
<goal>generate</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<!--<cupDefinition>${palo.home}/gensrc/parser/sql_parser.cup</cupDefinition>-->
|
|
<className>SqlParser</className>
|
|
<symbolsName>SqlParserSymbols</symbolsName>
|
|
<expectedConflicts>20</expectedConflicts>
|
|
<!--<outputDirectory>src/main/java</outputDirectory>-->
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<!--jflex-->
|
|
<plugin>
|
|
<groupId>de.jflex</groupId>
|
|
<artifactId>maven-jflex-plugin</artifactId>
|
|
<version>1.4.3</version>
|
|
<executions>
|
|
<execution>
|
|
<id>jflex</id>
|
|
<phase>generate-sources</phase>
|
|
<goals>
|
|
<goal>generate</goal>
|
|
</goals>
|
|
<configuration>
|
|
<!-- lexDefinitions -->
|
|
<!--<lexDefinition>${palo.home}/gensrc/parser/sql_scanner.flex</lexDefinition>-->
|
|
<!-- /lexDefinitions -->
|
|
<!--<outputDirectory>src/main/java</outputDirectory>-->
|
|
<backup>false</backup>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<!-- run make to generate Version and builtin -->
|
|
<!-- also parse the proto for FE -->
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
<version>1.6.0</version>
|
|
<executions>
|
|
<execution>
|
|
<id>gensrc</id>
|
|
<phase>generate-sources</phase>
|
|
<goals>
|
|
<goal>exec</goal>
|
|
</goals>
|
|
<configuration>
|
|
<executable>make</executable>
|
|
<arguments>
|
|
<argument>-C</argument>
|
|
<argument>${palo.home}/gensrc/</argument>
|
|
</arguments>
|
|
<skip>${skip.plugin}</skip>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>gen_proto</id>
|
|
<phase>generate-sources</phase>
|
|
<goals>
|
|
<!-- DO NOT use goal 'java', it will terminate the VM after done -->
|
|
<goal>exec</goal>
|
|
</goals>
|
|
<configuration>
|
|
<executable>${env.JAVA_HOME}/bin/java</executable>
|
|
<arguments>
|
|
<argument>-jar</argument>
|
|
<argument>${settings.localRepository}/com/baidu/jprotobuf/${jprotobuf.version}/jprotobuf-${jprotobuf.version}-jar-with-dependencies.jar</argument>
|
|
<argument>--java_out=${palo.home}/gensrc/build/java/</argument>
|
|
<argument>${palo.home}/gensrc/proto/internal_service.proto</argument>
|
|
</arguments>
|
|
<skip>${skip.plugin}</skip>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<!-- add gensrc java build src dir -->
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>build-helper-maven-plugin</artifactId>
|
|
<version>1.7</version>
|
|
<executions>
|
|
<execution>
|
|
<id>add-source</id>
|
|
<phase>generate-sources</phase>
|
|
<goals>
|
|
<goal>add-source</goal>
|
|
</goals>
|
|
<configuration>
|
|
<sources>
|
|
<!-- add arbitrary num of src dirs here -->
|
|
<source>${palo.home}/gensrc/build/java/</source>
|
|
</sources>
|
|
<skip>${skip.plugin}</skip>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<!-- copy all dependency libs to target lib dir -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
<version>3.1.1</version>
|
|
<executions>
|
|
<execution>
|
|
<id>copy-dependencies</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>copy-dependencies</goal>
|
|
</goals>
|
|
<configuration>
|
|
<outputDirectory>${project.build.directory}/lib</outputDirectory>
|
|
<overWriteReleases>false</overWriteReleases>
|
|
<overWriteSnapshots>false</overWriteSnapshots>
|
|
<overWriteIfNewer>true</overWriteIfNewer>
|
|
<skip>${skip.plugin}</skip>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>cobertura-maven-plugin</artifactId>
|
|
<version>2.7</version>
|
|
<configuration>
|
|
<cobertura.maxmem>1024m</cobertura.maxmem>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-checkstyle-plugin</artifactId>
|
|
<version>3.1.0</version>
|
|
<configuration>
|
|
<configLocation>checkstyle.xml</configLocation>
|
|
<encoding>UTF-8</encoding>
|
|
<consoleOutput>true</consoleOutput>
|
|
<failsOnError>true</failsOnError>
|
|
<linkXRef>false</linkXRef>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>validate</id>
|
|
<phase>validate</phase>
|
|
<goals>
|
|
<goal>check</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
|
|
<pluginManagement>
|
|
<plugins>
|
|
<!--set for ecplise lifecycle -->
|
|
<plugin>
|
|
<groupId>org.eclipse.m2e</groupId>
|
|
<artifactId>lifecycle-mapping</artifactId>
|
|
<version>1.0.0</version>
|
|
<configuration>
|
|
<lifecycleMappingMetadata>
|
|
<pluginExecutions>
|
|
<pluginExecution>
|
|
<pluginExecutionFilter>
|
|
<groupId>net.sourceforge.czt.dev</groupId>
|
|
<artifactId>cup-maven-plugin</artifactId>
|
|
<versionRange>[1.6,)</versionRange>
|
|
<goals>
|
|
<goal>generate</goal>
|
|
</goals>
|
|
</pluginExecutionFilter>
|
|
<action>
|
|
<ignore></ignore>
|
|
</action>
|
|
</pluginExecution>
|
|
<pluginExecution>
|
|
<pluginExecutionFilter>
|
|
<groupId>de.jflex</groupId>
|
|
<artifactId>maven-jflex-plugin</artifactId>
|
|
<versionRange>[1.4.3,)</versionRange>
|
|
<goals>
|
|
<goal>generate</goal>
|
|
</goals>
|
|
</pluginExecutionFilter>
|
|
<action>
|
|
<ignore></ignore>
|
|
</action>
|
|
</pluginExecution>
|
|
<pluginExecution>
|
|
<pluginExecutionFilter>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
<versionRange>[1.6,)</versionRange>
|
|
<goals>
|
|
<goal>exec</goal>
|
|
</goals>
|
|
</pluginExecutionFilter>
|
|
<action>
|
|
<ignore></ignore>
|
|
</action>
|
|
</pluginExecution>
|
|
<pluginExecution>
|
|
<pluginExecutionFilter>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>build-helper-maven-plugin</artifactId>
|
|
<versionRange>[1.7,)</versionRange>
|
|
<goals>
|
|
<goal>add-source</goal>
|
|
</goals>
|
|
</pluginExecutionFilter>
|
|
<action>
|
|
<ignore></ignore>
|
|
</action>
|
|
</pluginExecution>
|
|
<pluginExecution>
|
|
<pluginExecutionFilter>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
<versionRange>[3.1.1,)</versionRange>
|
|
<goals>
|
|
<goal>copy-dependencies</goal>
|
|
</goals>
|
|
</pluginExecutionFilter>
|
|
<action>
|
|
<ignore></ignore>
|
|
</action>
|
|
</pluginExecution>
|
|
<pluginExecution>
|
|
<pluginExecutionFilter>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<versionRange>[3.1,)</versionRange>
|
|
<goals>
|
|
<goal>compile</goal>
|
|
<goal>testCompile</goal>
|
|
</goals>
|
|
</pluginExecutionFilter>
|
|
<action>
|
|
<ignore></ignore>
|
|
</action>
|
|
</pluginExecution>
|
|
<pluginExecution>
|
|
<pluginExecutionFilter>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
<versionRange>[2.6,)</versionRange>
|
|
<goals>
|
|
<goal>resources</goal>
|
|
<goal>testResources</goal>
|
|
</goals>
|
|
</pluginExecutionFilter>
|
|
<action>
|
|
<ignore></ignore>
|
|
</action>
|
|
</pluginExecution>
|
|
</pluginExecutions>
|
|
|
|
</lifecycleMappingMetadata>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
</plugins>
|
|
</pluginManagement>
|
|
|
|
</build>
|
|
|
|
<reporting>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-checkstyle-plugin</artifactId>
|
|
<version>3.1.0</version>
|
|
<configuration>
|
|
<configLocation>checkstyle.xml</configLocation>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</reporting>
|
|
</project>
|