199 lines
7.3 KiB
XML
199 lines
7.3 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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||
|
||
<parent>
|
||
<artifactId>abnl-RTHIT-service-parent</artifactId>
|
||
<groupId>com.qzing.mes.abnl</groupId>
|
||
<version>1.0.1-SNAPSHOT</version>
|
||
</parent>
|
||
<modelVersion>4.0.0</modelVersion>
|
||
|
||
<artifactId>abnl-RTHIT-service-start</artifactId>
|
||
<version>${abnl-RTHIT-version}</version>
|
||
<packaging>${packaging}</packaging>
|
||
<dependencies>
|
||
<dependency>
|
||
<groupId>com.qzing.mes.abnl</groupId>
|
||
<artifactId>abnl-RTHIT-service-extend</artifactId>
|
||
<version>${abnl-RTHIT-version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>com.qzing</groupId>
|
||
<artifactId>ime-framework-code-generator</artifactId>
|
||
<version>${revision}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>com.graphql-java</groupId>
|
||
<artifactId>graphiql-spring-boot-starter</artifactId>
|
||
</dependency>
|
||
|
||
<!--jpa的redisson缓存配置-->
|
||
<dependency>
|
||
<groupId>org.redisson</groupId>
|
||
<artifactId>redisson-hibernate-53</artifactId>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>de.ruedigermoeller</groupId>
|
||
<artifactId>fst</artifactId>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>com.qzing.ieep2</groupId>
|
||
<artifactId>ieep2-starter-groovy</artifactId>
|
||
</dependency>
|
||
<!-- 平台相关 -->
|
||
<dependency>
|
||
<groupId>com.qzing.ieep2</groupId>
|
||
<artifactId>ieep2-starter-config</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>com.qzing.ieep2</groupId>
|
||
<artifactId>ieep2-starter-mvc</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>com.qzing.ieep2</groupId>
|
||
<artifactId>ieep2-starter-log</artifactId>
|
||
</dependency>
|
||
<!--<dependency>
|
||
<groupId>com.qzing.ieep2</groupId>
|
||
<artifactId>ieep2-starter-log-impl</artifactId>
|
||
</dependency>-->
|
||
|
||
<!-- Nacos -->
|
||
<dependency>
|
||
<groupId>com.alibaba.cloud</groupId>
|
||
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>com.alibaba.cloud</groupId>
|
||
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>com.qzing.ieep2</groupId>
|
||
<artifactId>ieep2-starter-data</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-test</artifactId>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
</dependencies>
|
||
|
||
<profiles>
|
||
<profile>
|
||
<id>dev</id>
|
||
<properties>
|
||
<spring.profiles.active>dev</spring.profiles.active>
|
||
<packaging>jar</packaging>
|
||
</properties>
|
||
<activation>
|
||
<activeByDefault>true</activeByDefault>
|
||
</activation>
|
||
</profile>
|
||
<profile>
|
||
<id>test</id>
|
||
<properties>
|
||
<spring.profiles.active>test</spring.profiles.active>
|
||
<packaging>war</packaging>
|
||
</properties>
|
||
</profile>
|
||
<profile>
|
||
<id>prod</id>
|
||
<properties>
|
||
<packaging>war</packaging>
|
||
<spring.profiles.active>prod</spring.profiles.active>
|
||
</properties>
|
||
</profile>
|
||
</profiles>
|
||
|
||
<build>
|
||
<finalName>ime-prodexec-${project.version}</finalName>
|
||
<resources>
|
||
<resource>
|
||
<directory>${project.basedir}/src/main/resources</directory>
|
||
<filtering>true</filtering>
|
||
</resource>
|
||
</resources>
|
||
|
||
<plugins>
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-jar-plugin</artifactId>
|
||
<configuration>
|
||
<archive>
|
||
<manifest>
|
||
<!-- 是否绑定依赖,将外部jar包依赖加入到classPath中 -->
|
||
<addClasspath>true</addClasspath>
|
||
<!-- 依赖前缀,公用的lib目录 -->
|
||
<classpathPrefix>lib/</classpathPrefix>
|
||
<!-- 主函数的入口 -->
|
||
<mainClass>com.qzing.ime.abnl.StartApplication</mainClass>
|
||
</manifest>
|
||
</archive>
|
||
</configuration>
|
||
</plugin>
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-shade-plugin</artifactId>
|
||
<configuration>
|
||
<createDependencyReducedPom>false</createDependencyReducedPom>
|
||
</configuration>
|
||
<executions>
|
||
<execution>
|
||
<phase>package</phase>
|
||
<goals>
|
||
<goal>shade</goal>
|
||
</goals>
|
||
<configuration>
|
||
<artifactSet>
|
||
<!-- 公司开发的jar包也打包进来 -->
|
||
<includes>
|
||
<include>com.qzing* </include>
|
||
</includes>
|
||
</artifactSet>
|
||
<shadedArtifactAttached>true</shadedArtifactAttached>
|
||
<shadedClassifierName>exec</shadedClassifierName>
|
||
</configuration>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
<!--拷贝依赖第三方Jar包如果没有发生变化可以注释掉-->
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-dependency-plugin</artifactId>
|
||
<executions>
|
||
<execution>
|
||
<id>copy-dependencies</id>
|
||
<phase>prepare-package</phase>
|
||
<goals>
|
||
<goal>copy-dependencies</goal>
|
||
</goals>
|
||
<configuration>
|
||
<outputDirectory>${project.build.directory}/lib</outputDirectory>
|
||
<!-- 需要排除公司开发的jar包的 groupId -->
|
||
<excludeGroupIds>com.qzing</excludeGroupIds>
|
||
</configuration>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
|
||
<!--添加配置跳过测试-->
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-surefire-plugin</artifactId>
|
||
<version>2.22.1</version>
|
||
<configuration>
|
||
<skipTests>true</skipTests>
|
||
</configuration>
|
||
</plugin>
|
||
</plugins>
|
||
</build>
|
||
|
||
</project>
|