mirror of
https://github.com/dromara/hertzbeat.git
synced 2026-09-17 09:40:58 +00:00
Signed-off-by: tomsun28 <tomsun28@outlook.com> Co-authored-by: tomsun28 <tomsun28@outlook.com>
376 lines
16 KiB
XML
376 lines
16 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">
|
|
<parent>
|
|
<artifactId>hertzbeat</artifactId>
|
|
<groupId>org.apache.hertzbeat</groupId>
|
|
<version>2.0-SNAPSHOT</version>
|
|
</parent>
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<artifactId>hertzbeat-collector</artifactId>
|
|
<name>${project.artifactId}</name>
|
|
<properties>
|
|
<java.version>17</java.version>
|
|
<maven.compiler.source>${java.version}</maven.compiler.source>
|
|
<maven.compiler.target>${java.version}</maven.compiler.target>
|
|
<maven-jar-plugin.version>3.2.0</maven-jar-plugin.version>
|
|
<maven-assembly-plugin.version>3.3.0</maven-assembly-plugin.version>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<!-- spring -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-configuration-processor</artifactId>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-autoconfigure</artifactId>
|
|
</dependency>
|
|
<!-- common -->
|
|
<dependency>
|
|
<groupId>org.apache.hertzbeat</groupId>
|
|
<artifactId>hertzbeat-common</artifactId>
|
|
</dependency>
|
|
<!-- remoting -->
|
|
<dependency>
|
|
<groupId>org.apache.hertzbeat</groupId>
|
|
<artifactId>hertzbeat-remoting</artifactId>
|
|
</dependency>
|
|
<!-- validation -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-validation</artifactId>
|
|
</dependency>
|
|
<!-- run sql script-->
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-jdbc</artifactId>
|
|
<version>5.3.23</version>
|
|
</dependency>
|
|
<!-- kafka -->
|
|
<dependency>
|
|
<groupId>org.apache.kafka</groupId>
|
|
<artifactId>kafka-clients</artifactId>
|
|
</dependency>
|
|
<!-- http -->
|
|
<dependency>
|
|
<groupId>org.apache.httpcomponents</groupId>
|
|
<artifactId>httpclient</artifactId>
|
|
</dependency>
|
|
<!--network-->
|
|
<dependency>
|
|
<groupId>commons-net</groupId>
|
|
<artifactId>commons-net</artifactId>
|
|
<version>3.8.0</version>
|
|
</dependency>
|
|
<!--json path parser-->
|
|
<dependency>
|
|
<groupId>com.jayway.jsonpath</groupId>
|
|
<artifactId>json-path</artifactId>
|
|
</dependency>
|
|
<!-- lru hashmap -->
|
|
<dependency>
|
|
<groupId>com.googlecode.concurrentlinkedhashmap</groupId>
|
|
<artifactId>concurrentlinkedhashmap-lru</artifactId>
|
|
<version>1.4.2</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.google.guava</groupId>
|
|
<artifactId>guava</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.google.code.gson</groupId>
|
|
<artifactId>gson</artifactId>
|
|
</dependency>
|
|
<!--collect-->
|
|
<!-- mysql -->
|
|
<dependency>
|
|
<groupId>mysql</groupId>
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<!-- clickhouse -->
|
|
<dependency>
|
|
<groupId>com.clickhouse</groupId>
|
|
<artifactId>clickhouse-jdbc</artifactId>
|
|
</dependency>
|
|
|
|
<!-- dm -->
|
|
<dependency>
|
|
<groupId>com.dameng</groupId>
|
|
<artifactId>DmJdbcDriver18</artifactId>
|
|
</dependency>
|
|
<!-- postgresql -->
|
|
<dependency>
|
|
<groupId>org.postgresql</groupId>
|
|
<artifactId>postgresql</artifactId>
|
|
</dependency>
|
|
<!-- linux ssh -->
|
|
<dependency>
|
|
<groupId>org.apache.sshd</groupId>
|
|
<artifactId>sshd-core</artifactId>
|
|
<version>2.8.0</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>net.i2p.crypto</groupId>
|
|
<artifactId>eddsa</artifactId>
|
|
<version>0.3.0</version>
|
|
</dependency>
|
|
<!-- sql server -->
|
|
<dependency>
|
|
<groupId>com.microsoft.sqlserver</groupId>
|
|
<artifactId>mssql-jdbc</artifactId>
|
|
</dependency>
|
|
<!-- oracle -->
|
|
<dependency>
|
|
<groupId>com.oracle.database.jdbc</groupId>
|
|
<artifactId>ojdbc8</artifactId>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.oracle.database.nls</groupId>
|
|
<artifactId>orai18n</artifactId>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<!--redis-->
|
|
<dependency>
|
|
<groupId>io.lettuce</groupId>
|
|
<artifactId>lettuce-core</artifactId>
|
|
</dependency>
|
|
<!-- mongodb -->
|
|
<dependency>
|
|
<groupId>org.mongodb</groupId>
|
|
<artifactId>mongodb-driver-sync</artifactId>
|
|
</dependency>
|
|
<!--snmp-->
|
|
<dependency>
|
|
<groupId>org.snmp4j</groupId>
|
|
<artifactId>snmp4j</artifactId>
|
|
<version>3.6.7</version>
|
|
</dependency>
|
|
|
|
<!-- rocketmq -->
|
|
<dependency>
|
|
<groupId>org.apache.rocketmq</groupId>
|
|
<artifactId>rocketmq-tools</artifactId>
|
|
<version>4.9.4</version>
|
|
</dependency>
|
|
|
|
<!--dns-->
|
|
<dependency>
|
|
<groupId>dnsjava</groupId>
|
|
<artifactId>dnsjava</artifactId>
|
|
<version>3.5.2</version>
|
|
</dependency>
|
|
|
|
<!-- consul -->
|
|
<dependency>
|
|
<groupId>com.ecwid.consul</groupId>
|
|
<artifactId>consul-api</artifactId>
|
|
<version>1.4.5</version>
|
|
</dependency>
|
|
<!-- nacos -->
|
|
<dependency>
|
|
<groupId>com.alibaba.nacos</groupId>
|
|
<artifactId>nacos-client</artifactId>
|
|
<version>2.2.1</version>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>inner</id>
|
|
<activation>
|
|
<activeByDefault>true</activeByDefault>
|
|
</activation>
|
|
<build>
|
|
<finalName>hertzbeat-collector</finalName>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
<version>${maven-jar-plugin.version}</version>
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
<profile>
|
|
<id>cluster</id>
|
|
<build>
|
|
<finalName>hertzbeat-collector</finalName>
|
|
<resources>
|
|
<resource>
|
|
<directory>src/main/resources</directory>
|
|
<filtering>true</filtering>
|
|
<includes>
|
|
<include>*.yml</include>
|
|
<include>*.properties</include>
|
|
<include>*.xml</include>
|
|
<include>banner.txt</include>
|
|
<include>META-INF/**</include>
|
|
</includes>
|
|
</resource>
|
|
</resources>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<configuration>
|
|
<source>11</source>
|
|
<target>11</target>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
<version>${maven-jar-plugin.version}</version>
|
|
<configuration>
|
|
<classesDirectory>target/classes/</classesDirectory>
|
|
<archive>
|
|
<!--生成的jar包不包含maven描述相关文件-->
|
|
<addMavenDescriptor>false</addMavenDescriptor>
|
|
<manifest>
|
|
<!--项目启动类-->
|
|
<mainClass>org.apache.hertzbeat.collector.Collector</mainClass>
|
|
<useUniqueVersions>false</useUniqueVersions>
|
|
<!--第三方JAR加入类构建的路径maven-dependency-plugin-->
|
|
<addClasspath>true</addClasspath>
|
|
<!--外部依赖jar包的位置-->
|
|
<classpathPrefix>lib/</classpathPrefix>
|
|
</manifest>
|
|
<manifestEntries>
|
|
<Class-Path>. config</Class-Path>
|
|
</manifestEntries>
|
|
</archive>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
<version>${maven-assembly-plugin.version}</version>
|
|
<executions>
|
|
<execution>
|
|
<id>without-jdk</id>
|
|
<!--绑定的maven操作-->
|
|
<phase>package</phase>
|
|
<!--运行一次-->
|
|
<goals>
|
|
<goal>single</goal>
|
|
</goals>
|
|
<configuration>
|
|
<descriptors>
|
|
<descriptor>../script/assembly/collector/assembly.xml</descriptor>
|
|
</descriptors>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>make-macos-arm64</id>
|
|
<!--绑定的maven操作-->
|
|
<phase>package</phase>
|
|
<!--运行一次-->
|
|
<goals>
|
|
<goal>single</goal>
|
|
</goals>
|
|
<configuration>
|
|
<descriptors>
|
|
<descriptor>../script/assembly/collector/assembly-macos-arm64.xml</descriptor>
|
|
</descriptors>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>make-macos-amd64</id>
|
|
<!--绑定的maven操作-->
|
|
<phase>package</phase>
|
|
<!--运行一次-->
|
|
<goals>
|
|
<goal>single</goal>
|
|
</goals>
|
|
<configuration>
|
|
<descriptors>
|
|
<descriptor>../script/assembly/collector/assembly-macos-amd64.xml</descriptor>
|
|
</descriptors>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>make-linux-arm64</id>
|
|
<!--绑定的maven操作-->
|
|
<phase>package</phase>
|
|
<!--运行一次-->
|
|
<goals>
|
|
<goal>single</goal>
|
|
</goals>
|
|
<configuration>
|
|
<descriptors>
|
|
<descriptor>../script/assembly/collector/assembly-linux-arm64.xml</descriptor>
|
|
</descriptors>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>make-linux-amd64</id>
|
|
<!--绑定的maven操作-->
|
|
<phase>package</phase>
|
|
<!--运行一次-->
|
|
<goals>
|
|
<goal>single</goal>
|
|
</goals>
|
|
<configuration>
|
|
<descriptors>
|
|
<descriptor>../script/assembly/collector/assembly-linux-amd64.xml</descriptor>
|
|
</descriptors>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>make-windows-64</id>
|
|
<!--绑定的maven操作-->
|
|
<phase>package</phase>
|
|
<!--运行一次-->
|
|
<goals>
|
|
<goal>single</goal>
|
|
</goals>
|
|
<configuration>
|
|
<descriptors>
|
|
<descriptor>../script/assembly/collector/assembly-windows-64.xml</descriptor>
|
|
</descriptors>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
|
|
</project>
|