mirror of
https://github.com/qaiu/netdisk-fast-download.git
synced 2025-12-15 20:03:02 +00:00
211 lines
8.7 KiB
XML
211 lines
8.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>netdisk-fast-download</artifactId>
|
|
<groupId>cn.qaiu</groupId>
|
|
<version>0.1.5</version>
|
|
</parent>
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<version>0.1.5</version>
|
|
<artifactId>web-service</artifactId>
|
|
|
|
<properties>
|
|
<packageDirectory>${project.basedir}/target/package</packageDirectory>
|
|
<java.version>17</java.version>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<slf4j.version>2.0.5</slf4j.version>
|
|
<vertx-jooq.version>6.1.0</vertx-jooq.version>
|
|
<finalName>netdisk-fast-download-${project.version}</finalName>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>cn.qaiu</groupId>
|
|
<artifactId>core</artifactId>
|
|
<version>1.0.8</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.projectlombok</groupId>
|
|
<artifactId>lombok</artifactId>
|
|
<version>1.18.26</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<!--logback日志实现-->
|
|
<dependency>
|
|
<groupId>ch.qos.logback</groupId>
|
|
<artifactId>logback-classic</artifactId>
|
|
<version>1.4.6</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-api</artifactId>
|
|
<version>${slf4j.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>junit</groupId>
|
|
<artifactId>junit</artifactId>
|
|
<version>4.13.2</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.vertx</groupId>
|
|
<artifactId>vertx-web-client</artifactId>
|
|
<version>4.4.1</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>cn.qaiu</groupId>
|
|
<artifactId>core-database</artifactId>
|
|
<version>0.1.5</version>
|
|
</dependency>
|
|
|
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
<directory>${project.basedir}/target/</directory>
|
|
<outputDirectory>${project.build.directory}/classes</outputDirectory>
|
|
<finalName>${finalName}</finalName>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>3.8.1</version>
|
|
<configuration>
|
|
<source>${java.version}</source>
|
|
<target>${java.version}</target>
|
|
<!-- 代码生成器 -->
|
|
<annotationProcessors>
|
|
<annotationProcessor>lombok.launch.AnnotationProcessorHider$AnnotationProcessor</annotationProcessor>
|
|
<annotationProcessor>io.vertx.codegen.CodeGenProcessor</annotationProcessor>
|
|
</annotationProcessors>
|
|
<generatedSourcesDirectory>
|
|
${project.basedir}/src/main/generated
|
|
</generatedSourcesDirectory>
|
|
<compilerArgs>
|
|
<arg>-AoutputDirectory=${project.basedir}/src/main -Xlint:unchecked</arg>
|
|
</compilerArgs>
|
|
</configuration>
|
|
</plugin>
|
|
<!--打包jar-->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
<version>3.2.0</version>
|
|
<configuration>
|
|
<!--不打包资源文件-->
|
|
<excludes>
|
|
<exclude>*.**</exclude>
|
|
<exclude>*/*.xml</exclude>
|
|
<exclude>conf/**</exclude>
|
|
</excludes>
|
|
<archive>
|
|
<manifest>
|
|
<addClasspath>true</addClasspath>
|
|
<!--MANIFEST.MF 中 Class-Path 加入前缀-->
|
|
<classpathPrefix>lib/</classpathPrefix>
|
|
<!--jar包不包含唯一版本标识-->
|
|
<useUniqueVersions>false</useUniqueVersions>
|
|
<!--指定入口类-->
|
|
<mainClass>cn.qaiu.lz.AppMain</mainClass>
|
|
</manifest>
|
|
<manifestEntries>
|
|
<!--MANIFEST.MF 中 Class-Path 加入资源文件目录-->
|
|
<Class-Path>./resources/</Class-Path>
|
|
</manifestEntries>
|
|
</archive>
|
|
<outputDirectory>${packageDirectory}</outputDirectory>
|
|
</configuration>
|
|
</plugin>
|
|
<!--拷贝依赖 copy-dependencies-->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
<version>3.1.2</version>
|
|
<executions>
|
|
<execution>
|
|
<id>copy-dependencies</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>copy-dependencies</goal>
|
|
</goals>
|
|
<configuration>
|
|
<!--打包时排除的依赖作用域-->
|
|
<excludeScope>test</excludeScope>
|
|
<excludeScope>provided</excludeScope>
|
|
<outputDirectory>
|
|
${packageDirectory}/lib/
|
|
</outputDirectory>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<!--拷贝资源文件 copy-resources-->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
<version>3.2.0</version>
|
|
<executions>
|
|
<execution>
|
|
<id>copy-resources</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>copy-resources</goal>
|
|
</goals>
|
|
<configuration>
|
|
<resources>
|
|
<resource>
|
|
<directory>src/main/resources</directory>
|
|
</resource>
|
|
</resources>
|
|
<outputDirectory>${packageDirectory}/resources</outputDirectory>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-clean-plugin</artifactId>
|
|
<version>3.1.0</version>
|
|
<configuration>
|
|
<!--<skip>true</skip>-->
|
|
<!--<failOnError>false</failOnError>-->
|
|
<!--当配置true时,只清理filesets里的文件,构建目录中得文件不被清理.默认是flase.-->
|
|
<excludeDefaultDirectories>false</excludeDefaultDirectories>
|
|
<filesets>
|
|
<fileset>
|
|
<!--要清理的目录位置-->
|
|
<directory>${basedir}/src/main/generated</directory>
|
|
<!--是否跟随符号链接 (symbolic links)-->
|
|
<followSymlinks>false</followSymlinks>
|
|
</fileset>
|
|
</filesets>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<!-- 自定义打zip包 -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
<version>3.3.0</version>
|
|
<configuration>
|
|
<descriptors>
|
|
<descriptor>assembly.xml</descriptor>
|
|
</descriptors>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>make-assembly</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>single</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project>
|