125 lines
4.7 KiB
XML
125 lines
4.7 KiB
XML
|
<?xml version="1.0" encoding="UTF-8"?>
|
|||
|
<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>flink-streaming-platform-web</artifactId>
|
|||
|
<groupId>com.streaming.platform.web</groupId>
|
|||
|
<version>1.1</version>
|
|||
|
<relativePath>../pom.xml</relativePath>
|
|||
|
</parent>
|
|||
|
<modelVersion>4.0.0</modelVersion>
|
|||
|
|
|||
|
<artifactId>deployer</artifactId>
|
|||
|
<version>${flink_streaming_version}</version>
|
|||
|
|
|||
|
|
|||
|
<dependencies>
|
|||
|
<dependency>
|
|||
|
<groupId>com.streaming.platform.web</groupId>
|
|||
|
<artifactId>flink-streaming-core</artifactId>
|
|||
|
<version>${flink_streaming_version}</version>
|
|||
|
</dependency>
|
|||
|
<dependency>
|
|||
|
<groupId>com.streaming.platform.web</groupId>
|
|||
|
<artifactId>flink-streaming-web</artifactId>
|
|||
|
<version>${flink_streaming_version}</version>
|
|||
|
</dependency>
|
|||
|
<dependency>
|
|||
|
<groupId>io.prometheus.jmx</groupId>
|
|||
|
<artifactId>jmx_prometheus_javaagent</artifactId>
|
|||
|
<version>0.16.1</version>
|
|||
|
</dependency>
|
|||
|
</dependencies>
|
|||
|
|
|||
|
|
|||
|
<build>
|
|||
|
<plugins>
|
|||
|
<plugin>
|
|||
|
<groupId>org.codehaus.mojo</groupId>
|
|||
|
<artifactId>findbugs-maven-plugin</artifactId>
|
|||
|
<version>3.0.5</version>
|
|||
|
<configuration>
|
|||
|
<!-- 设置分析工作的等级,可以为Min、Default和Max -->
|
|||
|
<effort>Low</effort>
|
|||
|
<!-- Low、Medium和High (Low最严格) High只扫描严重错误。建议用Medium-->
|
|||
|
<threshold>High</threshold>
|
|||
|
<failOnError>true</failOnError>
|
|||
|
<includeTests>true</includeTests>
|
|||
|
<skip>true</skip>
|
|||
|
</configuration>
|
|||
|
<executions>
|
|||
|
<execution>
|
|||
|
<id>run-findbugs</id>
|
|||
|
<!-- 在package(也可设为compile) 阶段触发执行findbugs检查,比如执行 mvn clean package -->
|
|||
|
<phase>package</phase>
|
|||
|
<goals>
|
|||
|
<goal>check</goal>
|
|||
|
</goals>
|
|||
|
</execution>
|
|||
|
</executions>
|
|||
|
</plugin>
|
|||
|
|
|||
|
<!-- deploy模块的packaging通常是jar,如果项目中没有java 源代码或资源文件,加上这一段配置使项目能通过构建 -->
|
|||
|
<plugin>
|
|||
|
<artifactId>maven-jar-plugin</artifactId>
|
|||
|
<configuration>
|
|||
|
<archive>
|
|||
|
<addMavenDescriptor>true</addMavenDescriptor>
|
|||
|
</archive>
|
|||
|
</configuration>
|
|||
|
</plugin>
|
|||
|
|
|||
|
<plugin>
|
|||
|
<groupId>org.apache.maven.plugins</groupId>
|
|||
|
<artifactId>maven-assembly-plugin</artifactId>
|
|||
|
<!-- 这是最新版本,推荐使用这个版本 -->
|
|||
|
<version>3.1.1</version>
|
|||
|
<executions>
|
|||
|
<execution>
|
|||
|
<id>assemble</id>
|
|||
|
<goals>
|
|||
|
<goal>single</goal>
|
|||
|
</goals>
|
|||
|
<phase>package</phase>
|
|||
|
</execution>
|
|||
|
</executions>
|
|||
|
<configuration>
|
|||
|
<finalName>projectname</finalName>
|
|||
|
<appendAssemblyId>false</appendAssemblyId>
|
|||
|
<attach>false</attach>
|
|||
|
</configuration>
|
|||
|
</plugin>
|
|||
|
</plugins>
|
|||
|
</build>
|
|||
|
|
|||
|
<profiles>
|
|||
|
<profile>
|
|||
|
<id>dev</id>
|
|||
|
<activation>
|
|||
|
<activeByDefault>true</activeByDefault>
|
|||
|
</activation>
|
|||
|
|
|||
|
<build>
|
|||
|
<plugins>
|
|||
|
<plugin>
|
|||
|
<artifactId>maven-assembly-plugin</artifactId>
|
|||
|
<configuration>
|
|||
|
<!-- maven assembly插件需要一个描述文件 来告诉插件包的结构以及打包所需的文件来自哪里 -->
|
|||
|
<descriptors>
|
|||
|
<descriptor>${basedir}/src/main/assembly/dev.xml</descriptor>
|
|||
|
</descriptors>
|
|||
|
<finalName>flink-streaming-platform-web</finalName>
|
|||
|
<outputDirectory>${project.build.directory}</outputDirectory>
|
|||
|
</configuration>
|
|||
|
</plugin>
|
|||
|
</plugins>
|
|||
|
</build>
|
|||
|
|
|||
|
</profile>
|
|||
|
|
|||
|
|
|||
|
</profiles>
|
|||
|
|
|||
|
</project>
|