2025-05-13 09:59:31 +08:00

195 lines
6.7 KiB
XML

<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>
<groupId>com.primeton.eos</groupId>
<artifactId>demo</artifactId>
<version>1.0.0</version>
<relativePath>../</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>com.primeton.eos.demo.boot</artifactId>
<name>com.primeton.eos.demo.boot</name>
<dependencies>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
<dependency>
<groupId>com.primeton.eos</groupId>
<artifactId>com.primeton.eos.demo.model</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>com.primeton.eos</groupId>
<artifactId>com.primeton.eos.demo.api</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>com.primeton.eos</groupId>
<artifactId>com.primeton.eos.demo.core</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>com.primeton.eos</groupId>
<artifactId>com.primeton.eos.demo.starter</artifactId>
<version>1.0.0</version>
</dependency>
<!-- 达梦驱动 -->
<dependency>
<groupId>com.dameng</groupId>
<artifactId>DmJdbcDriver18</artifactId>
<version>8.1.1.193</version>
</dependency>
<!-- 不引入swagger会报错 -->
<dependency>
<groupId>com.github.xiaoymin</groupId>
<artifactId>knife4j-openapi2-spring-boot-starter</artifactId>
<version>4.5.0</version>
</dependency>
</dependencies>
<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
<configuration>
<executable>true</executable>
<layout>ZIP</layout>
<excludeGroupIds>
mysql,
dameng,
com.huawei.gauss.jdbc.ZenithDriver,
com.oracle.ojdbc,
com.primeton.3rd.jdbc,
com.microsoft.sqlserver,
com.ibm.db2.jcc,
org.postgresql,
org.mongodb,
com.clickhouse,
ru.yandex.clickhouse,
org.apache.hive,
org.apache.hive.shims,
org.apache.thrift,
org.apache.hadoop,
org.apache.hbase,
org.apache.hbase.thirdparty
</excludeGroupIds>
</configuration>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestFile>src/META-INF/MANIFEST.MF</manifestFile>
</archive>
</configuration>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack</id>
<phase>prepare-package</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>com.primeton.eos</groupId>
<artifactId>eos-server-db-scripts</artifactId>
<version>${eos.version}</version>
<outputDirectory>target/eos-db-scripts</outputDirectory>
</artifactItem>
<artifactItem>
<groupId>com.primeton.eos</groupId>
<artifactId>com.primeton.eos.demo.model</artifactId>
<version>1.0.0</version>
<outputDirectory>target/demo-db-scripts</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<!-- 获取微前端或前端组件的资源包 -->
<!--
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>download-front-resources</id>
<phase>prepare-package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<get
src="http://xxx.zip"
dest="${project.build.directory}/health_app.zip" />
</target>
</configuration>
</execution>
</executions>
</plugin>
-->
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<attach>true</attach>
<appendAssemblyId>false</appendAssemblyId>
<tarLongFileMode>gnu</tarLongFileMode>
<descriptors>
<descriptor>src/META-INF/assembly/assembly.xml</descriptor>
</descriptors>
</configuration>
</execution>
<!-- 增加组件打包入口 -->
<!-- <execution>
<id>make-assembly-component</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<attach>true</attach>
<appendAssemblyId>false</appendAssemblyId>
<tarLongFileMode>gnu</tarLongFileMode>
<descriptors>
<descriptor>
src/META-INF/assembly/assembly-component.xml</descriptor>
</descriptors>
<finalName>health_component_v1.0.0</finalName>
</configuration>
</execution> -->
</executions>
</plugin>
</plugins>
</build>
</project>