2 Star 1 Fork 1

半猫 / desktop-tools

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
pom.xml 12.72 KB
一键复制 编辑 原始数据 按行查看 历史
半猫 提交于 2023-01-02 21:05 . 设置生成安装包
<?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">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.0.1</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.banmao</groupId>
<artifactId>desktoptools</artifactId>
<version>1.0</version>
<name>desktop-tools</name>
<description>desktop-tools</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>17</java.version>
<openjfx-javafx.version>17.0.2</openjfx-javafx.version>
<graal-sdk.version>21.2.0</graal-sdk.version>
<native-image.version>21.2.0</native-image.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
<maven.compiler.release>17</maven.compiler.release>
<PATH_TO_FX>D:\ProgramSoft\Java\javafx-sdk-17.0.1\lib</PATH_TO_FX>
<mainclass.custom>com.banmao.desktoptools.DesktopToolsApplication</mainclass.custom>
</properties>
<dependencies>
<!-- <dependency>-->
<!-- <groupId>org.springframework.boot</groupId>-->
<!-- <artifactId>spring-boot-autoconfigure</artifactId>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>org.springframework.boot</groupId>-->
<!-- <artifactId>spring-boot-autoconfigure-processor</artifactId>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>com.alibaba</groupId>-->
<!-- <artifactId>druid</artifactId>-->
<!-- <version>1.2.15</version>-->
<!-- </dependency>-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
<version>3.0.1</version>
<!-- <exclusions>-->
<!-- <exclusion>-->
<!-- <groupId>com.zaxxer</groupId>-->
<!-- <artifactId>HikariCP</artifactId>-->
<!-- </exclusion>-->
<!-- </exclusions>-->
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.30</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<!-- <dependency>-->
<!-- <groupId>net.dreamlu</groupId>-->
<!-- <artifactId>mica-auto</artifactId>-->
<!-- <version>2.3.1</version>-->
<!-- <scope>provided</scope>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>org.graalvm.sdk</groupId>-->
<!-- <artifactId>graal-sdk</artifactId>-->
<!-- <version>${graal-sdk.version}</version>-->
<!-- <scope>provided</scope>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>org.graalvm.nativeimage</groupId>-->
<!-- <artifactId>native-image-maven-plugin</artifactId>-->
<!-- <version>${native-image.version}</version>-->
<!-- <type>maven-plugin</type>-->
<!-- </dependency>-->
<!-- 引入javafx17依赖-->
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<version>${openjfx-javafx.version}</version>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-fxml</artifactId>
<version>${openjfx-javafx.version}</version>
</dependency>
<!-- springboot整合javafx 不需要了,不适配17,自定义吧-->
<!-- <dependency>-->
<!-- <groupId>de.roskenet</groupId>-->
<!-- <artifactId>springboot-javafx-support</artifactId>-->
<!-- <version>2.1.6</version>-->
<!-- </dependency>-->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.12.0</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-collections4</artifactId>
<version>4.4</version>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>3.5.3.1</version>
</dependency>
<!-- <dependency>-->
<!-- <groupId>org.mybatis.spring.boot</groupId>-->
<!-- <artifactId>mybatis-spring-boot-starter</artifactId>-->
<!-- <version>3.0.1</version>-->
<!-- </dependency>-->
<!-- 打包EXE插件-->
<!-- https://mvnrepository.com/artifact/io.github.fvarrui/javapackager -->
<dependency>
<groupId>io.github.fvarrui</groupId>
<artifactId>javapackager</artifactId>
<version>1.6.7</version>
</dependency>
</dependencies>
<repositories>
<repository>
<id>sonatype</id>
<name>snoatype</name>
<url>https://repository.sonatype.org/content/groups/public/</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>spring-releases</id>
<name>Spring Releases</name>
<url>https://repo.spring.io/release</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>sonatype</id>
<name>snoatype</name>
<url>https://repository.sonatype.org/content/groups/public/</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
<pluginRepository>
<id>spring-releases</id>
<name>Spring Releases</name>
<url>https://repo.spring.io/release</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
<build>
<!-- <sourceDirectory>src/main/java</sourceDirectory>-->
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<release>17</release>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<!-- 打包时跳过,防止生成的类被放到BOOT-INF下-->
<!-- <skip>true</skip>-->
<mainClass>${mainclass.custom}</mainClass>
<excludes>
<exclude>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId>
<version>0.0.8</version>
<executions>
<execution>
<!-- Default configuration for running with: mvn clean javafx:run -->
<id>default-cli</id>
<configuration>
<mainClass>${mainclass.custom}</mainClass>
<launcher>app</launcher>
<jlinkZipName>app</jlinkZipName>
<jlinkImageName>app</jlinkImageName>
<noManPages>true</noManPages>
<stripDebug>true</stripDebug>
<noHeaderFiles>true</noHeaderFiles>
</configuration>
</execution>
</executions>
</plugin>
<!-- <plugin>-->
<!-- <groupId>org.apache.maven.plugins</groupId>-->
<!-- <artifactId>maven-assembly-plugin</artifactId>-->
<!-- <version>2.4</version>-->
<!-- <configuration>-->
<!-- <appendAssemblyId>false</appendAssemblyId>-->
<!-- <finalName>desktop-tools</finalName>-->
<!-- <descriptorRefs>-->
<!-- &lt;!&ndash; 将依赖的jar包中的class文件打进生成的jar包&ndash;&gt;-->
<!-- <descriptorRef>jar-with-dependencies</descriptorRef>-->
<!-- </descriptorRefs>-->
<!-- <archive>-->
<!-- <manifest>-->
<!-- <addClasspath>true</addClasspath>-->
<!-- &lt;!&ndash; 可以增加main函数入口,打包必须有&ndash;&gt;-->
<!-- <mainClass>${mainclass.custom}</mainClass>-->
<!-- </manifest>-->
<!-- </archive>-->
<!-- </configuration>-->
<!-- <executions>-->
<!-- <execution>-->
<!-- <id>make-assembly</id>-->
<!-- <phase>package</phase>-->
<!-- <goals>-->
<!-- <goal>single</goal>-->
<!-- </goals>-->
<!-- </execution>-->
<!-- </executions>-->
<!-- </plugin>-->
<!-- <plugin>-->
<!-- <groupId>org.graalvm.buildtools</groupId>-->
<!-- <artifactId>native-maven-plugin</artifactId>-->
<!-- </plugin>-->
<!-- <plugin>-->
<!-- <groupId>org.graalvm.nativeimage</groupId>-->
<!-- <artifactId>native-image-maven-plugin</artifactId>-->
<!-- <version>${native-image.version}</version>-->
<!-- <executions>-->
<!-- <execution>-->
<!-- <goals>-->
<!-- <goal>native-image</goal>-->
<!-- </goals>-->
<!-- <phase>package</phase>-->
<!-- </execution>-->
<!-- </executions>-->
<!-- <configuration>-->
<!--&lt;!&ndash; <skip>false</skip>&ndash;&gt;-->
<!-- <imageName>desktop-tools</imageName>-->
<!-- <mainClass>${mainclass.custom}</mainClass>-->
<!-- <buildArgs>-->
<!-- &#45;&#45;force-fallback &#45;&#45;native-image-info-->
<!-- </buildArgs>-->
<!-- &lt;!&ndash; 打包输出配置 需要根目录下新建bin文件&ndash;&gt;-->
<!-- <outputDirectory>-->
<!-- bin/-->
<!-- </outputDirectory>-->
<!-- </configuration>-->
<!-- </plugin>-->
<!-- <plugin>-->
<!-- <groupId>org.apache.maven.plugins</groupId>-->
<!-- <artifactId>maven-dependency-plugin</artifactId>-->
<!-- <executions>-->
<!-- <execution>-->
<!-- <id>copy</id>-->
<!-- <phase>package</phase>-->
<!-- <goals>-->
<!-- <goal>copy-dependencies</goal>-->
<!-- </goals>-->
<!-- <configuration>-->
<!-- <outputDirectory>${project.build.directory}/lib</outputDirectory>-->
<!-- </configuration>-->
<!-- </execution>-->
<!-- </executions>-->
<!-- </plugin>-->
<!-- <plugin>-->
<!-- <groupId>org.apache.maven.plugins</groupId>-->
<!-- <artifactId>maven-jar-plugin</artifactId>-->
<!-- <version>3.2.0</version>-->
<!-- <configuration>-->
<!-- <archive>-->
<!-- &lt;!&ndash; MANIFEST.MF设置 &ndash;&gt;-->
<!-- <manifest>-->
<!-- &lt;!&ndash; 依赖包路径&ndash;&gt;-->
<!-- <addClasspath>true</addClasspath>-->
<!-- <classpathPrefix>lib/</classpathPrefix>-->
<!-- &lt;!&ndash; 启动类&ndash;&gt;-->
<!-- <mainClass>${mainclass.custom}</mainClass>-->
<!-- </manifest>-->
<!-- </archive>-->
<!-- </configuration>-->
<!-- </plugin>-->
<plugin>
<groupId>io.github.fvarrui</groupId>
<artifactId>javapackager</artifactId>
<version>1.6.7</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>package</goal>
</goals>
<configuration>
<mainClass>${mainclass.custom}</mainClass>
<bundleJre>true</bundleJre>
<jrePath>${project.basedir}/jre</jrePath>
<generateInstaller>true</generateInstaller>
<!-- <administratorRequired>true</administratorRequired>-->
<winConfig>
<generateSetup>true</generateSetup>
<!-- 不生成MSI安装包,在我的系统上好像有问题-->
<generateMsi>false</generateMsi>
<!-- <setupMode>askTheUser</setupMode>-->
<setupLanguages>
<chinses>compiler:Languages\Chinese.isl</chinses>
<english>compiler:Default.isl</english>
</setupLanguages>
<exeCreationTool>launch4j</exeCreationTool>
<disableDirPage>false</disableDirPage>
<disableProgramGroupPage>false</disableProgramGroupPage>
<disableFinishedPage>false</disableFinishedPage>
<disableRunAfterInstall>false</disableRunAfterInstall>
<disableWelcomePage>false</disableWelcomePage>
<createDesktopIconTask>false</createDesktopIconTask>
<removeOldLibs>true</removeOldLibs>
</winConfig>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.yml</include>
<include>**/*.yaml</include>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>false</filtering>
</resource>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.*</include>
<!-- <include>**/*.yaml</include>-->
<!-- <include>**/*.properties</include>-->
<!-- <include>**/*.xml</include>-->
<!-- <include>**/*.fxml</include>-->
<!-- <include>**/*.png</include>-->
<!-- <include>**/*.jpg</include>-->
</includes>
<filtering>false</filtering>
</resource>
</resources>
</build>
<profiles>
<profile>
<id>jdk-17</id>
<activation>
<activeByDefault>true</activeByDefault>
<jdk>17</jdk>
</activation>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<maven.compiler.compilerVersion>17</maven.compiler.compilerVersion>
</properties>
</profile>
</profiles>
</project>
Java
1
https://gitee.com/banmao999/desktop-tools.git
git@gitee.com:banmao999/desktop-tools.git
banmao999
desktop-tools
desktop-tools
master

搜索帮助