130 lines
5.4 KiB
XML
130 lines
5.4 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">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<groupId>com.serliunx</groupId>
|
|
<artifactId>daily-generator</artifactId>
|
|
<version>1.0.0-alpha</version>
|
|
|
|
<properties>
|
|
<maven.compiler.source>17</maven.compiler.source>
|
|
<maven.compiler.target>17</maven.compiler.target>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<build.conf.path.bin>bin</build.conf.path.bin>
|
|
<build.conf.path.lib>lib</build.conf.path.lib>
|
|
<build.conf.path.conf>conf</build.conf.path.conf>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>ch.qos.logback</groupId>
|
|
<artifactId>logback-classic</artifactId>
|
|
<version>1.5.18</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.projectlombok</groupId>
|
|
<artifactId>lombok</artifactId>
|
|
<version>1.18.38</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.eclipse.jgit</groupId>
|
|
<artifactId>org.eclipse.jgit</artifactId>
|
|
<version>7.3.0.202506031305-r</version>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<finalName>${artifactId}</finalName>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
<version>3.2.0</version>
|
|
<executions>
|
|
<execution>
|
|
<id>copy-dependencies</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>copy-dependencies</goal>
|
|
</goals>
|
|
<configuration>
|
|
<excludeScope>provided</excludeScope>
|
|
<outputDirectory>${project.build.directory}/output/${build.conf.path.lib}</outputDirectory>
|
|
<overWriteReleases>false</overWriteReleases>
|
|
<overWriteSnapshots>false</overWriteSnapshots>
|
|
<overWriteIfNewer>true</overWriteIfNewer>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
<version>3.2.0</version>
|
|
<configuration>
|
|
<outputDirectory>${project.build.directory}/output/${build.conf.path.bin}</outputDirectory>
|
|
<archive>
|
|
<manifest>
|
|
<mainClass>com.serliunx.daily.DailyGenerator</mainClass>
|
|
</manifest>
|
|
</archive>
|
|
|
|
<excludes>
|
|
<!-- 脚本文件不需要打包进jar包中 -->
|
|
<exclude>scripts/</exclude>
|
|
<!-- 日志配置文件不需要 -->
|
|
<exclude>logback.xml</exclude>
|
|
</excludes>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
<version>1.8</version>
|
|
<executions>
|
|
<execution>
|
|
<id>copy-resources-flat</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
<configuration>
|
|
<target>
|
|
<copy todir="${project.build.directory}/output/${build.conf.path.bin}" flatten="true">
|
|
<fileset dir="src/main/resources">
|
|
<include name="scripts/*.bat"/>
|
|
</fileset>
|
|
</copy>
|
|
|
|
<copy todir="${project.build.directory}/output/${build.conf.path.conf}" flatten="true">
|
|
<fileset dir="src/main/resources">
|
|
<include name="logback.xml"/>
|
|
</fileset>
|
|
</copy>
|
|
|
|
<copy todir="${project.build.directory}/output" flatten="true">
|
|
<fileset dir="">
|
|
<include name="README.md"/>
|
|
</fileset>
|
|
</copy>
|
|
|
|
<copy todir="${project.build.directory}/output" flatten="true">
|
|
<fileset dir="">
|
|
<include name="LICENSE"/>
|
|
</fileset>
|
|
</copy>
|
|
</target>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project> |