<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
<parent>
|
<artifactId>energy-management</artifactId>
|
<groupId>com.dingzhuo</groupId>
|
<version>1.0.0</version>
|
</parent>
|
<modelVersion>4.0.0</modelVersion>
|
<artifactId>compute-engine</artifactId>
|
|
<properties>
|
<java.version>1.8</java.version>
|
</properties>
|
|
<dependencies>
|
<dependency>
|
<groupId>com.typesafe.akka</groupId>
|
<artifactId>akka-actor_2.13</artifactId>
|
<version>2.6.4</version>
|
</dependency>
|
<dependency>
|
<groupId>com.typesafe.akka</groupId>
|
<artifactId>akka-cluster_2.13</artifactId>
|
<version>2.6.4</version>
|
</dependency>
|
<dependency>
|
<groupId>com.typesafe.akka</groupId>
|
<artifactId>akka-cluster-sharding-typed_2.13</artifactId>
|
<version>2.6.4</version>
|
</dependency>
|
<dependency>
|
<groupId>com.typesafe.akka</groupId>
|
<artifactId>akka-slf4j_2.13</artifactId>
|
<version>2.6.4</version>
|
</dependency>
|
<dependency>
|
<groupId>args4j</groupId>
|
<artifactId>args4j</artifactId>
|
<version>2.33</version>
|
</dependency>
|
|
<dependency>
|
<groupId>com.dingzhuo</groupId>
|
<artifactId>parent</artifactId>
|
<version>${project.version}</version>
|
</dependency>
|
<dependency>
|
<groupId>com.dingzhuo</groupId>
|
<artifactId>data-model</artifactId>
|
<version>${project.version}</version>
|
</dependency>
|
<dependency>
|
<groupId>com.dingzhuo</groupId>
|
<artifactId>data-service</artifactId>
|
<version>${project.version}</version>
|
</dependency>
|
<dependency>
|
<groupId>com.dingzhuo</groupId>
|
<artifactId>data-monitoring</artifactId>
|
<version>1.0.0</version>
|
<scope>compile</scope>
|
</dependency>
|
</dependencies>
|
|
<build>
|
<plugins>
|
<!-- 第三方包打进jar文件中-->
|
<plugin>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
<version>2.0.5.RELEASE</version>
|
<executions>
|
<execution>
|
<goals>
|
<goal>repackage</goal>
|
</goals>
|
</execution>
|
</executions>
|
<configuration>
|
<includeSystemScope>true</includeSystemScope>
|
</configuration>
|
</plugin>
|
<plugin>
|
<groupId>org.apache.maven.plugins</groupId>
|
<artifactId>maven-jar-plugin</artifactId>
|
<configuration>
|
<archive>
|
<manifest>
|
<addClasspath>true</addClasspath>
|
<classpathPrefix>lib/</classpathPrefix>
|
<mainClass>com.dingzhuo.compute.engine.ComputeEngineApplication</mainClass>
|
<useUniqueVersions>false</useUniqueVersions>
|
</manifest>
|
<manifestEntries>
|
<Class-Path>lib/fel-0.10.jar</Class-Path>
|
</manifestEntries>
|
</archive>
|
<excludes>
|
<exclude>application-prod.yml</exclude>
|
</excludes>
|
</configuration>
|
</plugin>
|
<plugin>
|
<groupId>org.apache.maven.plugins</groupId>
|
<artifactId>maven-dependency-plugin</artifactId>
|
<executions>
|
<execution>
|
<id>copy-lib</id>
|
<phase>package</phase>
|
<goals>
|
<goal>copy-dependencies</goal>
|
</goals>
|
<configuration>
|
<outputDirectory>${project.build.directory}/lib</outputDirectory>
|
<excludeTransitive>false</excludeTransitive>
|
<stripVersion>false</stripVersion>
|
</configuration>
|
</execution>
|
</executions>
|
</plugin>
|
<plugin>
|
<groupId>org.apache.maven.plugins</groupId>
|
<artifactId>maven-resources-plugin</artifactId>
|
<version>2.7</version>
|
<configuration>
|
<encoding>UTF-8</encoding>
|
</configuration>
|
<executions>
|
<execution>
|
<id>copy-resources</id>
|
<phase>validate</phase>
|
<goals>
|
<goal>copy-resources</goal>
|
</goals>
|
<configuration>
|
<outputDirectory>${basedir}/target/config</outputDirectory>
|
<resources>
|
<resource>
|
<directory>src/main/resources</directory>
|
<filtering>true</filtering>
|
<includes>
|
<include>application-prod.yml</include>
|
</includes>
|
</resource>
|
</resources>
|
</configuration>
|
</execution>
|
</executions>
|
</plugin>
|
</plugins>
|
</build>
|
|
</project>
|