mirror of
https://github.com/dromara/hertzbeat.git
synced 2026-10-06 00:19:03 +00:00
Signed-off-by: tomsun28 <tomsun28@outlook.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Logic <zqr10159@dromara.org>
364 lines
15 KiB
XML
364 lines
15 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-manager</artifactId>
|
|
<name>${project.artifactId}</name>
|
|
<packaging>jar</packaging>
|
|
|
|
<properties>
|
|
<maven.install.skip>true</maven.install.skip>
|
|
<maven-jar-plugin.version>3.2.0</maven-jar-plugin.version>
|
|
<maven-assembly-plugin.version>3.3.0</maven-assembly-plugin.version>
|
|
<nekohtml.version>1.9.22</nekohtml.version>
|
|
<spring-boot-starter-sureness.version>1.1.0</spring-boot-starter-sureness.version>
|
|
<warehouse.version>1.0</warehouse.version>
|
|
<easy-poi.version>4.3.0</easy-poi.version>
|
|
<huawei.sdk.version>3.1.37</huawei.sdk.version>
|
|
<huawei.obs.version>3.23.5</huawei.obs.version>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<!-- common -->
|
|
<dependency>
|
|
<groupId>org.apache.hertzbeat</groupId>
|
|
<artifactId>hertzbeat-common</artifactId>
|
|
<exclusions>
|
|
<exclusion>
|
|
<artifactId>commons-logging</artifactId>
|
|
<groupId>commons-logging</groupId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<!-- data warehouse -->
|
|
<dependency>
|
|
<groupId>org.apache.hertzbeat</groupId>
|
|
<artifactId>hertzbeat-warehouse</artifactId>
|
|
</dependency>
|
|
<!-- alerter -->
|
|
<dependency>
|
|
<groupId>org.apache.hertzbeat</groupId>
|
|
<artifactId>hertzbeat-alerter</artifactId>
|
|
</dependency>
|
|
<!-- collector -->
|
|
<dependency>
|
|
<groupId>org.apache.hertzbeat</groupId>
|
|
<artifactId>hertzbeat-collector</artifactId>
|
|
<exclusions>
|
|
<exclusion>
|
|
<artifactId>commons-logging</artifactId>
|
|
<groupId>commons-logging</groupId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<!-- remoting -->
|
|
<dependency>
|
|
<groupId>org.apache.hertzbeat</groupId>
|
|
<artifactId>hertzbeat-remoting</artifactId>
|
|
</dependency>
|
|
<!-- push -->
|
|
<dependency>
|
|
<groupId>org.apache.hertzbeat</groupId>
|
|
<artifactId>hertzbeat-push</artifactId>
|
|
</dependency>
|
|
<!-- 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-starter-actuator</artifactId>
|
|
</dependency>
|
|
<!--thymeleaf-->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-thymeleaf</artifactId>
|
|
</dependency>
|
|
<!-- freemarker -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-freemarker</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>net.sourceforge.nekohtml</groupId>
|
|
<artifactId>nekohtml</artifactId>
|
|
<version>${nekohtml.version}</version>
|
|
</dependency>
|
|
<!-- data jdbc -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-jdbc</artifactId>
|
|
</dependency>
|
|
<!-- mysql -->
|
|
<dependency>
|
|
<groupId>mysql</groupId>
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<!-- email -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-mail</artifactId>
|
|
</dependency>
|
|
<!-- swagger -->
|
|
<dependency>
|
|
<groupId>org.springdoc</groupId>
|
|
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
|
|
</dependency>
|
|
<!-- yaml file load -->
|
|
<dependency>
|
|
<groupId>org.yaml</groupId>
|
|
<artifactId>snakeyaml</artifactId>
|
|
</dependency>
|
|
<!--sureness-->
|
|
<dependency>
|
|
<groupId>com.usthe.sureness</groupId>
|
|
<artifactId>spring-boot3-starter-sureness</artifactId>
|
|
</dependency>
|
|
<!-- okhttp -->
|
|
<dependency>
|
|
<groupId>com.squareup.okhttp3</groupId>
|
|
<artifactId>okhttp</artifactId>
|
|
</dependency>
|
|
<!-- h2 database-->
|
|
<dependency>
|
|
<groupId>com.h2database</groupId>
|
|
<artifactId>h2</artifactId>
|
|
<scope>runtime</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>cn.afterturn</groupId>
|
|
<artifactId>easypoi-spring-boot-starter</artifactId>
|
|
<version>${easy-poi.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.huaweicloud.sdk</groupId>
|
|
<artifactId>huaweicloud-sdk-smn</artifactId>
|
|
<version>${huawei.sdk.version}</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>org.openeuler</groupId>
|
|
<artifactId>bgmprovider</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.huaweicloud</groupId>
|
|
<artifactId>esdk-obs-java</artifactId>
|
|
<version>${huawei.obs.version}</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>org.openeuler</groupId>
|
|
<artifactId>bgmprovider</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<finalName>hertzbeat</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>define/**</include>
|
|
<include>templates/**</include>
|
|
<include>**/*.html</include>
|
|
</includes>
|
|
</resource>
|
|
</resources>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
<version>${maven-jar-plugin.version}</version>
|
|
<configuration>
|
|
<classesDirectory>target/classes/</classesDirectory>
|
|
<archive>
|
|
<!--Exclude maven descriptors from generated JAR-->
|
|
<addMavenDescriptor>false</addMavenDescriptor>
|
|
<manifest>
|
|
<!--Main class of the project-->
|
|
<mainClass>org.apache.hertzbeat.manager.Manager</mainClass>
|
|
<useUniqueVersions>false</useUniqueVersions>
|
|
<!--Add third-party JARs to the classpath using maven-dependency-plugin-->
|
|
<addClasspath>true</addClasspath>
|
|
<!--Location of external dependency JARs-->
|
|
<classpathPrefix>lib/</classpathPrefix>
|
|
</manifest>
|
|
<manifestEntries>
|
|
<Class-Path>. config</Class-Path>
|
|
</manifestEntries>
|
|
</archive>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>default</id>
|
|
<activation>
|
|
<activeByDefault>true</activeByDefault>
|
|
</activation>
|
|
<build>
|
|
<plugins>
|
|
<!--Critical plugin, assembly plugin provided by maven, should be placed last-->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
<version>${maven-assembly-plugin.version}</version>
|
|
<executions>
|
|
<execution>
|
|
<id>make-zip</id>
|
|
<!--Bound maven operation-->
|
|
<phase>package</phase>
|
|
<!--Run once-->
|
|
<goals>
|
|
<goal>single</goal>
|
|
</goals>
|
|
<configuration>
|
|
<descriptors>
|
|
<descriptor>../script/assembly/server/assembly.xml</descriptor>
|
|
</descriptors>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
<profile>
|
|
<id>runtime</id>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
<version>${maven-assembly-plugin.version}</version>
|
|
<executions>
|
|
<execution>
|
|
<id>make-macos-arm64</id>
|
|
<!--Bound maven operation-->
|
|
<phase>package</phase>
|
|
<!--Run once-->
|
|
<goals>
|
|
<goal>single</goal>
|
|
</goals>
|
|
<configuration>
|
|
<descriptors>
|
|
<descriptor>../script/assembly/server/assembly-macos-arm64.xml</descriptor>
|
|
</descriptors>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>make-macos-amd64</id>
|
|
<!--Bound maven operation-->
|
|
<phase>package</phase>
|
|
<!--Run once-->
|
|
<goals>
|
|
<goal>single</goal>
|
|
</goals>
|
|
<configuration>
|
|
<descriptors>
|
|
<descriptor>../script/assembly/server/assembly-macos-amd64.xml</descriptor>
|
|
</descriptors>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>make-linux-arm64</id>
|
|
<!--Bound maven operation-->
|
|
<phase>package</phase>
|
|
<!--Run once-->
|
|
<goals>
|
|
<goal>single</goal>
|
|
</goals>
|
|
<configuration>
|
|
<descriptors>
|
|
<descriptor>../script/assembly/server/assembly-linux-arm64.xml</descriptor>
|
|
</descriptors>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>make-linux-amd64</id>
|
|
<!--Bound maven operation-->
|
|
<phase>package</phase>
|
|
<!--Run once-->
|
|
<goals>
|
|
<goal>single</goal>
|
|
</goals>
|
|
<configuration>
|
|
<descriptors>
|
|
<descriptor>../script/assembly/server/assembly-linux-amd64.xml</descriptor>
|
|
</descriptors>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>make-windows-64</id>
|
|
<!--Bound maven operation-->
|
|
<phase>package</phase>
|
|
<!--Run once-->
|
|
<goals>
|
|
<goal>single</goal>
|
|
</goals>
|
|
<configuration>
|
|
<descriptors>
|
|
<descriptor>../script/assembly/server/assembly-windows-64.xml</descriptor>
|
|
</descriptors>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>make-docker-compose-script</id>
|
|
<!--Bound maven operation-->
|
|
<phase>package</phase>
|
|
<!--Run once-->
|
|
<goals>
|
|
<goal>single</goal>
|
|
</goals>
|
|
<configuration>
|
|
<descriptors>
|
|
<descriptor>../script/assembly/server/assembly-docker-compose.xml</descriptor>
|
|
</descriptors>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
|
|
</project>
|